? re dropdown list in update behavior

I have a venue table containing a foreign key to a countries
table. The insert behavior works OK.
The URL link contains the correct countries_id (i.e. 225 for
USA). I haven't been able to get the countries or the selected
country to appear in the update behavior page which otherwise
works.
I have used a hidden field to contain the venue_id and
another hidden field to contain the countries_id.
Anyone have a reference to screen shots as to how to make
this work?

Hi Sk2014,
Thanks and sorry for the late reply. I gone through those links and one of them talks about using
SelectedValue='<%# Bind("DivisionCode") %>', but this property does not exist in dropdownlist.
A per the second link, I tried to use the prerender event as follows
protected void ListViewPrerender(object sender, EventArgs e)
if (this.ListViewAssgn.EditIndex != -1)
DropDownList ddl = this.ListViewAssgn.Items[this.ListViewAssgn.EditIndex].FindControl("ddlEPriority") as DropDownList;
Here the ddl variable was showing the incorrect selected value.For e.x. if before I clicked edit, if Priority was displayed as Low, then after I click edit, the ddl variable above become High.
I have also tried the ItemDataBound as below, but there too the dropdown list variable was null
protected void ListViewItemDataBound(object sender, ListViewItemEventArgs e)
try
if (e.Item.ItemType == ListViewItemType.DataItem)
DropDownList ddlListPriority = (DropDownList)e.Item.FindControl("ddlEPriority");
catch (Exception ex)
throw ex;
I feel that I could be doing something silly somewhere but I am not able to identifiy.
All I want to do, is keep the selected value in the dropdown list unchanged when I click on Edit.Pls help.

Similar Messages

  • Dropdown list not updating when bound db changes

    I hope someone can help me.  I have a form created by Livecycle Designer ES.  It contains a dropdown list populated by a bound to a database table. All works well until the database table is altered.  The dropdown list does not reflect the change.  It is as if the values were snapshotted when the was saved in Livecycle.  I have been unable to find a way to make the list update. 
    Details:
    LiveCycle Designer ES version 8.2.1 - part of Adobe Acrobat Pro 9 with the latest updates.
    The table is contained in a SQL Server 2008 R2 database. 
    The data connection: OLEDB Database,
    Provider: Microsoft OLE DB Provider for ODBC Drivers
    Connection: UFN
    What am I doing wrong?
    -Rhinoplasty2012

    Hi Paul,
    Thanks for helping. I'm using Acrobat to view the PDF form. Thus, shouldn't have any problem connecting to the database.
    I've captured some screenshots as below and hope it helps you understand my situation better.
    This is my Access database
    This is my PDF. Added a data connection "Product" using SQL Query "SELECT ProductCode, ProductName FROM PUB_Product WHERE ActiveInd=yes" whereby it will only extract the "active" products.
    Binded the product code dropdown list with "Product" data connection to populate the list.
    The output of the PDF form. Only the active products are being listed.
    Now, if let's say I add a new product to my PUB_Product table, the dynamic form will straight away list the new product but not the static form.
    Dynamic form
    Static form
    In order to see the new product listed in the static form dropdown list, I have to re-open the form in Live Cycle and just simply save it. So my question is, is there anything I can do to skip this "open and save" step?
    Thanks.
    Regards,
    Steven

  • I am trying to update my billing detail on my IPAD2. However it keep on saying that the country need at least 3 characters long. But the country field is a dropdown list with Malaysia's states all with 2 characters long only! I can't make any purchase now

    I am trying to update my billing detail on my IPAD2. However it keep on saying that the country need at least 3 characters long. But the country field is a dropdown list with Malaysia's states all with 2 characters long only! I can't make any purchase now because I can't verify the billing detail because it just doesn't work! Very frustrating now.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I updated to 3.6, lost bookmarks, have only a default profile so I restored. The bookmarks are now there but I can't get the dropdown list for many folders so I can't access these. Clicking on the arrow to the right of the folder name does nothing.

    When I Click on some of the bookmark folders I do get a dropdown list of sites but not always all of the sites that were bookmarked. If I copy a nonresponding folder, the new copy can be accessed but apparently does not contain all of the sites. If I rightclick on a nonresponding folder and use 'open all tabs' Firefox will tell me the number of sites in the folder and ask if I really want to open so many.

    Sounds like a corrupted places.sqlite file.
    See http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Undesired database update from a dropdown list

    Hi,
    I'm using a dropdown list as a criteria to search data in another table which has reference over the data that is displayed in the dropdown list.
    My problem is that when I change the selection of the dropdownlist the data is changed with the new selection, I don't want than my selection change any data of the database.
    Do you know how I can create a dropdownlist independent of any field of the data base, but at the same time that the dropdown list take the list of values from the database?
    Thanks,
    Pedro

    One thing you can try is creating a binding in Navigation mode. In the Data Control Palette, select your view instance, instead of the attribute. Select combo box from the "Drag and Drop As" box, and drag the view instance to your page/screen. On the bindings tab of the structure window, double-click the new binding, and you can select which attribute you want your control to display.
    Otherwise, you would have to override the list model with your own, and plug in whatever values you want it to display.

  • The History dropdown list has stopped updating. What can I do?

    The dropdown list on the toolbar is stuck where it was weeks ago. All other history lists work, ie All history folders and url dropdown.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • How to Add values to dropdown list in runtime

    Hi All
    I wanted to add the items to the dropdown list in the plugin.
    The SDK Example WriteFishPrice shows the items are hard coded in the .fr file.
    i am looking for a similar concept, but not adding the items in the .fr file, i wanted to add the items in the .cpp or .h files and add the items to the dropdownlist.
    DECLARE_PMID(kWidgetIDSpace, kWFPDropDownListWidgetID, kWFPPrefix + 2)
    The declaration is done in WFPID.h file
    #define kWFPDropDownItem_1Key kWFPStringPrefix "kWFPDropDownItem_1Key"
    defining the string is done in WFPID.h
    I wanted to add the items in the same header file, is there any way that i can add the items in the header files instead of adding in .fr file
    Please guide me
    Thank you
    -Srinivas

    Hope this will help you a bit with both threads ; )<br />I'm not sure what you are trying to accomplish with defining the strings in an header or cpp file and not in the fr file(s). Usually you sort of predefine strings in the main fr file and then give a "final" translation definition for each string in the corrosponding language file. If you don't need or want to translate you can define string constants almost wherever you like and add them at runtime e.g. during dialog initialization. In this case you'd have to make each string not to be translateable with PMString.SetTranslatable(kFalse).<br />If you want to add items to a listbox or text edit during runtime you just have to get the interfaces and call their methods. Below is a small example taken from a dialog with a dropdown listbox, a text edit field and a button widget. In the DialogObserver I implemented the Update function to the following functionality:<br />- when the button (Insert Button) is pressed the content of the edit field is read and inserted into the listbox<br />- when something in the listbox is selected, the selection is shown/inserted into the text field<br /><br />void VSPDialogObserver::Update<br />(<br />     const ClassID& theChange,<br />     ISubject* theSubject,<br />     const PMIID& protocol,<br />     void* changedBy<br />)<br />{<br />     // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).<br />     CDialogObserver::Update(theChange, theSubject, protocol, changedBy);<br /><br />     do<br />     {<br />          InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());<br />          ASSERT(controlView);<br />          if(!controlView) <br />               break;<br />          <br />          InterfacePtr<IDialogController> dialogCtrl(this, UseDefaultIID());<br />          if (!dialogCtrl)<br />               break;<br /><br />          InterfacePtr<IPanelControlData> panelControlData(this, UseDefaultIID());<br />          if (!panelControlData)<br />               break;<br /><br />          //get currently selected/active widget<br />          WidgetID theSelectedWidget = controlView->GetWidgetID();<br />          <br /><br />          // is it the drop down list?<br />          if (theSelectedWidget== kVSPDropDownWidgetID) <br />          {<br />               TRACE("ListBoxAction");<br />               //insert selected string into edit field<br />               PMString strSelection =     dialogCtrl->GetTextControlData(kVSPDropDownWidgetID);<br />               strSelection.SetTranslatable(kFalse);<br />               dialogCtrl->SetTextControlData(kVSPTopEditBoxWidgetID, strSelection);<br />               break;<br />          }<br /><br />          // ist it the text edit field?<br />          if (theSelectedWidget == kVSPInsertButtonWidgetID && theChange == kTrueStateMessage)<br />          {<br />               TRACE("Insert Button pressed");<br />               IControlView* listView = panelControlData->FindWidget(kVSPDropDownWidgetID);<br />               InterfacePtr<IStringListControlData> listControlData(listView, UseDefaultIID());<br /><br />               //Insert the string into listbox<br />               PMString strText = dialogCtrl->GetTextControlData(kVSPTopEditBoxWidgetID);<br /><br />                        // obviously there can't be a translation for text entered by user<br />               strText.SetTranslatable(kFalse);<br />               listControlData->AddString(strText,kVSPTopEditBoxWidgetID);<br />          <br />               //"clear" the text edit field<br />               dialogCtrl->SetTextControlData(kVSPTopEditBoxWidgetID, "");<br />               break;<br />          }<br />     } while (kFalse);<br />}

  • SSRS report - A single selection dropdown list converted to text box

    Hello everyone,
    We created a single selection dropdown parameter (City parameter) on a report. The data in this parameter is populated using MDX query. Also, it is filtered based on selection of another single selection dropdown list (Country parameter) of a report.
    The problem is when there is no cities for the selected country the dropdown list is gets converted to free type text box and user can insert city data in it. Why SSRS is not keeping it as empty dropdown list with no data?
    Any help would be much appreciated.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hello Charlie,
    We developed a fresh report only with two parameters but still the dropdown control gets converted to text box in our case. We have two single selection parameters, Location and Customers. Based on selected Location the customer
    dropdown gets populated.
    Location Parameter Query
    WITH MEMBER [Measures].[ParameterCaption] AS [Location].[Location Name].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Location].[Location Name].CURRENTMEMBER.UNIQUENAME MEMBER
    [Measures].[ParameterLevel] AS [Location].[Location Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Location].[Location Name].ALLMEMBERS ON ROWS FROM [Model]
    Customer Query
    WITH MEMBER [Measures].[ParameterCaption] AS
    [Customer].[Customer Name].CURRENTMEMBER.MEMBER_CAPTION
    MEMBER [Measures].[ParameterValue] AS
    [Customer].[Customer Name].CURRENTMEMBER.UNIQUENAME
    MEMBER [Measures].[ParameterLevel] AS [Customer].[Customer Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel],[Measures].[Amt]} ON COLUMNS,
    nonempty([Customer].[Customer Name].ALLMEMBERS,[Measures].[Amt]) ON ROWS FROM ( SELECT ( STRTOSET(@LocationName, CONSTRAINED) ) ON COLUMNS FROM [Model])
    Regarding parameter settings on General tab for both the above parameters we did not select any of the following values, all these checkboxes are empty:
    Allow Blank Value ("") , Allow null value, Allow multiple values.
    I think it has something related to [Measures].[Amt] that we used in customer parameter. We are now trying to take other two parameters where we would be not using the [Measures].[Amt] to filter the data. Will update you soon.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

  • Custom list column not showing up in View Order by or Group by dropdown list

    Hi All,
    I have created a custom list with a custom column called "Description". Some items in the list do not have a description. What I wanted to do is create a view where the items with a description show first, and the items with no description are
    at the bottom of the list. I thought I could make a simple view that uses the Order by or Group by on the description column.
    The problem I am having is the description column doesn't show up in the dropdown list for either Order by or Group by within the custom view. Can someone please tell me why this happens and if there is anything I can do to rectify this problem.
    I hope you can help
    Colin

    Hi,
    I believe the "Description" field type is Multiple Lines of Text. Sorting doesn't allow in this field type. In order to do the sorting, you would require to create additional column like single line of text column (note that it supports only 255
    chars and require to truncate the data if more than 255) and update the data using event receiver or workflow. and do the sorting with that column.
    kmhsad

  • Table Control Dropdown List Problem

    Hi,
    I have this problem with my table control.
    I now have an input field (with input help) called: Reference Table, as well as a table control.
    What i need is to select the table names (select from the Reference table input help) and the field names will be populated inside the table control (according to the field names inside the respective tables) as a dropdown list.
    Refer to this diagram if unclear: http://img166.imageshack.us/img166/1066/tablecontrolwt4.png
    Please give me sample codes as i really need help.
    Will reward marks if useful.
    thanks a lot.
    Below is my codes:
    *& Report  ZHERA_TABLE3
    REPORT  ZHERA_TABLE3_EVONNE.
    DATA: P_HERA TYPE DNTAB-TABNAME VALUE 'Z07P4_REF',
           ITAB_HERA TYPE TABLE OF Z07P4_REF,
           FIELD_COUNT TYPE I,
           WA_HERA LIKE LINE OF ITAB_HERA.
    SELECT * INTO TABLE ITAB_HERA FROM Z07P4_REF.
    START-OF-SELECTION.
    CALL SCREEN 3000.
    MODULE STATUS_3000 OUTPUT.
      SET PF-STATUS 'UI'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                    "STATUS_8000 OUTPUT
    MODULE USER_COMMAND_8000 INPUT
    MODULE USER_COMMAND_3000 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK' OR 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'SAVE'.
          PERFORM UPDATE_TABLE.
      ENDCASE.
    ENDMODULE.                    "USER_COMMAND_8000 INPUT
    *&SPWIZARD: DECLARATION OF TABLECONTROL 'ZTABLE' ITSELF
    CONTROLS: ZTABLE TYPE TABLEVIEW USING SCREEN 3000.
    *&SPWIZARD: LINES OF TABLECONTROL 'ZTABLE'
    DATA:     G_ZTABLE_LINES  LIKE SY-LOOPC.
    DATA:     OK_CODE LIKE SY-UCOMM.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: UPDATE LINES FOR EQUIVALENT SCROLLBAR
    MODULE ZTABLE_CHANGE_TC_ATTR OUTPUT.
      DESCRIBE TABLE ITAB_HERA LINES ZTABLE-lines.
    ENDMODULE.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: GET LINES OF TABLECONTROL
    MODULE ZTABLE_GET_LINES OUTPUT.
      G_ZTABLE_LINES = SY-LOOPC.
    ENDMODULE.
    *&SPWIZARD: INPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: MODIFY TABLE
    MODULE ZTABLE_MODIFY INPUT.
      MODIFY ITAB_HERA
        FROM WA_HERA
        INDEX ZTABLE-CURRENT_LINE.
    ENDMODULE.
    *&SPWIZARD: INPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: PROCESS USER COMMAND
    MODULE ZTABLE_USER_COMMAND INPUT.
      OK_CODE = SY-UCOMM.
      PERFORM USER_OK_TC USING    'ZTABLE'
                                  'ITAB_HERA'
                         CHANGING OK_CODE.
      SY-UCOMM = OK_CODE.
    ENDMODULE.
      INCLUDE TABLECONTROL_FORMS                                         *
    *&      Form  USER_OK_TC                                               *
    FORM USER_OK_TC USING    P_TC_NAME TYPE DYNFNAM
                              P_TABLE_NAME
                              P_MARK_NAME
                     CHANGING P_OK      LIKE SY-UCOMM.
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA: L_OK              TYPE SY-UCOMM,
             L_OFFSET          TYPE I.
    &SPWIZARD: END OF LOCAL DATA----
    *&SPWIZARD: Table control specific operations                          *
    *&SPWIZARD: evaluate TC name and operations                            *
       SEARCH P_OK FOR P_TC_NAME.
       IF SY-SUBRC <> 0.
         EXIT.
       ENDIF.
       L_OFFSET = STRLEN( P_TC_NAME ) + 1.
       L_OK = P_OK+L_OFFSET.
    *&SPWIZARD: execute general and TC specific operations                 *
       CASE L_OK.
         WHEN 'INSR'.                      "insert row
           PERFORM FCODE_INSERT_ROW USING    P_TC_NAME
                                             P_TABLE_NAME.
           CLEAR P_OK.
         WHEN 'DELE'.                      "delete row
           PERFORM FCODE_DELETE_ROW USING    P_TC_NAME
                                             P_TABLE_NAME
                                             P_MARK_NAME.
           CLEAR P_OK.
         WHEN 'P--' OR                     "top of list
              'P-'  OR                     "previous page
              'P+'  OR                     "next page
              'P++'.                       "bottom of list
           PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
                                                 L_OK.
           CLEAR P_OK.
        WHEN 'L--'.                       "total left
          PERFORM FCODE_TOTAL_LEFT USING P_TC_NAME.
        WHEN 'L-'.                        "column left
          PERFORM FCODE_COLUMN_LEFT USING P_TC_NAME.
        WHEN 'R+'.                        "column right
          PERFORM FCODE_COLUMN_RIGHT USING P_TC_NAME.
        WHEN 'R++'.                       "total right
          PERFORM FCODE_TOTAL_RIGHT USING P_TC_NAME.
         WHEN 'MARK'.                      "mark all filled lines
           PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME
                                             P_TABLE_NAME
                                             P_MARK_NAME   .
           CLEAR P_OK.
         WHEN 'DMRK'.                      "demark all filled lines
           PERFORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
                                               P_TABLE_NAME
                                               P_MARK_NAME .
           CLEAR P_OK.
        WHEN 'SASCEND'   OR
             'SDESCEND'.                  "sort column
          PERFORM FCODE_SORT_TC USING P_TC_NAME
                                      l_ok.
       ENDCASE.
    ENDFORM.                              " USER_OK_TC
    *&      Form  FCODE_INSERT_ROW                                         *
    FORM fcode_insert_row
                   USING    P_TC_NAME           TYPE DYNFNAM
                            P_TABLE_NAME             .
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA L_LINES_NAME       LIKE FELD-NAME.
       DATA L_SELLINE          LIKE SY-STEPL.
       DATA L_LASTLINE         TYPE I.
       DATA L_LINE             TYPE I.
       DATA L_TABLE_NAME       LIKE FELD-NAME.
       FIELD-SYMBOLS <TC>                 TYPE CXTAB_CONTROL.
       FIELD-SYMBOLS <TABLE>              TYPE STANDARD TABLE.
       FIELD-SYMBOLS <LINES>              TYPE I.
    &SPWIZARD: END OF LOCAL DATA----
       ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: get looplines of TableControl                              *
       CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_LINES_NAME.
       ASSIGN (L_LINES_NAME) TO <LINES>.
    *&SPWIZARD: get current line                                           *
       GET CURSOR LINE L_SELLINE.
       IF SY-SUBRC <> 0.                   " append line to table
         L_SELLINE = <TC>-LINES + 1.
    *&SPWIZARD: set top line                                               *
         IF L_SELLINE > <LINES>.
           <TC>-TOP_LINE = L_SELLINE - <LINES> + 1 .
         ELSE.
           <TC>-TOP_LINE = 1.
         ENDIF.
       ELSE.                               " insert line into table
         L_SELLINE = <TC>-TOP_LINE + L_SELLINE - 1.
         L_LASTLINE = <TC>-TOP_LINE + <LINES> - 1.
       ENDIF.
    *&SPWIZARD: set new cursor line                                        *
       L_LINE = L_SELLINE - <TC>-TOP_LINE + 1.
    *&SPWIZARD: insert initial line                                        *
       INSERT INITIAL LINE INTO <TABLE> INDEX L_SELLINE.
       <TC>-LINES = <TC>-LINES + 1.
    *&SPWIZARD: set cursor                                                 *
       SET CURSOR LINE L_LINE.
    ENDFORM.                              " FCODE_INSERT_ROW
    *&      Form  FCODE_DELETE_ROW                                         *
    FORM fcode_delete_row
                   USING    P_TC_NAME           TYPE DYNFNAM
                            P_TABLE_NAME
                            P_MARK_NAME   .
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA L_TABLE_NAME       LIKE FELD-NAME.
       FIELD-SYMBOLS <TC>         TYPE cxtab_control.
       FIELD-SYMBOLS <TABLE>      TYPE STANDARD TABLE.
       FIELD-SYMBOLS <WA>.
       FIELD-SYMBOLS <MARK_FIELD>.
    &SPWIZARD: END OF LOCAL DATA----
       ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: delete marked lines                                        *
       DESCRIBE TABLE <TABLE> LINES <TC>-LINES.
       LOOP AT <TABLE> ASSIGNING <WA>.
    *&SPWIZARD: access to the component 'FLAG' of the table header         *
         ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
         IF <MARK_FIELD> = 'X'.
           DELETE <TABLE> INDEX SYST-TABIX.
           IF SY-SUBRC = 0.
             <TC>-LINES = <TC>-LINES - 1.
           ENDIF.
         ENDIF.
       ENDLOOP.
    ENDFORM.                              " FCODE_DELETE_ROW
    *&      Form  COMPUTE_SCROLLING_IN_TC
          text
         -->P_TC_NAME  name of tablecontrol
         -->P_OK       ok code
    FORM COMPUTE_SCROLLING_IN_TC USING    P_TC_NAME
                                           P_OK.
    &SPWIZARD: BEGIN OF LOCAL DATA----
       DATA L_TC_NEW_TOP_LINE     TYPE I.
       DATA L_TC_NAME             LIKE FELD-NAME.
       DATA L_TC_LINES_NAME       LIKE FELD-NAME.
       DATA L_TC_FIELD_NAME       LIKE FELD-NAME.
       FIELD-SYMBOLS <TC>         TYPE cxtab_control.
       FIELD-SYMBOLS <LINES>      TYPE I.
    &SPWIZARD: END OF LOCAL DATA----
       ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get looplines of TableControl                              *
       CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.
       ASSIGN (L_TC_LINES_NAME) TO <LINES>.
    *&SPWIZARD: is no line filled?                                         *
       IF <TC>-LINES = 0.
    *&SPWIZARD: yes, ...                                                   *
         L_TC_NEW_TOP_LINE = 1.
       ELSE.
    *&SPWIZARD: no, ...                                                    *
         CALL FUNCTION 'SCROLLING_IN_TABLE'
              EXPORTING
                   ENTRY_ACT             = <TC>-TOP_LINE
                   ENTRY_FROM            = 1
                   ENTRY_TO              = <TC>-LINES
                   LAST_PAGE_FULL        = 'X'
                   LOOPS                 = <LINES>
                   OK_CODE               = P_OK
                   OVERLAPPING           = 'X'
              IMPORTING
                   ENTRY_NEW             = L_TC_NEW_TOP_LINE
              EXCEPTIONS
                 NO_ENTRY_OR_PAGE_ACT  = 01
                 NO_ENTRY_TO           = 02
                 NO_OK_CODE_OR_PAGE_GO = 03
                   OTHERS                = 0.
       ENDIF.
    *&SPWIZARD: get actual tc and column                                   *
       GET CURSOR FIELD L_TC_FIELD_NAME
                  AREA  L_TC_NAME.
       IF SYST-SUBRC = 0.
         IF L_TC_NAME = P_TC_NAME.
    *&SPWIZARD: et actual column                                           *
           SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.
         ENDIF.
       ENDIF.
    *&SPWIZARD: set the new top line                                       *
       <TC>-TOP_LINE = L_TC_NEW_TOP_LINE.
    ENDFORM.                              " COMPUTE_SCROLLING_IN_TC
    *&      Form  FCODE_TC_MARK_LINES
          marks all TableControl lines
         -->P_TC_NAME  name of tablecontrol
    FORM FCODE_TC_MARK_LINES USING P_TC_NAME
                                   P_TABLE_NAME
                                   P_MARK_NAME.
    &SPWIZARD: EGIN OF LOCAL DATA----
      DATA L_TABLE_NAME       LIKE FELD-NAME.
      FIELD-SYMBOLS <TC>         TYPE cxtab_control.
      FIELD-SYMBOLS <TABLE>      TYPE STANDARD TABLE.
      FIELD-SYMBOLS <WA>.
      FIELD-SYMBOLS <MARK_FIELD>.
    &SPWIZARD: END OF LOCAL DATA----
      ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: mark all filled lines                                      *
      LOOP AT <TABLE> ASSIGNING <WA>.
    *&SPWIZARD: access to the component 'FLAG' of the table header         *
         ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
         <MARK_FIELD> = 'X'.
      ENDLOOP.
    ENDFORM.                                          "fcode_tc_mark_lines
    *&      Form  FCODE_TC_DEMARK_LINES
          demarks all TableControl lines
         -->P_TC_NAME  name of tablecontrol
    FORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
                                     P_TABLE_NAME
                                     P_MARK_NAME .
    &SPWIZARD: BEGIN OF LOCAL DATA----
      DATA L_TABLE_NAME       LIKE FELD-NAME.
      FIELD-SYMBOLS <TC>         TYPE cxtab_control.
      FIELD-SYMBOLS <TABLE>      TYPE STANDARD TABLE.
      FIELD-SYMBOLS <WA>.
      FIELD-SYMBOLS <MARK_FIELD>.
    &SPWIZARD: END OF LOCAL DATA----
      ASSIGN (P_TC_NAME) TO <TC>.
    *&SPWIZARD: get the table, which belongs to the tc                     *
       CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
       ASSIGN (L_TABLE_NAME) TO <TABLE>.                "not headerline
    *&SPWIZARD: demark all filled lines                                    *
      LOOP AT <TABLE> ASSIGNING <WA>.
    *&SPWIZARD: access to the component 'FLAG' of the table header         *
         ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
         <MARK_FIELD> = SPACE.
      ENDLOOP.
    ENDFORM.                                          "fcode_tc_mark_lines
    FORM UPDATE_TABLE.
      "Update physical database table
      UPDATE Z07P4_REF FROM TABLE ITAB_HERA.
    ENDFORM.                    "UPDATE_TABLE
    Edited by: Evonne Gow on Jan 4, 2008 2:52 AM

    hey gary help me lei...
    Edited by: Evonne Gow on Jan 4, 2008 2:55 AM

  • Adobe LiveCycle Designer ES 8.2 Dropdown List Fill from a spreadsheet

    I am a new user to Adobe LiveCycle Designer and have created a form which a manager is required to fill out for each of their employees.
    I would like to create a drop-down object which will contain the name of the employees, so the manager can just pick the employee from a dropdown list and then fill out the evaluation.  We have over 1000 employees, so I don't want to type them in one by one.
    Please let me know how to link the list of employees to this form from another source. 
    I can put the list of employee names into an Excel spreadsheet or an Access Database.
    I have tried following information posted in different places in the web, but I must be doing something wrong??
    I would appreciate a step by step guide of instructions to help me accomplish this task.
    Thank you in advance for your assistance.

    Select the Drop Down object and add a sample name thru the object UI. Now view the "XML Source" TAB, it shows xml code similar to the image.
    Now need to prepare all the names from the excell, place all names in one column of excell and copy paste the <text> and </text> nodes to the names(hopefully each column at a time). now need to copy all together and prepare final version to copy notepad (may require some replace all with spaces to format properly) then from notepad only update the above xml source . while going to design view it may pop-up warning message of changed xml, and click yes, now all names should be present in the dropdown. Hope this works.All we are doing here the form design is from "XML Source" tab insted of adding one by one from the object from design view.

  • Change the data of a gallery witn a dropdown list

    Hello,
    I hope someone can help me.
    I have a gallery in my app. And on top a dropdown list with 8 different texts.
    I also have 8 rss feeds. Now I want that the gallery change the rss when I change the dropdown.
    Is that possible?
    Can someone help and say what I have to do?
    Thank you
    Joogel

    Hello,
    To date you cannot dynamically change datasources from a gallery to my knowledge. However to make your scenario work you can do the following
    Go to the tips and tricks (https://social.technet.microsoft.com/Forums/en-US/f8cc7f2f-21bc-4ecb-91b2-622f40a5cbd3/from-the-community-tips-and-tricks?forum=projectsiena) and
    look at
    Combining multiple feeds in a single gallery (processed with REST)
    And then based on the dropdown add a filter (http://technet.microsoft.com/library/dn690139)
    Depending on the loading times and the volumes in the rss feeds you may experience some slowing down.
    You can create your supercollection in the OnVisible behavior of your screen.
    You can also work with a collection of collections but that's a bit trickier to manipulate the data.
    Regards
    StonyArc
    http://www.stonyarc.com http://www.xboxlivenation.com

  • How to have a unique list of items for separate dropdown lists?

    Software: Acrobat X (10) pro on Windows
    I want to create a pdf form in which all dropdown lists are populated with the same list of items to choose from. If I use the same field name for all drop down lists, the item selected in one dropdown list is automatically selected in all lists. This is not what I want. I wish to be able to select a different item in each & single dropdown list. I could of course maintain separate item lists for each field (using separate field names) but what a waste of time!... especially as the field lists would then have to be updated separately. There's got to be a better way to do it.
    Any idea how this could be achieved? Thank you.

    Here's a sample script that first defines a list of items in an array and uses it to update a number of dropdowns, name dd1...dd10:
    // Populate an array with the list items
    var aItems = ["-- Select a state --", "Alaska", "Hawaii", "Washington", "Oregon", "Idaho", "Montana", "Wyoming", "Nevada", "Colorado", "Arizona", "New Mexico"];
    // Loop through the dropdowns...
    for (var i = 1; i < 11; i += 1) {
        // ...and set the list items
        getField("dd" + i).setItems(aItems);
    That's all there is to it. This can be run from the Mouse Up event of a temporary button that you create, the interactive JavaScript console (Ctrl+J), etc.
    More info on setItems: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

  • Dropdown list to change image field linked image?

    Hello,
    I am quite new in Designer but I have to complete a job and I don't find the solution.
    I try to update on a form an image field using the value of a dropdown box and a "if" script.
    I use linked images (not embedded ones) and try using a script calling the image Field. value. image. href  property.
    The property is well updated as export to xml displays well the new href value but the image is not displayed as something was missing to activate it.
    form1.#subform[0].ImageField1::calculate - (FormCalc, client)
    if (UN_DropDownList == "3373") then ImageField1.value.image.href = ".\Images\UN3373.png"
    endif
    Rather simple (don't laugh at it) but it doesn't work.
    I found solutions for embedded images via visible/hidden by dropdown list (not yet tested) as these ones. I give them below for reference (if some other users are interested)
    http://forums.adobe.com/thread/683215
    http://forums.adobe.com/message/2187604
    http://acrobat.timhuff.net/?p=5
    But not for linked images (path or URL). By the way, I found same problem descriptions in other forums but without any proposed solution.
    As I should have quite a lot of images with frequent updates, it seems to me a better solutions...
    Thanks in advance for you help.
    Kind regards
    Philippe

    Hi Philippe,
    Have a look at this blog, http://blogs.adobe.com/formfeed/2009/11/linked_vs_embedded_template_im.html, it turns out that both linked and embedded images are stored in the PDF but just in different ways. So updating the href at run time will have no effect.
    If you are not in a possition to store all the images in the PDF at design time then you might have to look at setting up a webservice to access them on a server.
    Good luck
    Bruce

  • Combo box vs Dropdown list

    The Java Studio Creator (2004Q2, Update 8) help screen says that �Dropdown lists are the same as combo boxes in Swing and Microsoft Windows.�
    According to a SUN Java Swing web page, �Combo boxes require little screen space, and their editable (text field) form is useful for letting the user quickly choose a value without limiting the user to the displayed values.�
    How does one get the Combo box functionality (i.e. editable text field) in Dropdown lists in Creator?
    Thank you.

    Hi,
    Combo boxes are of two types, editable and non editable. Reference to this can be found at:
    http://java.sun.com/products/jfc/tsc/articles/jlf/index.html
    The dropdown list component provided in Creator is a non editable combo box. Also please refer to the Writing custom components for Creator by Edwin Goei available at:
    http://wiki.java.net/bin/view/Javatools/SunJavaStudioCreator
    Hope this helps
    Cheers
    Giri

Maybe you are looking for

  • MacBook Air Boots to OS, then screen goes dark.

    I have recently been working on an older style (A1304) MacBook Air with the 128GB SSD. I've been working on Mac's for years, and have worked on hundreds, but this is the first time I've ever come across this particular issue. Liquid damaged MacBook A

  • Showing more than one row at the same time, trigger necessary?

    hi I'm an absolute beginner in oracle forms, so i have a fundamental problem. i have a forms with 3 data-tables/data-blocks with following names and columns: table "connection type": con_id, con_descr table "connection": con_con_id (foreign key to "c

  • First Experience

    Just wanted to share my first experience with my new Mac Mini Server so others may avoid some frustration. Last night, I turned on my brand new Mac Mini Server. I already had an Apple Wireless Keyboard and Might Mouse and plugged in my usual LDC moni

  • Cropping my pictures - Want to know how big I can print them afterwards

    I have always been a Kodak EasyShare user in the past. I decided that this year after my vacation, I would start using iPhoto for all of my photos. I am having a bit of a problem right now and I am hoping that somebody can help me. In EasyShare, when

  • Acrobat 8.1 Not finding server

    I've hit a brick wall with the LiveCycle Policy Server allowing access to my documents. I've been controlling access to several documents using ADC successfully for about three months, and now suddenly acrobat as well as reader is unable to contact t