Populating a text field depending on what is selected in list item field

I have A form which contains a ROOM_REF field which is a list item, and a ROOM_DESC field which is a text item. (among other things).
When the user selects from the ROOM_REF field (which is populated by a record group on startup),
I want it to automatically populate the ROOM_DESC field with the coresponding (read only) data.
Which kind of trigger do I need to use and with what code?
Something like:
SELECT ROOM_DESC FROM ROOM WHERE ROOM_REF = :SESSION.ROOM_REF;
Thanks

Did you try this code in WHEN-LIST-CHANGE trigger of list item.
SELECT ROOM_DESC INTO :ROOM_DESC FROM ROOM WHERE ROOM_REF = :SESSION.ROOM_REF;-Ammad

Similar Messages

  • Makeing subforms visible depending on what is selected from the dropdown

    Good day all;
    Looks like I am batting “0” today. For some reason I am not able to get a number of things to work today… Maybe I should just write this day off as a loss..;>))
    Any way; I am trying, without success to get sub forms to become visible depending on what is selected from a dropdown. I have tried using “switch” (see below) but I end up getting the famous “Syntax” error.
    I have also tried an “if” (see below) statement, but that did not seem to work either.
    What I would like to have happen is when a user selects 1 of 2 choices 1 of 2 sub forms becomes visible.
    As well, if the user has initially selected the wrong dropdown and they select now select the correct one, I would like the incorrect sub form to become invisible again.
    I would appreciate any help
    switch (this.rawValue)
        case "2":
        staffing_inter.presence = "visible";
    else
    staffing_inter.presence = "hidden";
        break;
    IF statement
    if(this.rawValue = 2 )
        staffing_inter.presence = "visible"
    else{
    staffing_inter.presence = "hidden";

    Thank you Jono and Niall;
    I was looking through the forum and found a post by Niall that appears to be working; I was wondering if this should be used or the one that Jono has posted...
    staffing_inter.presence = "hidden";
    staffing_inter.preAsence = "hidden";
    // Then show the appropriate one
    if (this.rawValue == "2") {
    staffing_inter.presence = "visible";
    else if (this.rawValue == "3") {
        staffing_exter.presence = "visible";

  • How to make a list item field with DATE data type?

    I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
    "FRM-32082: Invalid value for given item type.
    List WEEKREST
    Item: WEEKREST
    Block: EMPRESTS
    Form: MODULE3
    FRM-30085: Unable to adjust form for output."
    Using forms 6i how to make a list item field with DATE data type which can hold day names?

    Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.

  • Automatically update text field depending on the in select list value

    I have got 2 tables. Table A (Employee Personal Detail), Table B (Employee Academic detail). Employee no is common field between two tables).
    I have created interactive report with form on table b using in-built templates. I have added text box on form to display employee name which is stored in table A. I want to automatically display employee name depending upon value in employee no field on form. I know I can write query to get value in employee name field. It gives me error when employee no is blank. How to handle error?

    Sagar,
    For the employee name value to change according to the emp_no, your page needs to get submitted. can you use a select list with submit for emp_no? And then use the PL/SQL mentioned above to run on page submit?
    I'm not sure but I guess you can also achieve this in Ajax. May be someone expert in that could help.

  • How to show a text field based on what is entered in a date field

    Hi there LiveCycle experts!
    I have a form with a text field that I want to show only if the value of the previous date field once entered is less than 1 month from today?
    Any help appreciated, been researching in vain for hours!!!
    Sarah

    Wow Steve - thanks so much this is so exciting I just love learning these new scripts.
    I assume I need to make the text field 'Hidden' - ?
    I seem to be struggling a little to get it working - are you able to have a quick squizz at my document - it is in the very early stages!
    Regards,
    Sarah Milne
    FACEBOOK : Join our  'BritBound Social Events' Group on Facebook to receive details of forthcoming social events...click here to join. 
    For a sociable & stress free arrival experience!
    BritBound London Office: Britain & London Visitor Centre, 1 Regent Street, London, SW1Y 4XT.
    Tel UK: | 0845 450 3536 | From OS + 44 (0) 20 7808 3815
    Tel OZ: | Sydney: (02) 8003 7651  | Melbourne: (03) 9005 8304 | Brisbane: (07) 3102 9766
    Tel NZ: | Auckland: (09) 889 3175 | Wellington: (04) 889 2015   | Christchurch: (03) 669 2032
    Website:        www.britbound.co.uk
    E-mail:           [email protected]
    Click Here to find out more about: | UK VISAS  | MOBILE PHONE CONTRACTS FOR NEW ARRIVALS TO THE UK  |  UK ACCOMMODATION  |  AIRPORT TRANSFERS  |  UMBRELLA COMPANIES   |  DISCOUNTED INTERNATIONAL BANK TRANSFERS  |  SOCIAL EVENTS   |  TAX REFUNDS  |  NATIONAL INSURANCE (NI) NUMBERS
    Disclaimer: The information contained in or attached to this message is intended only for the people it is addressed to. If you are not the intended recipient, any use, disclosure or copying of this information is unauthorised and prohibited. This information may be confidential or subject to legal privilege. BritBound cannot accept liability for any virus damage caused by this message. This documentation is for your general information, and is not to be construed as advice. Clients should not act on the information contained herein alone, and should seek independent advice if necessary.

  • How do I place a link in a PDF that takes the user to an online order form that is pre-populated in different ways, depending on what button they pressed?

    Hi There,
    My question is basically in the top there. Essentially I want to create a marketing brochure that really gives my clients the easiest way to get to and purchase my product.
    Is the only way to do it to create a separate order form for each product and just send them to that?
    I'd love some feedback,
    thanks
    Alex.

    There are various ways this can be done. One way is to use a back-end application to pre-populate a copy of the PDF with the data and then serve it to the user, but that is quite complex to implement. Another way would be to use parameters in the URL to do it. That can be done more easily with a script.

  • How do I populate form fields depending on the value of a list box?

    Hi,
    Can anybody help me out here?
    I'm creating a form where I'm needing to populate a number of fields (first name & last name) based on the value of a list box (values are 1,2,3,4,5,6) ie: if 3 is selected 3 sets of the first name and last name fields populate on the page for the user to fill out.
    At this stage it is just a prototype site and there is no database running behind it.
    Thanks
    Hayden

    This can only be solved if you have javascript coding skills.  Without knowing more about what you want to do and why, I can only show you a skeleton of how your code should look, but consider this form select field -
    <select onchange="populateForm()">
    When a value is selected from that list, the "onchange" event will fire, and will call the javascript function called populateForm().  You need to define a function by that name somewhere on the page -
    <script type="text/javascript">
    //<![CDATA[
    function populateForm(value) {
         if value >0 { document.getElementById("fieldID").style.display='block' }
         if value >1 { .... }
         etc.
    //]]>
    </script>
    The page itself would need to have ALL the fields already in the form, but with those that are to be revealed set to a style of display:none.
    Obviously, this is a skinny skeleton.  Each test in the function would reveal a new field on the page by changing its display style from "none" (which is how they should be set in the code) to "block".  You would need a separate function for each type of field that might need to be chosen.
    If this is well over your head, then I'm afraid you will be out of luck for this particular approach....

  • Can you populate popups depending on what previous selections you made?

    Im not sure if this is in the correct forum but is it possible but can you make popups populate depending on a previous popup selection?
    As an example if you have a popup with 2 selections 10 and 20 could you have a second popup display either selections form 11,12,13 to 19 and 21,22,23 to 29?
    So in Popup 1 you select 10. Popup 2 only shows 11, 12, 1319.
    cluster(name: '$$$/CustomPanels/Widgets/widgetName=Range', placement: place_column, spacing: gSpace, horizontal: align_center, margin_height:10, width : 300, height : 100, child_vertical: align_center)
    popup(items: '$$$/CustomPanels/Widgets/Language/PopupItems=10{10}; 20{20}', xmp_path: 'foo');

    The current file info does not allow for that type of logic.
    If you are looking to create a more customized metadata UI, your best bet is to look at using custom Flash panels within Bridge.
    There is a sample you can download and install on the Adobe exchange site:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1190 517
    Gunar

  • Sales spreadsheet - amounts and formulas dependent on what is selected in drop-down menus

    Hi, I'm revising the spreadsheet we use for monthly sales reports, and have two questions about how I can make Numbers recognize what item is selected in a pop-up menu, and then how I can get it to do certain things.
    1. I have a pop-up menu with all of the items for sale in our store.  The next column is the price of each item.  After I select an item in the pop-up menu, I want the price to magically appear in the price column.  Is there a formula I can use to have Numbers read the pop-up menu and enter a certain value automatically?
    2. I also have a separate table with total sales by employee.  In the table above, each line has a pop-up menu with a list of all the employees here at the store.  In this second table, I have a row for each employee, with one cell for their name and another for total sales.  In the sales cell, I want a total of all the values in the price column, but only the rows with that individual selected in the pop-up menu.  How do I formulate this?  Thanks!

    Hello everyone, thanks again for all the help you've all given me.  This spreadsheet worked great up until I upgraded to the latest version of iWork (Numbers 3.2), now this formula isn't working anymore.  Any idea of how to get it working in the new version?  See below for the original questions and solution.
    Hi, I'm revising the spreadsheet we use for monthly sales reports, and have two questions about how I can make Numbers recognize what item is selected in a pop-up menu, and then how I can get it to do certain things.
    1. I have a pop-up menu with all of the items for sale in our store.  The next column is the price of each item.  After I select an item in the pop-up menu, I want the price to magically appear in the price column.  Is there a formula I can use to have Numbers read the pop-up menu and enter a certain value automatically?
    2. I also have a separate table with total sales by employee.  In the table above, each line has a pop-up menu with a list of all the employees here at the store.  In this second table, I have a row for each employee, with one cell for their name and another for total sales.  In the sales cell, I want a total of all the values in the price column, but only the rows with that individual selected in the pop-up menu.  How do I formulate this?  Thanks!
    iWork Numbers
    This solved my question by Barry on Nov 30, 2012 7:11 PM 
    Hi 'kid,
    From your screen shot, I'm assuming
    -- In Table 1 (top)
    -- The sales person's name for each sale is listed in column A, starting in A2,
    -- the item sold is in the same row, in column D,
    -- the number of items sold is entered into column E,
    -- the price of that item is to be retrieved from a separate table (Table 3), and inserted in  column F
    -- the formula =E*F is used in column G to calculate the total price for the sale of that item.
    In Table 2
    -- Brad's name is in A2 and his total is to be reported in B2.
    -- Tony's name is in A3 and his total is to be reported in B3.
    -- Other names will be added below Tony, and their totals reported in the same row, in column B.
    Table 3 will be a lookup table containing the item names and the price for one of that item, listed in columns A and B respectively.
    Formulas:
    Table 1
    F2: =IFERROR(VLOOKUP(D2,Table 3 :: $A:$B,2,FALSE),IF(LEN(E2)>0,"not found",""))
    G2: =IF(LEN(E2)>0,E*F,"")
    Table 2:
    B2: =SUMIF(Table 1 :: $A,A2,Table 1 :: $G)
    The functions used are defined and discussed in the iWork Formulas and Functions User Guide, available through the Help menu in Numbers '09.
    IF(LEN(x)>0...is used to allow the calculation only if there is an entry in the cell referenced by 'x'.
    IFERROR traps the 'not found' error that may occur and presents either the appropriate message or a null string.
    Regards,
    Barry
    PS: You may eventually want to limit the totals to sales within a specific time period. For that, take a look at SUMIFS.
    B
    See the answer in context

  • SharePoint Designer workflow - update list item field without creating new version?

    Hello,
    I have a list that uses versioning.
    I have a workflow, designed in SharePoint Designer, that will track changes in some columns, and if there is a change it will send out an email.
    To track the changes eg in the Status column, I have a hidden "OldStatus" column so I can compare the current value with the previous value.
    If it's different it means it has been changed, and I send out an email, then update the OldStatus with the current value so they're in sync again.
    Problem I have now is that when I update the OldStatus column in my workflow it will create a new version of the listitem. I don't want that. This is a system value change and has no value at all to the end user.
    In C# I can do a systemupdate to avoid this, but how can I do this in SharePoint Designer?
    Please don't tell me I should write the entire workflow in code, only to get access to the systemupdate command....

    I created a Worfklow Activity class, called "UpdateFieldInCurrentItemSilentMode".
    I add the default context properties to work with:
    #region Context properties
    public static DependencyProperty __ContextProperty = DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions")]
    [Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public WorkflowContext __Context
    get
    return ((WorkflowContext)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty, value);
    public static DependencyProperty __ListIdProperty = DependencyProperty.Register("__ListId", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public string __ListId
    get
    return ((string)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty, value);
    public static DependencyProperty __ListItemProperty = DependencyProperty.Register("__ListItem", typeof(int), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public int __ListItem
    get
    return ((int)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty, value);
    public static DependencyProperty __ActivationPropertiesProperty = DependencyProperty.Register("__ActivationProperties", typeof(SPWorkflowActivationProperties), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public SPWorkflowActivationProperties __ActivationProperties
    get
    return (SPWorkflowActivationProperties)base.GetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty);
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty, value);
    #endregion
    Then I add my own input parameters to work with:
    public static DependencyProperty StaticFieldNameProperty = DependencyProperty.Register("StaticFieldName", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string StaticFieldName
    get
    return Convert.ToString(base.GetValue(StaticFieldNameProperty));
    set
    base.SetValue(StaticFieldNameProperty, value);
    public static DependencyProperty FieldValueProperty = DependencyProperty.Register("FieldValue", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string FieldValue
    get
    return Convert.ToString(base.GetValue(FieldValueProperty));
    set
    base.SetValue(FieldValueProperty, value);
    Then the actual workflow action code:
    protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
    try
    if (this.__Context == null)
    throw new Exception("__Context is NULL");
    if (this.__Context.Site == null)
    throw new Exception("__Context.Site is NULL");
    //reload the web using the SPSite object to work around any limitations on the objects
    //applied to the user running the workflow
    SPWeb tmpweb = __Context.Web;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(tmpweb.Url))
    using (SPWeb web = site.OpenWeb())
    //load list
    SPList lst = web.Lists[new Guid(__ListId)];
    //load listitem
    SPListItem item = lst.GetItemById(__ListItem);
    //update field value
    item[this.StaticFieldName] = this.FieldValue;
    //commit changes
    item.SystemUpdate();
    //return success workflow status
    return ActivityExecutionStatus.Closed;
    catch (Exception exc)
    string sMsg = "Error in 'UpdateFieldInCurrentItemSilentMode':" + Environment.NewLine
    + exc.Message + Environment.NewLine + Environment.NewLine +
    "StaticFieldName: " + this.StaticFieldName + Environment.NewLine +
    "FieldValue: " + this.FieldValue;
    Common.WriteErrorToLog(sMsg);
    //return failed workflow status
    return ActivityExecutionStatus.Faulting;
    Note: the WriteErrorToLog function is a custom function that writes the error to the event log. It's located in another class. You can replace it with your own error handling approach.
    Then we need to specify the workflow action in the .actions file, so SharePoint Designer knows about it and which parameters are required:
    <Action Name="Set field in current item (silent mode)"
    ClassName="My.WorkflowActions.UpdateFieldInCurrentItemSilentMode"
    Assembly="My.WorkflowActions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0f8d2d9e2dfb2160"
    AppliesTo="all"
    Category="My Workflow Actions">
    <RuleDesigner Sentence="Set field %1 in current item to value %2 (silent mode)">
    <FieldBind Field="StaticFieldName" DesignerType="ParameterNames" Id="1" Text="StaticFieldName" />
    <FieldBind Field="FieldValue" DesignerType="ParameterNames" Id="2" Text="FieldValue" />
    </RuleDesigner>
    <Parameters>
    <Parameter Name="StaticFieldName" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="FieldValue" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" Direction="In" />
    <Parameter Name="__ListId" Type="System.String, mscorlib" Direction="In" />
    <Parameter Name="__ListItem" Type="System.Int32, mscorlib" Direction="In" />
    <Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="Out" />
    </Parameters>
    </Action>
    That is all you need for the specific code, the rest is common code to build custom workflow actions, which you can find on many blogposts or this forum.

  • Can u pls tell what r the currency and quantity fields in detail.

    hi to all can u pls teell
    can u pls tell what r the currency and quantity fields in detail.
    what is reference table .and reference fields .why we r giving theese reference table names while creating the currency fields .

    Hi,
    Currency amount fields and quantity fields are numeric fields which each have a currency or unit field assigned to them. The correct interpretation of the values in these fields depends on its currency or unit of measure. Therefore, you can decide whether you want their corresponding currency/unit of measure to be displayed before or after the field, or not at all. Proceed as follows:
    1. Select the field.
    2. Choose one of the options from the window on the lower left (before, No currency field/unit, or after).
    3. Choose Apply.
    For more information check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/5da4e42cf511d5b692006094192fe3/frameset.htm
    Following are system variables of currency:
    SY-CCURS
    R/2 - exchange rate and result field for CURRENCY CONVERSION. Not filled in R/3.
    SY-CCURT
    R/2 - table exchange rate for CURRENCY CONVERSION. Not filled in R/3.
    SY-CDATE
    R/2 - exchange rate date for CURRENCY CONVERSION. Not filled in R/3.
    SY-CTABL
    R/2 - exchange rate table for CURRENCY CONVERSION. Not filled in R/3.
    SY-CTYPE
    R/2 - exchange rate type for CURRENCY CONVERSION. Not filled in R/3.
    SY-DCSYS
    Dialog system of the R/2 System. Not filled in R/3.
    SY-WAERS
    Formerly the company code currency after reading a posting segment. Not filled in R/3.
    Regards,
    Bhaskar

  • Dropdown field - when certain entries are selected make another field unavailable for data input

    Hi All,
    Sorry one again I am very new to forms and have another question. I have a dropdown list which when selecting certain values I need another field to be unavailable so the user can't enter data.
    Hope this example makes sense:
    DropDown
    Field %
    Outer
    Not Allowed to enter data
    Back
    Not Allowed to enter data
    Inner
    Not Allowed to enter data
    Cotton
    Allowed to enter data
    Wool
    Allowed to enter data
    If someone could give me some examples that would be a great help.
    Many Thanks
    Adam Sadler

    Here's a script that you can use for the custom Validate script of the dropdown. It resets the value of the corresponding text field whenever a change is made to the dropdown. You can get rid of the line that does this if you don't want this to happen. Change "text1" in the code to match the name of the text field you're using.
    // Custom Validate script for dropdown
    (function () {
        // Get the selected value
        var v = event.value;
        // Set up an object to associate read-only status of text field with items
        var f_state = {
            "Outer": true,
            "Back": true,
            "Inner": true,
            "Cotton": false,
            "Wool": false
        // Get a reference to the text field
        var f = getField("text1");
        // Clear the text field
        f.value = "";
        // Set the read-only status of the text field based on what's selected
        if (v in f_state) {
            f.readonly = f_state[v];

  • Why is list box field highlighted?

    I am creating a fillable PDF form using Acrobat Pro X (10.1.7) that is intended to be filled in using Reader or by hand. I have only one field that is a list box (with 43 items), and for some unknown reason, in both Acrobat Pro X and in Reader XI, it is being highlighted in blue even when all other fields are not highlighted (Highlight Existing Fields off). When the other fields are highlighted in light blue, the list box field is highlighted in a darker blue. It displays the same behavior whether the fill color is white or no color. When I print the form in black and white, which is how it will normally be printed, the field is filled in with a medium gray. I'm an Acrobat newbie so I haven't done anything fancy with the field. I need to get rid of the highlighting ASAP and I don't have a clue about what could be wrong. Does anyone have any suggestions?

    Perhaps "highlighting" is not the correct term for what is happening, sorry for the misuse of terminology. I need this field to have no background color and I don't understand why it does. I have difficulty believing this is a standard display methology because the field prints as medium gray on a B&W printer, and the black text is hardly visible as a result.
    The State field is a drop-down list and has no color. Do I need to change the County field to a drop-down list as well to get rid of this problem?

  • List item - Population - Based on Data setup

    Dear All,
    I need to populate the list item based on data defined at the database level.
    Tables Used:
    Table 1 : JBCAI_JOB_COM_ADD_INFO
    Column Name     Pk     Null?     Data Type     Default     
    JBEDC_UID          1     N     NUMBER (22)          
    JBCAI_ADD_INFO_CODE     2     N     VARCHAR2 (2 Char)          
    JBCAI_INFO_CODE_SEQUENCE      3     N     NUMBER (3,1)     1     
    JBCAI_ADD_INFO_TEXT     Y     VARCHAR2 (35 Char)          
    SHIPCOMP_CODE     N     VARCHAR2 (4 Char)     
    Table 2 :CODES
    CODE_TYPE CODE_VALUE DESCRIPTION NEXT_VALUE CODE_FLAG
    MCAR 01 Customs References 01 NULL N
    MCAR 02 Customs References 02 NULL N
    MCAR 03 Value of Commodities NULL N
    MCAR 04 Currency of commodities NULL N
    MCAR 05 Purchase Order Number NULL N
    MCAR 06 Other NULL N
    MCAR 07 Consignee Name NULL N
    MCAR 08 VIN NULL N
    FORMS Section
    =========
    JBCAI_ADD_INFO_CODE are the list items which needs to be populated; JBCAI_ADD_INFO_TEXT(free text) which user can enter any descriptions.
    References - Label of the Block
    JBCAI_ADD_INFO_CODE JBCAI_ADD_INFO_TEXT
    Customs References 01 - Free Text()
    Customs References 02 - Free Text()
    Value of Commodities - Free Text()
    Currency of commodities - Free Text()
    Purchase Order Number - Free Text()
    Other - Free Text()
    Consignee Name - Free Text()
    VIN - Free Text()
    VIN - Free Text()
    Business Rules:
    If JBCAI_ADD_INFO_CODE has the flag as 'N' in CODES table then user can select only one time from the list item.
    If JBCAI_ADD_INFO_CODE has the flag as 'Y' in CODES table then user can do multi-selection from the list item e.g; VIN
    How the records are fetched:
    Value for the list item are been populated from CODES table ; which am doing through the below query.
    In WHEN-NEW-FORM-INSTANCE am using the below code:
    PROCEDURE p_fetch_code_value
    IS
              l_query VARCHAR2(200) ;
              l_rg_name VARCHAR2(40) := 'CODES';
              l_errcode NUMBER;
              l_rg RECORDGROUP;
         BEGIN
              l_query := 'SELECT adcod.description description,adcod.code_flag code_flag FROM codes adcod WHERE adcod.code_type = ''MCAR''                    AND adcod.code_value IN (''01''''02'',''03'',''04'',''05'',''06'',''07'',''08'') ORDER BY code_value';
              l_rg := FIND_GROUP( l_rg_name );
              IF ID_NULL(l_rg) THEN
              l_rg := CREATE_GROUP_FROM_QUERY(l_rg_name, l_query);
              END IF;
              l_errcode := POPULATE_GROUP( l_rg );
              POPULATE_LIST('BLK_CONTROL.JBCAI_ADD_INFO_CODE',l_rg);
    EXCEPTION
    Handled WHEN OTHERS exception
    END p_fetch_code_value;
    Saving of Record:
    List value selection are saved to JBCAI_JOB_COM_ADD_INFO.JBCAI_ADD_INFO_CODE column.
    Free Text is saved to JBCAI_JOB_COM_ADD_INFO.JBCAI_ADD_INFO_TEXT column.
    Doubt:
    When i select the first list item value i.e Customs References 01 and then enter some description i.e free text and moved to the next list item; the value Custom reference 01 should not be visible wheras the other values should have to be visible e.g; Customs Reference 02,Value of Commodities.....
    Please help and let me know how can i acccomplish this task?
    Thanks....
    Regards,
    Sunil.G

    Hi Sarah,
    Thanks for your reply.
    There is no issue in the population of the list item; it is working fine with the query which i have pasted.
    My doubt is:
    There are few places where i have set the code_flag as 'Y' / 'N'.
    For the first time when user selects the list item; all the values should be shown.....
    If user has selected the first list item i.e Customs Reference 01 for which the code_flag is 'N' from a multi-record block; then when he moves to the further lines the previous selection for which the flag is set as 'N' should not be shown(if user has already selected once) e.g; 'Customs Reference 01' should not be shown again if user has made the selection before.
    Plz revert incase more explanations required.
    Thanks...
    Regards,
    Sunil.G
    Edited by: Sunil G on Nov 29, 2009 12:16 AM

  • Passing Multiple Selected List Items to a "New Item" Form in Another List with Multiselect Lookup Field

    Hi!
    Version Info:  SharePoint 2013 Server Standard (*BTW...I do not have access to Visual Studio*)
    I have two lists, let's call them
    -Assets
    -Asset Checkouts
    "Assets" is the parent list, and "Asset Checkouts" has a lookup column (multiselect) which is tied to the serial # column in the "Assets" list.
    Basically, what I need to accomplish is this:  I would like to be able to select multiple list items in the "Assets" list, and create a new item in "Asset Checkouts", and pre-fill the multiselect lookup column in the NewItem form
    for "Asset Checkouts" with the values from the selected items in "Assets".
    Any ideas or suggestions on how to do this would be most appreciated!
    Thanks!

    Hi,     
    According your description, you might want to add new item in "Asset Checkouts" list when selecting items in "Assets" list.
    If so, we can achieve it with SharePoint Client Object Model.
    We can add a button in the "Assets" list form page, when selecting items, we can take down the values of columns of the selected items, then click this button which will create
    new item in "Asset Checkouts" list with the values needed.
    Here are some links will provide more information about how to achieve it:
    Use
    SP.ListOperation.Selection.getSelectedItems() Method to get the list items being selected
    http://msdn.microsoft.com/en-us/library/ff409526(v=office.14).aspx
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx
    Add ListItem with Lookup Field using Client Object Model (ECMA)
    http://notuserfriendly.wordpress.com/2013/03/14/add-listitem-with-lookup-field-using-client-object-model-ecma/
    Or if you just want to refer to the other columns in "Assets" list when add new item in "Asset Checkouts" list, we can insert the "Assets" list web part into the NewForm page
    of the "Asset Checkouts" list, then when we add new item in the "Asset Checkouts" list, we will be able to look through the "Assets" list before we select values for the Lookup column.
    To add web part into the NewForm.aspx, we need to find the button "Default New Form" from ribbon under "List" tab, then we can add web part in the NewForm.aspx.
    In the ribbon, click the button “Default New Form”:
    Then we can add web part into NewForm.aspx:
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • How to add/create a new keyboard ShortCut?

    There is no shortcut to color code or label an image for purple, if there is one I have not found it.  If you know of one, please send it & presuming there isn't one, what are the steps for creating one or modifying one to apply it as desired? Thanks

  • Reporting doesn't show the newly installed SCOM Agents

    Hello, I am running SCOM 2012 SP1 on Win2008 R2. I recently deployed scom agent to couple of machines the agents are showing up healthy and i can see the performance and health data from Monitoring tab but when i try to run report i can't find these

  • DB Tab RFCDES: Could not determine code page

    Hello, I have a simple scenario File->XI->IDOC(orders05) The R/3 who receive the IDOC is an 46c system. When sending a file to the XI I receive the following error message in sxmb_moni on the last step "Call Adapter" DB Tab RFCDES: Could not determin

  • Connecting to EB-G5650W

    I'm trying to connect to an Epson Projector using a mini dvi/vga adaptor. Most of the time, I get a flashing blue screen from the projector. I can get a stable shot of the desktop, but it goes back to the flashing/ blinking screen when I open any app

  • Userexit in migo

    hi,   I had a requirement in migo t-code to work with userexits.From SMOD i  got the userexit for migo........then in CMOD in project what i need to input? Where we need to write the code for a userexit? Can anyone help me out...?Your help would be a