[NEWSboard IBMi Forum]
  1. #1
    Registriert seit
    Jan 2007
    Beiträge
    122

    SNGCHCFLD Problem

    Hallo!
    Bin am verzweifeln.
    Kann es sein dass ich bei einem Single Choice Field nur 9
    Auswahlmöglichkeiten angeben kann? bzw. das Problem besteht auch
    wenn ich weniger als 10 habe, jedoch eine Auswahl mit 10 mit angebe:

    CHOICE(10 '>Test1 ')

    77100 A PBAUSWAHL1 2Y 0B 2 2SNGCHCFLD
    CPD8186-******
    CHOICE(10 '>Test1 ')


    * CPD8186 20 1 Nachricht . . . : Feld überschreitet Fenster-/Aktionsfenstergröße oder verwendet für
    Schiebeleisten oder Auswahllisten reservierte Spalten.

    Vielen Dank!

  2. #2
    Registriert seit
    May 2002
    Beiträge
    1.121
    Nein. Es gehen auch mehr.
    Ich würde eher darauf tippen, das dein Window in dem die Auflistung erfolgt, zu klein ist.

    Ich selber habe auch CHOICE mit > 10 im Einsatz.
    PHP-Code:
        A            CHC            2Y 0B  8  9SNGCHCFLD(*RSTCSR *AUTOSLT)      
        
    A                                      CHANGE(70)                       
        
    A                                      CHCAVAIL((*COLOR BLU))           
        
    A                                      DSPATR(HI)                       
        
    A                                      CHECK(ER)                        
        
    A                                      CHOICE(&TXT1)                  
        
    A                                      CHOICE(&TXT2)                  
        
    A                                      CHOICE(&TXT3)                  
        
    A                                      CHOICE(&TXT4)                  
        
    A                                      CHOICE(&TXT5)                  
        
    A                                      CHOICE(&TXT6)                  
        
    A                                      CHOICE(&TXT7)                  
        
    A                                      CHOICE(&TXT8)                  
        
    A                                      CHOICE(&TXT9)                  
        
    A                                      CHOICE(10 &TXT10)                
        
    A                                      CHOICE(11 &TXT11)                
        
    A                                      CHOICE(12 &TXT12)                
        
    A                                      CHOICE(13 &TXT13)                
        
    A                                      CHOICE(14 &TXT14
    Läuft ohne Problme
    Gruß
    Ronald

  3. #3
    Registriert seit
    Jan 2007
    Beiträge
    122
    OK vielen Dank!
    Ich dachte es liegt an der Höhe aber es lag an der Windowbreite.

    Hatte nicht bedacht dass es ja die Auswahlnummern mit anzeigt

    Aber Hauptsache es funktioniert jetzt

  4. #4
    Registriert seit
    Feb 2001
    Beiträge
    20.236
    https://www.ibm.com/support/knowledg...cmstchoice.htm

    The choice text for all choices within a selection field must fit on the display for the smallest display size specified in the file. Therefore, the maximum length for the choice text depends on the following items:

    • The position of the selection field
    • The length of the longest choice number that is displayed to the left of the choice
    • The length of the choice text itself
    • The number of columns in the selection field
    • The width of the gutter between columns
    Dienstleistungen? Die gibt es hier: http://www.fuerchau.de
    Das Excel-AddIn: https://www.ftsolutions.de/index.php/downloads
    BI? Da war doch noch was: http://www.ftsolutions.de

Similar Threads

  1. DDS Problem
    By KingofKning in forum NEWSboard Programmierung
    Antworten: 7
    Letzter Beitrag: 15-12-17, 13:20
  2. SNGCHCFLD - Subfile
    By malzusrex in forum NEWSboard Programmierung
    Antworten: 2
    Letzter Beitrag: 16-07-14, 15:04
  3. CL-Problem
    By iginla in forum IBM i Hauptforum
    Antworten: 8
    Letzter Beitrag: 31-03-03, 09:59
  4. SQL Problem
    By HoScHiE in forum IBM i Hauptforum
    Antworten: 4
    Letzter Beitrag: 03-06-02, 13:30
  5. SQL-Problem
    By chrisi in forum IBM i Hauptforum
    Antworten: 2
    Letzter Beitrag: 27-02-02, 08:46

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • You may not post attachments
  • You may not edit your posts
  •