A data-binding issue with a combo box.

Hi,
Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
Thanks,
Mike
Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

Similar Messages

  • Plotting a combination chart with a combo box for selection

    Hi:
    I am a newbie using xcelcius and I need help on the following:-
    I need to create a combination chart that plots 3 years data by month, and I need a combo box selection at the top that allows me to select user display for each difference region. I manage to create one that plots only 2008 data with a combo-box selection, but I have no idea how to do it for a combi chart in xcelcius. Any advise?

    Hi Ning,
    I assume your data are like this:
    Region             Year     Jan     Feb     Mar
    APJ             2006     $234.45     $310.34     $321.54
    APJ             2007     $314.35     $319.12     $256.89
    APJ             2008     $425.54     $354.34     $285.73
    North Asia     2006     $534.64     $642.35     $484.64
    North Asia     2007     $631.74     $654.13     $754.34
    North Asia     2008     $754.31     $423.65     $634.32
    South East Asia     2006     $536.42     $576.35     $525.42
    South East Asia     2007     $426.78     $876.43     $643.75
    South East Asia     2008     $634.87     $425.77     $732.43
    If this, you can set the insertion type of combo box is "Filtered Rows", see steps:
    1) For Combo Box, bind General > Labels to the Region column.
    2) Set General > Data Insertion > Insertion Type is "Filtered Rows" (you can refer to following flash to see how "Filtered Rows" works).
    3) Set its Source Data are Year, Jan, Feb, ... columns and Destination to blank cells.
    4) Bind Chart to the destination data.
    Now when you select APJ from Combo Box, it will insert all the rows of APJ data to the desitination cells which will be displayed in Chart.
    Hope this can help!

  • Help with linking combo boxes so that some options are made unavailable

    Hello!
    I'm having trouble setting up an interactive PDF form with multiple combo boxes.
    I have designed an interactive PDF form in InDesign CS6 but am doing the final preparation and formatting in Adobe Acrobat XI Pro.
    First of all, I am not sure if I should be using combo boxes or list boxes, but the combo box seemd to look better after I export the PDF and also left the field blank, ready for selection from the drop-down menu.
    Basically I have a list of drop-down lists, but not all combinations are compatible. For example, after maing "Selection 1" in "Combo box 1", I need only "Selection 1", "2", and "3" [out of the total 5] to be available in "Combo box 2".
    I need to be able to apply this algorhythm to the next few combo boxes as well.
    Moreover, I would need some of the checkboxes disabled [the user won't be able to check them at all]when I make a certain selection in some of the combo boxes.
    Needless to say, I don't know any Java, coding or making calculations in LiveCycle Designer, so I don't even know where to begin.
    I have attached a screen grab of my form and what I want to achieve.
    Any help would be very much appreciated.
    Thank you!

    If it is static data, I would suggest you to cache it rather than having it in each of the user session. You can have configuration/code to refresh when needed. Please look at any available caching frameworks (EhCache, OSCache etc...)

  • Windows 8.1 Data reordering issue with Intel Adaptors

    According to Intel, there is a data reordering issue with their adaptors and probably this dumb WIDI software. This is from Intel site. they say some are fixed, "A future Windows 8 fix will address this issue for other Intel wireless adapters." I
    have one Nope, still broke. I get drops all the time. Brand new Toshiba laptop I7 16 gigs of ram and a SSD and a 2 gig Vid card. Would be nice to be able to play games but I get dropped all the time. Now would Microsoft quit hiding
    about this, and fix the darn thing. Also i'm a system admin for 13 years. I have build over 1000 PCs and servers. I know bad software. Please fix this. PLEASE. Its not going to just go away and its not just Toshiba, I have seen other companies with the
    same problem. If there is a Fix PLEASE POST IT. Or even a workaround I have tried everything.
    http://www.intel.com/support/wireless/wlan/sb/CS-034535.htm
     

    Hi,
    Have your first tried the software fix under this link for your network adapter?
    http://www.intel.com/support/wireless/wtech/proset-ws/sb/CS-034041.htm
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's performance or reliability.
    Also, you can try to check if there is any driver update under Device manager from manufacture's website.
    Kate Li
    TechNet Community Support
    Yep didn't work. Still get drops all the time, had to run a Cat 5E cable to my laptop from my modem, because I have Atheros Gigabyte Lan adaptor. Works Great. The Wireless still drops all the time. Has Microsoft let out the patch to fix this or is it coming in
    April in the 8.1 patch that's coming. Funny thing is all for Widi, I don't even use widi, I got the software to do that from Samsung works better on my TV. Intel and Microsoft need to get this fixed. because their driving off gamers and that's the
    people that make sure they buy Microsoft so they can play games. With the wireless link dead and a great laptop worthless what's the point. Ive been in IT for 13 years building PCs  and Servers how I knew how to run a 60 FT Cat 5e line thru
    a 2 story house and terminate it. Most people don't. Fix the problem.  

  • IS there a way to fix the issue with text list boxes where they shift (empty space is smaller than the text size) when two text lsit boxes are side by side?

    Currently I have a webpage I designed for a company where I have multiple text list boxes side by side for the purpose of displaying data in each one based on a category in the database. So a text list box for the primary key, name, serial number, etc. I have to use Firefox as it typically works best for printing and functionality for the page. The single issue we are having is that in Firefox if the field is null as far as text the text are shrinks meaning all the data in that list box shifts up and is no longer in line with its congruent data in the other text list boxes. In other browsers that's not a problem and everything stays lined up regardless of whether there's text in the box or not.
    Unfortunately I cannot provide a link but if contacted I will provide screen shots.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Problems with a combo box in dynpro

    Hi guys, im creating a combo box in a dynpro, but is not showing anything.
    the code is the following:
    AT the screen painter..
    MODULE USER_COMMAND_0100.
       PROCESS ON VALUE-REQUEST.
      FIELD TI_COMBO MODULE create_dropdown_box.
    *then the module in the main program.....
    module create_dropdown_box input.
    TYPES: BEGIN OF type_carrid,
             op1(20),
             ID TYPE N,
           END OF type_carrid.
    DATA ti_combo TYPE STANDARD TABLE OF type_carrid WITH HEADER LINE.
    ti_combo-op1 = 'Not processed'.
    TI_COMBO-ID = 1.
    append ti_combo.
    ti_combo-op1 = 'Duplicated.
    append ti_combo.
    ti_combo-op1 = 'For Payroll'.
    append ti_combo.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
            RETFIELD = 'ID'
            DYNPPROG = SY-REPID
            DYNPNR = '100'
            DYNPROFIELD = 'TI_COMBO'
            VALUE_ORG = 'S'
           TABLES
                value_tab       = ti_combo
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    endmodule.
    Edited by: javier  santana on May 7, 2008 5:47 PM

    Hi,
    Check the below code.
    TYPE-POOLS: VRM.
    DATA:V_NUM TYPE I.
    DATA:NAME TYPE VRM_ID,
         LIST TYPE VRM_VALUES,
         VALUE LIKE LINE OF LIST.
    DATA:I_WORKPATTERN LIKE ZWORKPAT OCCURS 0 WITH HEADER LINE.
    DATA:ZPATTXT(60).
    MODULE WORKPATTERN_LISTBOX OUTPUT.
    NAME = 'P9434-ZWORKPATTERN'.
        IF V_NUM IS INITIAL.
        CLEAR I_WORKPATTERN.
        REFRESH I_WORKPATTERN.
        SELECT *
               FROM ZWORKPAT
               INTO TABLE I_WORKPATTERN.
        IF NOT I_WORKPATTERN[] IS INITIAL.
          LOOP AT I_WORKPATTERN.
            VALUE-KEY = I_WORKPATTERN-ZWORKPATTERN.
            VALUE-TEXT = I_WORKPATTERN-ZWORKPATTERN.
            APPEND VALUE TO LIST.
          ENDLOOP.
        ENDIF.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            ID                    = NAME
            VALUES                = LIST
         EXCEPTIONS
           ID_ILLEGAL_NAME       = 1
           OTHERS                = 2.
        IF SY-SUBRC <> 0.
          CLEAR SY-SUBRC.
        ENDIF.
        V_NUM = V_NUM + 1.
        ENDIF.

  • Can I use an LOV with a Combo Box?

    ... and if so, how?
    This should be easy, but I've been searching for over an hour now and I keep getting instruction on how to do each individually, but not how to put them together for the desired behavior.
    My goal is to have a combo box (single line text field with a drop down arrow) that, when the user clicks the arrow, displays a list populated from a column in the data base and the user selects a value.
    I'm using Oracle 10g2
    Thanks in advance,
    Darren

    Why don't you create a record group and populate that record group into the list item on runtime?
    -Ammad

  • Data Integration issue with Adobe form

    Hi,
    We have been using many xACF forms in our WebDynpro java based application.
    For one of the xACF adobe form sometimes I'm not getting the data from adobe form to webdynpro context.
    Anyone can pls tell what may be the problem other then binding because that part i have already checked and it's working fine in some of the PC.
    Regards
    Ravindra Singh

    Hi Chintan,
    thanks for your reply.
    I tried that part already by converting xACF form to ZCI but facing issues with the drop-downs.
    Actually some of the dropdowns have values more than 1000. The value help for these drop downs comes as pop up in case of ZCI forms and the mazer problem is that in offline scenario doesn't even shows values for such dropdowns as a pop up or normal drop down.
    As per the SAP Note 1013227 we are using the enumerated type of drop downs for such larger values but no help in offline  scenario. I tried by changing the parameter value in visual admin as suggested in sap note which prevents pop-up for lager values but it's not recommended by SAP. Only because of this issue we are not able to migrate from xACF to ZCI.
    Do you have any idea how to get values for such drop downs in offline scenario.
    Thanks & Regards
    Ravindra Singh

  • Simple date selector based on three combo boxes

    Hi all,
    I am looking for a simple script to allow users to choose a valid date. However, it should only be based on combo boxes (I just need the basics really).
    Similar to: http://www.easyjet.co.uk/en/book/index.asp
    But without the visual calendar bit and with a separate combo box for choosing the year. I had a look at jcalendar and various other scripts, but they are way too advanced for my application
    Does anybody know how to accomplish this?
    Thanks in advance.

    we have Hboxes i.e. A,B,C etc and each containing many boxes and that boxes contain the labels
    for 'A' HBox I have many boxes inside 'A' may be 20 and these boxes contains the label for each box A1,A2,....A20
    some of them may be highlighted with red color based on the values coming from database for respectivg HBoxes A,B,C etc
    Now I want to select a value from combo box if it is 7 I have only 3 positions to select in 'A' which didn't highlighted
    and these three are in contiguous so when i click on any one of them the remaing possible number of values to be highlighted either they are left or right to the selected box and then i have 4 in my hand to select I need to have the chance to select them from any 4 from any remaining boxes from B,C etc
    and if tere are 7 contiguous boxes to select and my selected value is 3 only three needs to be selected when i click on any one box

  • Crystal report Parameter binding issue with Liveoffice

    Hello,
    I have created a Crystal report on top of BW query. In crystal report when parameter is set to null the report gets all data from BW query.
    On inserting the same Crystal report to Live office document on binding the parameter i get the data for selected value for parameter but i am not able to set the parameter to null to get all the data from BW queries.
    Please help!
    Regards,
    Rahul Doshi

    Hi,
    I was able to solve the issue with the below code. I have added a parameter value as <Not Specifed> in paramter.
    if {?parameter1}='<Not Specified>' Then like '*' else
    ={?Parameter1} and
    if {?Parameter2}='<Not Specified>' Then like '*' else
    ={?Parameter2} and
    if {?Parameter3}='<Not Specified>' Then like '*' else
    ={?Parameter3} and
    if {?Parameter4}='<Not Specified>' Then like '*' else
    ={?Parameter4}
    This code works perfectly fine in crystal report. But when i bind the parameter with excel in Live office it gives me below error.
    Parameter has no value.
    Details: errorKind
    Error in File {7D9B961E-ADB9-4292-9DDE-A8D11B94D78E}.rpt:
    Error in formula  Record Selection:
    'if {?Sales Office}='<Not Specified>' Then {0SD_C03_ZQRY_0SD_C03_0011_BOBJ.D[0SALES_OFF]K} like '*' else
    Parameter has no value.
    Details: errorKind (LO 26603)  (6603)
    Please help.
    Regards,
    Rahul Doshi

  • Report data binding error with date values

    I have CF7.02 with a Microsoft Visual FoxPro 9.0 SP1 Database
    that I connect to using ODBC (FoxPro Driver 6.01.8630.01). I send
    my sql results to a CF Report Builder 7.02 PDF report and it works
    fine. If I dump the date values before I change them, they look
    like the following: {ts '2004-12-20 00:00:00'} . However I have
    tried a number of ways of manipulating the date before sending it
    to the report, but I continue to get errors. I don't care what
    format they go to the report in, since the report reformats them
    anyway. I checked to make sure that none of the dates were null.
    For example <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDateTime(#ldCFPrcInputDate#) /> yields values in the
    {ts '2004-12-20 00:00:00'} format when I dump the query results to
    screen. Where:
    ldCFPrcInputDate = 12/20/2004
    CreateODBCDateTime(ldCFPrcInputDate) = {ts '2004-12-20
    00:00:00'}
    ReportQuery.PrcInputDate[lcCurRow] = {ts '2004-12-20
    00:00:00'}
    I get the error:
    Report data binding error Unable to get value for field
    'prcinputdate' of class 'java.util.Date'.
    coldfusion.runtime.OleDateTime -> Date
    Not using the CreateODBCDate function for example <cfset
    ReportQuery.PrcInputDate[lcCurRow] = #ldCFPrcInputDate# /> I
    get:
    Report data binding error Unable to get value for field
    'prcinputdate' of class 'java.util.Date'.
    java.lang.String -> Date
    Here are some of my failed attempts:
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDateTime(#ldCFPrcInputDate#) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    #ldCFPrcInputDate# />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    DateFormat(CreateODBCDate(#ldCFPrcInputDate#),'mm/dd/yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm/dd/yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm-dd-yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    Trim(createODBCDateTime(ldtmpdate)) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate({05-07-2006}) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate('{05-07-2006}') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(05/07/2006) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate('05/07/2006')/>
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(parseDateTime('05/07/2006')) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    parseDateTime(CreateODBCDateTime(05/07/2006)) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    parseDateTime(CreateODBCDateTime('#ldCFPrcInputDate#')) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '{05-07-2006}'
    />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '{05/07/2006}'
    />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '05/07/2006'
    />
    I also did some googling without success. Any help is
    appreciated.

    You may want to make sure that the column is not included in
    the query variable list in your report cfr file.
    The newest version of the Report Builder, which may be
    installed on the server, no longer tolerates vars appearing in that
    list of they are not in the query itselft.

  • Issues with dynamic text box formatting

    I'm running into issues with using HTML formatting for a dymanic text field. I know these are quirky and I cannot figure out how to get the formatting proper.
    I have on my stage a dynamic text box called "content_txt" inside of a movie clip instance "content_mc". When it enters the frame, I fade the "content_mc" from alpha 0 to 100 using a timeline animation. In order for this to work, I have to embed the font in my "content_txt" text field. However, the only way I get get the HTML formatting to work is if I do not embed the font.
    The dymanic text field is set to render as HTML. In my actions layer, I set the text:
    this.content_mc.content_txt.htmlText = "<b>Hello world,</b> it is me again."
    In summary:
    1. If I do not embed the font, the alpha fade does not work but the HTML formatting does.
    2. If I embed the font, the alpha fade works but the HTML formatting does not.
    How do I resolve this? It's driving me nuts!

    How do you embed just one style?
    I've tried typing three words in the text field and formatting each (regular, bold, italic) but the text field just defaults to whichever format is first.
    Also, I tried embeding the whole character list and did not have success.

  • Uk date format issue with ASP and Access Database

    I have an Asp form which updates records in an Access
    database. Problem is
    that the date format in the database record is dd/mm/yyyy
    (UK), when
    the record is displayed on the form it is mm/dd/yyyy(US)
    which after I
    update the record in the database the date has changed to the
    new format.
    I have tried everything I can to change the format but to no
    avail...anyone any ideas how I can resolve this issue?
    Thanks
    Steve

    stevo.s wrote:
    > Hi
    >
    > I have tried changing the format on the date field on
    the server behaviours
    > panelto ddmmyyy. Also have tried to set the form field
    format to ddmmyy. I have
    > also tried to use a function I got from a posting
    somehwere on the net to no
    > avail. <%function ddmmyyyy(varDate)
    > ddmmyyyy = Day(DateValue(varDate)) & "/" &
    Month(DateValue(varDate))
    > & "/" & Year(DateValue(varDate))
    > end function
    >
    > I believe that this is a recognised issue with
    Dreamweaver and Access but
    > can't seem to grasp the work around! Problem being I am
    teaching myself through
    > books and internet articles and can be weeks at a time
    without being able to
    > look at the issue..each time I come back to it it is
    like starting all over
    > again! I was hoping that somewhere out there there is a
    simple solution the
    > issue perhaps a date picker with the built in
    functionality to address the
    > issue...I am keen to understand how to deal with the
    issue rather than just
    > change my database date field to fudge the problem as I
    am in the UK and when I
    > eventually start to use the application I would like
    there to be some
    > consistency with dates and that users are familiar with
    the format.
    >
    > Any help gratefully received!
    Its not Dreamweaver, or Access, its your servers locale, its
    set to US
    format, not the UK.
    On your page at the top use:
    <% Session.LCID = 2057 %>
    This will force the page into using UK formatted dates. Use
    it on any
    page that needs to format the page correctly.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Problem with editable combo box and creating dynamic table values using js

    Hai
    I have used jquery.jec.js to make my dropdown list as editable... I need to create dynamic table values on the onChange event of dropdown using javascript.
    Now am facing the problem in it...
    I am getting duplicate rows in the table... think(assumption) this jquery.jec.js is calling the dropdown again creating duplicate values...
    Please help me out.... Any help is appreciable... Thanks in advance

    Thanks elOpalo, for your valuable response....
    I have found the correct way of doing.
    Before i had my code like this,
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>test</title>
    <script type="text/javascript" src="js/jquery-latest.js"></script>
    <script type="text/javascript" src="js/jquery.jec.js"></script>
    <script type="text/javascript">
    $(function(){
    $('#list').jec();
    function giveAlert(){
         alert('hello');
    </script>
    </head>
    <body>
    <form>
    Combo Box:
    <select id="list" name="list" onChange="giveAlert();">
    <option value="1">one</option>
    <option value="2">two</option>
    </select>
    </form>
    </body>
    </html>
    Now i have changed as the following,
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>test</title>
    <script type="text/javascript" src="js/jquery-latest.js"></script>
    <script type="text/javascript" src="js/jquery.jec.js"></script>
    <script type="text/javascript">
    $(function(){
    $('select.combo').jec();
    $('select.combo')
    .change(function() {
    alert($(this).val());
    }).change();
    </script>
    </head>
    <body>
    <form>
    <table>
    <tr>
    <td>Combo Box:</td>
    <td><select class="combo"><option value="b">banana</option><option value="a">apple</option></select></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    The problem is with the function i have called on the onChange Event.. Now i have defined it inside the jquery function of dropdown to make it as editable...

  • Report Data Binding Error with CFREPORT

    I'm getting this error on my production server but not my
    testing server when I try to print a report:
    Report data binding error Unknown column name :
    PK_RegistrationID.
    The thing is, the column PK_RegistrationID is not in the
    query I'm passing to the cfreport file. And it's not in the
    cfreport fiile itself. It is used in other cfreport files in my
    application. I'm wondering if this has anything to do with the
    version of cfreport on the production server.

    You may want to make sure that the column is not included in
    the query variable list in your report cfr file.
    The newest version of the Report Builder, which may be
    installed on the server, no longer tolerates vars appearing in that
    list of they are not in the query itselft.

Maybe you are looking for