Passing item id based on checkbox selection in sharepoint library

Seeking help on how to pass item id via query string into InfoPath form webpart (via connector)
I have the infopath webpart form and query string all set up and the url works when I provide the value required for the field
My problem is, the value will be driven by the user based on them selecting the checkbox next to the document in the library
Its then actioned through them selecting the quickstep button I have set up in the ribbon which has the url in it
The url I have set up is: http: / / test.abc.com.au/sites/abcd/Lists/NEW FEEDBACK/newform.aspx?title=blah
'title' is what the string is detecting and blah is what is being pulled through to the form
Any ideas?
Tom.

Here is how you get selected items using JavaScript client object model:
var context = SP.ClientContext.get_current();
var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
var itemIds = "";
    for (var i = 0; i < selectedItems.length; i++) {
        itemIds += selectedItems[i].id + ",";
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field

Similar Messages

  • Calculate value based upon checkbox selection

    G'day people,
    I've got myself a bit stuck on a job I've got here, this javascript is getting the better of me.
    The idea is that this script takes the sub total, and adds a creditcard surcharge (as a percentage) based upon a checkbox selection, then spits out the value to be entered into another field.
    If anyone could have a quick look over the following and let me know where I've gone wrong, it would be appreciated.
    var subtotal = this.getField("SubTotal").value;
    var mastercardTick = this.getField("MasterCard");
    var visaTick = this.getField("Visa");
    var amexTick = this.getField("Amex");
    var surcharge = this.getField("CreditSurcharge").value;
    var creditcard = this.getField("PayCredit").value;
    if (creditcard.value === "Off") {
         event.value = 0;
    } else {
              if (mastercardTick.value === "Yes") {
                 surcharge.value= (1.2 / 100) * subtotal.value;
        } else if (visaTick.value === "Yes") {
                 surcharge.value = (1.2 / 100) * subtotal.value;
        } else if (amexTick.value === "Yes") {
                   surcharge.value = (3.75 / 100) * subtotal.value;
        } else {
              event.value = 0;

    Thanks George, I've given this a whirl and got very close... I got a NaN error, and found I was calling "SubTotal" a value twice, which was playing funny buggers!
    I've got rid of one part (the if creditcard.value === "Off") as it wasn't acting like it should. I think I had to put it in a seperate function, to be called seperately then the rest of the code... However, I need to get the job out and it wasn't crucial.
    Thanks for your help mate, appreciated.
    For anyone else that's interested, amended code is as follows:
    var subtotal = this.getField("SubTotal");
    var mastercardTick = this.getField("MasterCard");
    var visaTick = this.getField("Visa");
    var amexTick = this.getField("Amex");
    // var surcharge = this.getField("CreditSurcharge").value;
    var creditcard = this.getField("PayCredit").value;
              if (mastercardTick.value === "Yes") {
                 event.value = (1.2 / 100) * subtotal.value;
        } else if (visaTick.value === "Yes") {
                 event.value = (1.2 / 100) * subtotal.value;
        } else if (amexTick.value === "Yes") {
                   event.value = (3.75 / 100) * subtotal.value;
        } else {
              event.value = 0;
    Not the nicest, but hey, it worked.

  • How to script text field based on checkbox selection

    I've written a script to format specific text boxes based on what checkbox is chosen. However, I'm not sure what I need to script in order to CLEAR the text field once the checkbox is unchecked. As it stands now if the checkbox is selected it formats the text field with the necessary information, but if it's unchecked the information stays in the box. I'd like to be something like 'if all boxes are Off then display 0.00.' I've included the current script for reference
    var one = this.getField("Emp 500");
    var two = this.getField ("Emp+C500");
    var three = this.getField("Emp+S500");
    var four = this.getField("Fam500");
    var five = this.getField("NC500");
    var six = this.getField("Medical");
    if (one.value == 'Yes') {six.value='70.70'}        
    else if (two.value ==
    'Yes') {six.value='127.20'}
    else if (three.value == 'Yes') {six.value='141.32'}
    else if (four.value == 'Yes') {six.value='198.00'}
    else if (five.value == 'Yes') {six.value='0'}
    var one = this.getField("Emp 1500");
    var two = this.getField ("Emp+C1500");
    var three = this.getField("Emp+S1500");
    var four = this.getField("Fam1500");
    var five = this.getField("NC1500");
    var six = this.getField("Medical");
    if (one.value == 'Yes') {six.value='61.47'}
    else if (two.value == 'Yes') {six.value='110.49'}
    else if (three.value == 'Yes') {six.value='141.32'}
    else if (four.value == 'Yes') {six.value='123.04'}
    else if (five.value == 'Yes') {six.value='0.00'}

    Hi Gayathri,
    Gayathri Venugopal wrote:
    Hi,
    I have two text items. Need to create dynamic action for the following,
    1. Order_type - Drop down values having CONSUMER & WHOLESALE.
    2. Order_number- Text field
    Order number should be disabled and only on selection of order type ,order number should be enabled.
    Can someone please help me on this?
    Create two dynamic action
    1. Make it order number item disable on page load.
       Event : Page Load
       Action : Disable
       Fire When event result is : True
       Selection Type : Item
       Item : Your order number item
    2 . enable and disable order number on selection of order type(assuming when order type is null it is disable otherwise it is enable)
        Event : Change
        Selection type : item
        Item : your order type item
        condition : is not null
    True Action
        Action : Enable
        Fire When event result is : True
        Fire on page load : True
        Selection Type : Item
        Item : Your order number item
    False Action
        Action : Disable
        Fire When event result is : False
        Fire on page load : True
        Selection Type : Item
        Item : Your order number item
    Hope this helps you,
    Regards,
    Jitendra

  • Calling the smartform based on checkbox selection in ALV

    Hi
    i displayed the report output in ALV using 'REUSE_ALV_GRID_DISPLAY'. I maintained checkboxes as first column of data.
    and i also added three user defined buttons like check,uncheck,print form. Now my problem is when user selecting the records in ALV using the checkbox,i have to call the smartform based up on user selection of check box.i done but it is coming only for one checkbox.if we select multiple checkboxes it is not coming.but i need smartform has to call for every checkbox user has selected.
    can u suggest on this.all my data in internal table i_data with checkbox field. i'm copying my code here.
    LOOP AT I_DATA.
        READ TABLE I_DATA INTO WA_DATA INDEX FU_SELFIELD-TABINDEX.
        WA_DATA-SEL = 'X'.
        MODIFY I_DATA FROM WA_DATA TRANSPORTING SEL.
        FU_SELFIELD-REFRESH = 'X'.
    MOVE-CORRESPONDING WA_DATA TO WA_PRINT.
      APPEND WA_PRINT TO I_PRINT.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            FORMNAME                 = 'ZHRF1_PTAR1001'
    *       VARIANT                  = ' '
    *       DIRECT_CALL              = ' '
         IMPORTING
           FM_NAME                  = FM_NAME
    *     EXCEPTIONS
    *       NO_FORM                  = 1
    *       NO_FUNCTION_MODULE       = 2
    *       OTHERS                   = 3
        IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      CALL FUNCTION FM_NAME
        EXPORTING
    *     ARCHIVE_INDEX              =
    *     ARCHIVE_INDEX_TAB          =
    *     ARCHIVE_PARAMETERS         =
    *     CONTROL_PARAMETERS         =
    *     MAIL_APPL_OBJ              =
    *     MAIL_RECIPIENT             =
    *     MAIL_SENDER                =
    *     OUTPUT_OPTIONS             =
    *     USER_SETTINGS              = 'X'
          FR_DATE                    = PN-BEGDA
          TO_DATE                    = PN-ENDDA
    *   IMPORTING
    *     DOCUMENT_OUTPUT_INFO       =
    *     JOB_OUTPUT_INFO            =
    *     JOB_OUTPUT_OPTIONS         =
        TABLES
          ITAB                       = I_PRINT
    *   EXCEPTIONS
    *     FORMATTING_ERROR           = 1
    *     INTERNAL_ERROR             = 2
    *     SEND_ERROR                 = 3
    *     USER_CANCELED              = 4
    *     OTHERS                     = 5
      IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDLOOP.
    ENDCASE.
    Moderator Message: Duplicate post locked. Continue with your previous thread.
    Edited by: Suhas Saha on Dec 27, 2011 9:17 AM

    HI arjun,
    according to you code,
    READ TABLE I_DATA INTO WA_DATA INDEX FU_SELFIELD-TABINDEX.
    the fu_selfield-tabindex contains only one number , so its trigger only one check box, it is not correct to loop i_data .
    take the records which are checked and loop that internal table , using check_changed_data u can select multiple records which are checked.
    one importent thing , use sy-subrc after read statement bcz see example
    in second loop if the read statement has failed but the work area contains the data , so beware check sy-subrc= 0 . after read.
    debug your program and check every time FU_SELFIELD-TABINDEX will be same . so reads same record so many time how many times the loop had.
    instead do like this
    loop at i_data into wa_data where check = 'x'.
    MOVE-CORRESPONDING WA_DATA TO WA_PRINT.
    endloop.
    Regards
    Siva

  • Dynamically changing UI element property based on Checkbox selection

    Hi,
    I have a checkbox in my UI. On the selection of the checkbox, a dropdown must get enabled and when the checkbox is not selected, the dropdown should be disabled. Can someone tell me how i can achieve this?

    Hi ,
    bind ur checkbox and dropdowns enabled properties to context attributes of type WDY_BOOLEAN
    suppose ur checkbox is bound to ca_check attribute under node cn_check
    and ur drop down is bind to ca_drop attribute under node cn_drop
    for the OnToggle Event of CheckBox , assign an action say act
    and in Onactionact method , write the following piece of code :
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check LIKE ls_cn_check-ca_check.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check ).
    IF lv_ca_check = 'X'
    DATA lo_nd_cn_drop TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_drop  TYPE REF TO if_wd_context_element.
        DATA ls_cn_drop TYPE wd_this->element_cn_drop.
        DATA lv_ca_drop  LIKE ls_cn_drop-ca_drop.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_drop = wd_context->get_child_node( name = wd_this->wdctx_cn_drop ).
    *   get element via lead selection
        lo_el_cn_drop = lo_nd_cn_drop->get_element(  ).
    *   set single attribute
        lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = 'X' ).
    ELSE.
    lo_el_cn_drop->set_attribute(
          EXPORTING
            name =  `CA_DROP`
            value = ' ').
    here ur drop down is bind to ca_drop attribute under node cn_drop.
    rgds,
    amit
    Edited by: amit saini on Sep 24, 2009 1:42 PM

  • Display multiple records based on checkbox selection

    Hi - I have a cfm page that displays all the employees in the
    company (select * from employee). I have a checkbox next to each
    one of the employee name. I want the users to be able to select the
    checkbox and view phone number of selected employees (select
    phone_number from employee where emp_id = 12, 15, 18, 20, 31) I
    know I'll have to use some kind of loop to pick these employees and
    display ... but I don't know how to write that loop ... can
    somebody please help!
    - Amber

    The code below should help you out.

  • Enable/Disable item Based Value from Select in Tabular Form

    Hi Guys
    I want to Disable text field in Tabular form, Based on the Select List Item Value.
    Let's Say
    I'm having one select lista and text box in each record in tabular form.
    Select List having 2 items ... Add Text(return value 1) and No Text(return value 2)
    if value =1 then i want to enable text box , so user can enter value.
    if value=2 then text box won't allow to add text or will become disalbe.
    Please Help
    Thanks

    Hi,
    You can do this by using a small java script
    <script language="JavaScript" type="text/javascript">
    <!--
    function FldEnableDisable(pThis)
    if (pThis == 50)
      $x('P2_TEXT').disabled=true;}
    else
    { $x('P2_TEXT').disabled=false; }
    //-->
    </script>Here P2_Text is the text box whose value I am enabling or disabling based on the selected value from a List box. On The list box I have onChange="javascript:FldEnableDisable(this.value)" ( You can specify this under HTML Form Element Attributes)
    Thanks,
    Manish Jha

  • Generate Comp based on dropdown list and checkbox selection?

    I currently have a dropdown list with three sizing options in it. Then I have two check mark boxes, one if checked ideally would create the template at its normal composition size and if the other checkbox is checked it would inverse the widthxheight of the composition size. Then below that I have a "generate" button that I want to be able to click and depending on my selections it creates the comp.
    It sounds like I need some sort of if then statement but I'm having a hard time putting the two together. See below what I have so far.
    There may be parts missing but I have it all working in a decibel pallate currently. I just don't have the functionality tied to a button yet.
    Any help would be much appreciated!!!
    (also I don't know how to format the extend script on here so apologies for that)
    // palette controls
    templateGen.VerticalCheckbox     = new Object();
    templateGen.HorizontalCheckbox    = new Object();
    // define values for the controls
    templateGen.comLookup            = new Object();
    templateGen.compLookup          = 'Template1';
    templateGen.compLookup          = 'Template2';
    templateGen.compLookup          = 'Template3';
    function templateGen_getHashValues(hash)
      var ary = new Array();
      for (k in hash) {
      ary.push(hash[k]);
      return ary;
    // "composition" menu
       var panelGrp1 = templateGen.palette.add('Panel', undefined, 'Comp Templates');
      compGrp1 = panelGrp1.add('group', undefined, 'Templates List');
      compGrp2 = panelGrp1.add('group', undefined, 'Orientation');
      compGrp3 = panelGrp1.add('group', undefined, 'Generate');
      templateGen.compList                                             = compGrp1.add('dropdownlist', LIST_DIMENSIONS, templateGen_getHashValues(bapple.compLookup));
      templateGen.compList.helpTip                                = "Choose the type device template you want here. All comps are 60fps.";
      templateGen.compList.selection                             = 'Template1';
      templateGen.compList.graphics.foregroundColor  = darkColorBrush;
      templateGen.VerticalCheckbox                           = compGrp2.add('checkbox', undefined, 'Vertical');
    templateGen.VerticalCheckbox .value = true;
      templateGen.HorizontalCheckbox                          = compGrp2.add('checkbox', undefined, 'Horizontal');
      templateGen.HorizontalCheckbox .value = false;
    templateGen.generateBtn1      = compGrp3.add('button', undefined, 'Generate');
      //applyBtn.onClick =????;

    When I work with dropdowns I always like to attach the data they represent (like width and height of the comp in this case) directly to the items.
    I didn't execute the code to really check it, but it should work like this:
    // add templates to your dropdown and store the items in an array
    var templates = [];
    templates[0] = templateGen.compList.add('item','template1');
    templates[1] = templateGen.compList.add('item','template2');
    templates[2] = templateGen.compList.add('item','template3');
    // attach a width and height to each item
    templates[0].width= 1280;
    templates[0].height= 720;
    templates[1].width= 1024;
    templates[1].height= 768;
    templates[2].width= 1920;
    templates[2].height= 1080;
    // choose the item that should be selected by default
    templates[0].selected = true;
    applyBtn.onClick = function(){
            // read the width and height from the selected item
            var width = templateGen.compList.selection.width;
            var height =templateGen.compList.selection.height;
            if(templateGen.VerticalCheckbox.value){
                  // swap width and height
                  var temp = width;
                  width = height;
                  height = temp;
            // now create your comp here with the given width and height

  • What is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.

    Hello Gurus,
    I want to know what is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.
    For example:
    X=EssVCalculate("Sheetname","Calc_Script name",True)
    In the above code instead of the *"Calc_Script name"* I want a script which is called dynamically and the values are calculated accordingly.
    Thanks in advance
    Saurabh

    Hi Todd,
    This is the situation:
    I have a calc script in Essbase which I can call to perform the calculations on the current sheet that is retrieved. I want calculation for the following formulas:
    x = EssVCalculate("Sheet2", "CalcBC", False)
    CalcBC is my calc script which is present in Essbase
    So instead of passing the above script I want to pass the conditions dynamically in the VBA code . I don't want to mention the script name directly in EssVCalculate option
    For example:
    I have three drop down menus from which I would select three different( zero level )members. It would then retrieve the data for that particular values in the excel sheet and now when I click on Calculate button it should calculate the script dynamically.
    I don't know how calc scripts can be executed dynamically in the VBA code itself.
    Thanks in Advance
    Saurabh

  • Want 2 populate value in 2nd list item based on value selected in 1st list?

    Want 2 populate value in 2nd list item based on value selected in 1st list?

    Gaurav -
    The 3rd list will not populate because nothing has been selected yet in list 2. The value in list 2 is null, so the loop to populate list (3) has nothing to load. Try the following below. This should seed your 2nd list so the 3rd list will populate.
    You will have to declare first_record boolean and first_value to match DESCC.
    first_record := true; -- NEW *****
    Clear_List('BLOCK2.ITEM2');
    FOR CurRec IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.IDD = :BLOCK2.ITEM1)
    LOOP
    if first_record = true then -- NEW SECTION *****
    first_value := CurRec.DESCC;
    first_record := false;
    end if;
    Add_List_Element('BLOCK2.ITEM2',1,CurRec.DESCC,CurRec.DESCC);
    END LOOP;
    :block2.item2 := first_value; -- NEW *****
    Clear_List('BLOCK2.ITEM3');
    FOR CurRec2 IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.DESCC = :BLOCK2.ITEM2)
    LOOP
    Add_List_Element('BLOCK2.ITEM3',2,CurRec2.DESCC,CurRec2.DESCC);
    END LOOP;
    My name is Ken, 1990 is when I started using Oracle Forms 3.0, character based in the Unix environments. And you are very welcome.

  • How to pass a value to a checkbox

    I have a small report with drill down to another one.
    In the first report on page 1, I have a link to the second report on page 2. In order to drill down, I need to pass some values to an element on the page 2 becasue the report on the second page is run based on the valuse comming from the page elements. So far so good. I am using the following link:
    f?p=&APP_ID.:2:&SESSION.::&DEBUG.::P2_STATUS:VALUE
    where VALUE is a string I want to pass to the element on the page 2.
    The problem is, that the element on the page 2 is a checkbox, having a default value like:
    ENTERED:BOOKED
    The value I want to pass is ENTERED:BOOKED:CLOSED and this doesn't work. Probably because of the colon. It passes only the value 'ENTERED' to the chackbox but not the rest of it.
    How do I solve this?
    Thanks in advance,
    Denes Kubicek

    Yes, you cant pass item values containing a ":" using the f?p= syntax.
    But there is a workaround, see
    http://htmldb.oracle.com/pls/otn/f?p=24317:58
    click on the Link and that takes you to another page with the values of the checkbox that you selected checked by default.
    The region query on page 58 is
    select
      null link,
      case
      when mod(rownum,3)=0 then 'ENTERED'
      when mod(rownum,3)=1 then 'ENTERED:BOOKED'
      when mod(rownum,3)=2 then 'ENTERED:BOOKED:CLOSED'
      end text,
      ename,
      job,
      sal,
      comm
      from   empIn the Link attributes for the "link" column, I specified javascript:goto59('#TEXT#') as the URL for the link
    I put the goto59 function in the region header as
    <script type="text/javascript">
    function goto59(l_value) {
    var l_checkbox=l_value.replace(/:/g,';');
    window.location='f?p=&APP_ID.:59:&SESSION.::::P59_CHECKBOX:'+l_checkbox;
    </script>This replaces the : in the item value with semi-colons.
    Then, on Page 59, I have a On Load Before Header computation to convert the semi colons back to a colon using a PL/SQL expression like
    replace(:P59_CHECKBOX,';',':')
    Now you can use the P59_CHECKBOX item as you want in your report on Page 59
    Hope this helps

  • Create a condition based on a select

    Hi, I have the necessity to create a condition, inside a report, based on a select, for example (when I build a condition):
    Item: "Item (RUO)".Description
    Condition: IN
    Values: select item_description from ISUPP_LOV_RUO_SLA_PRODUCTS_V -> 3 values
    How can I dynamically pass these 3 values to the condition, without using hard coded strings as 'A','B','C' ??
    Thanks
    Alessandro

    Hi,
    If you are using Discoverer Desktop then you can create a condition based on a subquery. You create worksheet that returns those 3 rows then create the condition where then item is in the first worksheet.
    If you are Discoverer Plus then you will have to join the folders in the EUL. So you create a folder for ISUPP_LOV_RUO_SLA_PRODUCTS_V and join it to the report folder using "Item (RUO)".Description = ISUPP_LOV_RUO_SLA_PRODUCTS_V.item_description .
    Rod West

  • Get Approval Group by pass item or its category

    We make Approval Group based on item category for PR or PO approval. The question is , i want to get approval group based on item or its category. Just pass item id and get which approval group is going to approval this item.
    i got po_control_rules table it just contains categories range in description form, but didn't get any proper help.
    Pl suggest solution
    Regards,
    Edited by: user9092987 on Apr 14, 2011 6:35 AM

    Shaukat,
    First do select category_id from mtl_item_categories using inventory_item_id.
    You may get multiple records back. In that case, use the category_set_id to narrow down to the record that is applicable.
    Then select the category segments from mtl_categories using the category_id.
    Then compare the segments with the segment fields in po_control_rules to identify the correct approval group.
    Hope this answers your question,
    Sandeep Gandhi

  • Webtemplates - Disply Group Of Key Figures based on the selection criteria

    Hello,
    I have a requirement of displaying Kefigures based on the selection criteria in the browser.
    Assume that I have Query with the following set of key figures.
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    Plan_KF in units T3
    Actual_KF in units T3
    Difference in units T3
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    1) I should have drop down box with values
    CSE
    T3
    PAK
    2) If user selects PAK then query should display only the key figures with units in PAK
    i.e.
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    If user selects CSE the query should display only key figures
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    I tried using the DropDown Box - (not much usefull to select more than one Key Figure)
    and CheckBox web items - I have to do multiple selections (Not very much suitable if the Key figures are too many).
    I appreciate your timely help.
    system specifications:
    SAP_BW - 310
    Front-End - 6.20
    Advanced Thanks,
    Ramana

    Hi,
    One alternative would be to save two additional copies of the query (each with different units) and code your dropdown box with the RESET_DATA_PROVIDER command.
    So if your queries were:
    Z_QUERY_CSE
    Z_QUERY_T3
    Z_QUERY_PAK
    You would define the default unit (I'll assume CSE) in yoru web template, and code your dropdown box entries to switch the Data Provider (I'll asume DP1) to the appropriate query.
    The code behind "T3" in your dropdown box would be:
    <SAP_BW_URL DATA_PROVIDER='DP1' CMD='RESET_DATA_PROVIDER' INFOCUBE='Z_CUBE1' QUERY='Z_QUERY_T3'>
    http://help.sap.com/saphelp_nw04/helpdata/en/bd/43143c1ab8ff1ae10000000a11405a/frameset.htm
    Two things to look out for in this work-around:
    1) Number of queries increases by a factor of 3
    2) Performance implication in replacing the data provider with a new query.

  • How to create a condition based on a select that retrieve dynamically a LOV

    Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
    So, the condition have to be:
    inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
    I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
    and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
    and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
    These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
    I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
    Anybody has inplemented something similar ??
    Thanks in advance
    Alex

    Hi alex,
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
    But again your trying to select in the second query where you want "General_faults_iptv"
    SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
    I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    Regards,
    Kranthi.

Maybe you are looking for

  • Acs 5.3 - wireless conversion from 4.0

    Hi All As previous posters may have noticed i have been given the task of moving the ACS from 4.0 to 5.3 which turns out to be considerably different. Sadly i have nothing to test with at the moment so am trying to work it out as best i can before th

  • PSU for a 100th time

    Ok... well this question has been asked too much times but... I want to change my PSU... ever since i got  Platinum board I am not satisfied... first of all I want to tell everyone who is using realtrek onboard audio...Change IT A.S.A.P. it sucks!!!

  • FCP IMX codec for windows

    Hi guys, is there any IMX codec for windows so i can easly export my grahics from my PC to FCP without rendering? CMIIW Many Thanks, Bayu

  • Errors with configuration files when using Oracle BI Beans 10.1.2

    java.lang.NullPointerException      at oracle.dss.persistence.persistencemanager.server.PersistenceManagerSupport.loadFactoryFromXML(PersistenceManagerSupport.java:359)      at oracle.dss.persistence.persistencemanager.server.PersistenceManagerSuppor

  • Error during submit - Newbie

    Hi, I am new to Infopath. I am just trying to create a simple Infopath form to submit data to a simple SQL table. I created the Infopath form, but when I hit submit I get this error - which isn't very descriptive. I fixed allot of to other errors to