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

Similar Messages

  • 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.

  • How to create a report based on the selection of a node of a tree

    Hello,
    I am new to Oracle Apex and I was trying to build a tree and also an interactive report based on the empno column of the emp table.
    I have created a tree based on emp table. Now I want to display records of the employee selected in the tree.
    Here is the tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "ENAME" as title,
    null as icon,
    "EMPNO" as value,
    null as tooltip,
    null as link
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"
    Can anyone tell me step by step how to go from here?
    I tried to follow the thread Re: tree question but could not understand much from it.

    The approach for reloading the page and displaying the report is quite simple.
    <li>You start by creating a new page item which would be used to store the selected node ID , eg. P100_SELECTED_NODE (you can make it atext item and change it hidden once everything works as expected)
    <li>Modify the tree query and change the link column in the tree definition SQL query to a link to the same
    for example if your page is 100 , you would make the tree node link to the same page but set the P100SELECTED_NODE with selected node's id_
    This done here
    {message:id=4410987}
    In this case it would be
    'f?p=&APP_ID.:100:'||:APP_SESSION||'::::P100_SELECTED_NODE:'||EMPNO as link Now when you click on a tree node link , it would come back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.
    <li> All that is left to do, is changing your Report so that it refers to the new item inorder to filter the records for this employee i.e empno
    SELECT ...
    WHERE empno= :P100_SELECTED_NODE

  • How to create report condition based on "total"

    Hello,
    I have a Discoverer report that shows revenue by city and sub-totals revenue by state.
    I need to modify this report so that only cities in states with revenue (sub-total) more than one million are pulled.
    Example:
    Pittsburgh - 100,000
    Harrisburg - 200,000
    Erie - 300,000
    ------State:PA 600,000
    Los Angeles 500,000
    San Fransisco 600,000
    Oakland 200,000
    -----State:CA 1,300,000
    In this example, the report should show only the cities in California, as the revenue sum is over 1 million:
    Los Angeles 500,000
    San Fransisco 600,000
    Oakland 200,000
    ---State:CA 1,300,000
    Is this possible?
    I'm using Discoverer version 10.1.2.2.
    Thank you.
    Edited by: [email protected] on Dec 11, 2009 3:03 PM

    Hello
    You need to do two things to solve this problem.
    1. You need to create an analytic calculation that returns 1 when the sum of the revenue in all of the cities in a state is one million or more
    2. You need to create a condition such that you only include states when the above is 1
    Let's call the calculation, OneMillionStates and I will assume your fields are called State, City and Revenue
    Here's the formula:
    CASE WHEN SUM(REVENUE) OVER(PARTITION BY STATE) > 1000000 THEN 1 ELSE 0 END
    Now your condition shoudl be: ONEMILLIONSTATE = 1
    You don't even need to display the calculation on screen and notice how the city does not even come into the calculation.
    Best wishes
    Michael
    URL: http://ascbi.com
    Blog: http://learndiscoverer.blogspot.com

  • How to create a report based on radia selection

    Hi,
    I am new bie to Appex, I have a requiment to generate a report based on existing table with the select creditaria. I mean, the select creditaria wil be the radio button, if i click any option the report will change accordingly.
    It is nothing but filter condition but i need to do with the radio button/items. Please give the detail steps
    Thanks in advance.
    Kumar.

    Kumar,
    First you will need to create the radio group on the page with the report and determine the list of values you would like to filter the report on (dynamic or static). ie:
    select CUST_STATE as display_value, CUST_STATE as return_value
      from DEMO_CUSTOMERS
    order by 1Then you will need to update the report's where clause (demo application page 2 example):
    select customer_id, cust_last_name || ', ' || cust_first_name customer_name, CUST_STREET_ADDRESS1 || decode(CUST_STREET_ADDRESS2, null, null, ', ' || CUST_STREET_ADDRESS2) customer_address, cust_city, cust_state, cust_postal_code
    from demo_customers
    where cust_state = :P2_RADIOWith an Interactive Report, make sure you list the radio group item (P2_RADIO) in the "Page Items to Submit" fields in the report region.
    The you can create an on change dynamic action based on the radio group to refresh the Report region. I made a quick example on apex.oracle.com
    http://apex.oracle.com/pls/apex/f?p=34760:2
    Depending on the number of items in the radio group, you may want to think about using a select list also.
    V/R
    Ricker

  • How to create a report  based on selected item from Select list?

    Hi,
    I have created a tables_LOV based on:
    select table_name d, table_name r from user_tab_cols
    where column_name like '%_type%'
    Then I created a page item ListOfTables,  Display as select list and pointing to tables_LOV.
    I run the page, and i can select the table i want from the drop down list.
    How to create a report  based on the selected item? (ex: select * from selected_table)
    many thanks in advance
    Salah

    Hi Salah,
    Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
    I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
    The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
    To recreate my example you should:
    1) create an (interactive) report on your collection
    SELECT *
       FROM APEX_collections
    WHERE collection_name = 'MY_COLLECTION'
    2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
    3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming the following code:
    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
    end;
    Make sure you add your page_item to the "Page Items to Submit" section.
    4) Add an extra true action that does a refresh of the report region.
    Here are two pictures describing the da:
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA1.png
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA2.png
    Good luck and regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • Dynamic bar chart based on LOV selected

    Apex 2.1 with XE : running on windows xp.
    I am trying to create charts based on selected criteria such as level 1, level 2 and level 3. If the user selects level 1 chart is expected to group level 2 and level 3 parameters else if the user selects level 2 criteria on top of level 1 then it should filter to the next category and so on. To make it simple I created three different queries which would generate the required graphs.
    To achieve this I decided to use PL/SQL function that would return three different chart queries based on the LOV selection. Although the function works well for each of the queries they dont work with a if else condition based on LOV selection. So what is the problem with creating such as dynamic query. Can I use the "%" values of LOV in my if else condition if not why ?
    Any alternatives ?

    Well. The queries for the charts run independently well. I guess I might be using the if else condition in an improper fashion.
    If the second LOV filter is not used.. I am matching the :LOV2 value with "%" and execute appropriate chart query based on single selection criteria and for the else case I use the other query and so on.
    I wish to show the code but since I upgraded to 3.0.1 today my application page views don't render properly. The images are missing ..and whole page is missing for editing.

  • Configure Start conditions based on ibase\ and Customer Fields ??

    Dear friends,
    We have enchanced transaction types(document types) using Easy enchancement workbench (EEWB). Therefore we have a new tab(customer screen) in all the transaction types we use !!.
    This tab has customer fields in it...
    Now the requirement we have here is that we have to send Emails based on these customer fields and ibase and component.
    How can i create start conditions based on the customer fields and ibase which are not present in object type BUS2000116(default) which is currently reffered while i create start conditions.
    I know that i can create new object type(using swo1) and let it be have inherited supertype as BUS2000116 and then inside the new object type i can have my attributes( ibase and those customer fields) inside the new created object.
    Is there any way of incalculating the customer fields and ibase \component in BUS2000116 ( by default it does not have these) ???
    Assuming that i created new object type, how do i make use of this type while i am configuring conditions.
    Any help would certainly be rewarded.

    hi again,
    Can anybody take some time out and guide me plz...

  • Create condition based on date and time

    Hi everyone,
    I'm using Discoverer Plus 10g. I want to create a condition in my worksheet using StageTime (consists of date and time) as the parameter, i.e. StageTime > StartTimeParameter and StageTime < EndTimeParameter.
    I am able to create condition based on the date, but unable to create based on the time. I need to limit the data up to the hour, e.g.
    StageTime > 11-NOV-2005 1 AM and StageTime < 11-NOV-2005 3 AM.
    But so far I am unable to create a condition for the hour element.
    I try to use this:
    TO_DATE(TO_CHAR(:Start Date Parameter,'mm-dd-yyyy')||' '||:Start Hour||':00:00','mm-dd-yyyy hh24:mi:ss')
    Start Date Parameter is selected using the date picker in Discoverer Plus
    and the Start Hour is in the format '00' to '23'
    but was prompted with the error: ORA-015858 a non numeric character was found where a numeric was expected.
    Would really appreciate anyone's help on this! :)
    Thanks,
    Angeline :)

    how about, if :Start Date Parameter is of type DATE and :Start Hour is of type varchar2(2) to simply do
    :Start Date Parameter + to_number(:Start Hour)/24
    ?

  • "Filter the LOV based on the selected conditions" RADIO BUTTON doesn' work

    Hi All, I'm trying to create a cascading parameters mechanism, but I found certain difficulties.
    I need to have 2 LOV connect: the master LOV retrieve a list of User's groups, and the detail LOV has to retrieve only the customer's categories that come from the user's groups selected.
    So, in order to retrieve the values I defined on the Administrator:
    1) one custom folder for the master LOV (list of the User's groups) and another custom folder for the details LOV (list of the customer's categories).
    2) The 2 LOV as item classes
    On Discoverer Plus, following the manual ("About filtering lists of parameter values based on selected conditions ("cascading parameters"), I tried to create thw first parameter based on the master LOV, but I DON'T have the radio button "Filter the list of values based on the selected conditions" enabled !!!...I CAN'T USE IT !
    If this radio button is not enabled, I can't link the master parameter with the detail parameter.....
    Anybody can help to discoverer what I missed during the creation of cascading parameters ?
    Thanks in advance for your help
    Alex

    Hi Manav, thanks for your reply !
    I resolved the problem, linked the two custom folders with a join !
    The radio button didn't work just only the parameter where condition has to be deselected and then re-selected !!
    Alex

  • Create a filtered list based on the selection in another field? URGENT HELP NEEDED

    Hi,
    Hoping someone can help me with something I am working on. i am fairly new to creating forms in acrobat (know how to us the full range of very basic features) but I have now found myself needing some help.
    i am producing an order form, and I need to create a filtered dropdown list based on the value selected in another field.
    basically, when a user select the company chooses their Business Name from a dropdown list, I would like their deliver address to self populate. In some cases there may be a few options for the company delivery address so in these cases the second option would be a dropdown list of the options available for that company.
    i have attached a screenshot, it is the Fields "Business Name" and "delivery Address/Delivery Postcode" that i would like to be linked so that the option in Business Name filtered the options in delivery Address
    Hope someone out there has the time to help me with this, i am using Acrobat Pro DC
    many Thanks
    Lee

    This will require a complex, custom-made script. The basic functionality of populating another field based on a selection in a drop-down is not that complicated, but if you want it to also populate other drop-downs (and then presumably use them to populate other fields), it will require a more complex solutions.
    This tutorial is relevant for your question: https://acrobatusers.com/tutorials/change_another_field

  • How to create dynamic ed flash charts based on user selected fields in Orac

    Hi all,
    Can any of the experts please tellme "how to create dynamic ed flash charts based on user selected fields in Oracle apex".
    Thanks
    Manish

    Hello,
    Lots of different ways to do this, I blogged about one way (using a Pipelined function) here -
    http://jes.blogs.shellprompt.net/2006/05/25/generic-charting-in-application-express/
    Other options include using a PL/SQL function returning the string to use as the dynamic query etc.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Create paragraph style based on selection

    Is there a way to create a paragraph style based on the selection in the same way the "New Paragraph Style" dialog box does without having to go through ALL of the elements of the style individually?
    Thanks

    I was hoping (even expecting) that this would work:
    if (app.documents.length > 0 &&
        app.selection.length === 1 &&
            app.selection[0].hasOwnProperty("baseline")) {
        var myDoc = app.documents[0];   
        var myPstyle = myDoc.paragraphStyles.add({
            properties : app.selection[0].properties,
            name : "myNewStyle"});
    but the result is very disappointing, particularly with respect to the font details. Maybe you just can't use the properties property as part of an add() method call, because this works pretty well:
    if (app.documents.length > 0 &&
        app.selection.length === 1 &&
            app.selection[0].hasOwnProperty("baseline")) {
        var myDoc = app.documents[0];   
        var myPstyle = myDoc.paragraphStyles.add({name : "myNewStyle"});
        myPstyle.properties = app.selection[0].properties;
    Dave

  • Conditional branch based on attribute selection ? bug?

    I am trying to base a conditional branch on attribute selection and it results in an error which i can't understand. So i am wondering now whether i am doing something wrong or whether this is a bug in ALSB.
    Does anyone have a clue whether i am doign something wrong or agree that it might be a bug?
    I have the following configuration:
    Selected path: ./elementX/@attributeY
    in variable: body
    Branch1: operator : =
    Value : "Brochure"
    Label : "TestLabel"
    and this leads to the following vague error:
    <con:fault  xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382000</con:errorCode>
    <con:reason>com.bea.wli.sb.stages.StageException</con:reason>
    <con:location>
    <con:node>BranchNode1</con:node>
    </con:location>
    </con:fault> and the following stacktrace in the logfile:
    ####<22-mrt-2007 8:14:32 uur CET> <Error> <ALSB Kernel> <NUW04896> <xbusServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-00457F11B55FD06D1480> <> <1174547672363> <BEA-382016> <Failed to instantiate router for service ProxyService Selectief_Bijsluiten/proxyservices/Siebel_Brieven_Conditional_Variant: com.bea.wli.sb.pipeline.PipelineException: com.bea.wli.sb.stages.StageException
    com.bea.wli.sb.pipeline.PipelineException: com.bea.wli.sb.stages.StageException
         at com.bea.wli.sb.pipeline.BranchNode.doRequest(BranchNode.java:142)
         at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:57)
         at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:771)
         at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:141)
         at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:75)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:646)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:645)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:643)
         at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:264)
         at com.bea.wli.sb.transports.file.FileTask.process(FileTask.java:103)
         at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB.onMessage(PolledMessageListenerMDB.java:42)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3953)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    com.bea.wli.sb.stages.StageException
         at com.bea.wli.sb.stages.expressions.xquery.XQueryExprExecutor.executeJavaObject(XQueryExprExecutor.java:102)
         at com.bea.wli.sb.pipeline.BranchNode.computeBranchName(BranchNode.java:174)
         at com.bea.wli.sb.pipeline.BranchNode.doRequest(BranchNode.java:130)
         at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:57)
         at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:771)
         at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:141)
         at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:75)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:646)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:645)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:643)
         at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:264)
         at com.bea.wli.sb.transports.file.FileTask.process(FileTask.java:103)
         at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB.onMessage(PolledMessageListenerMDB.java:42)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3953)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    java.lang.NullPointerException
         at weblogic.xml.query.tokens.Token$Kind.isNested(Token.java:143)
         at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:89)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.typing.SeqTypeMatching.fetchNext(SeqTypeMatching.java:133)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.RTVariable.fetchNext(RTVariable.java:49)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.node.Data$Attribute.fetchNext(Data.java:224)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.node.Data.fetchNext(Data.java:174)
         at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)
         at weblogic.xml.query.runtime.typing.SeqTypeMatching.fetchNext(SeqTypeMatching.java:195)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.typing.GenericCast.cast(GenericCast.java:198)
         at weblogic.xml.query.runtime.typing.GenericCast.fetchNext(GenericCast.java:183)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.RTVariable.fetchNext(RTVariable.java:49)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.compare.ComparisonIterator.fetchNext(ComparisonIterator.java:40)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.logic.BoolEffValue.exec(BoolEffValue.java:51)
         at weblogic.xml.query.runtime.logic.BoolEffValue.fetchNext(BoolEffValue.java:47)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.IfThenElse.fetchNext(IfThenElse.java:79)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.LetIterator.fetchNext(LetIterator.java:133)
         at weblogic.xml.query.iterators.GenericIterator.peekNext(GenericIterator.java:151)
         at weblogic.xml.query.runtime.qname.InsertNamespaces.fetchNext(InsertNamespaces.java:156)
         at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)
         at weblogic.xml.query.runtime.core.QueryIterator.fetchNext(QueryIterator.java:125)

    Hi,
    I am working in ALSB 2.6. I am facing this problem but little different way. The attribute selection is working fine only if that conditional attribute is the last attribute in the element. Otherwise it is giving the following message
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>
    BEA-382000: com.bea.wli.sb.stages.StageException: line 1, column 5: {err}FORG0003: expected zero or one item, got two or more items
    </faultstring>
    <detail>
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382000</con:errorCode>
    <con:reason>
    com.bea.wli.sb.stages.StageException: line 1, column 5: {err}FORG0003: expected zero or one item, got two or more items
    </con:reason>
    <con:location>
    <con:node>VerifyPaymentCard_Branch</con:node>
    <con:path>request-pipeline</con:path>
    </con:location>
    </con:fault>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    Is the order of the attribute important? or am I missing something?

  • How to create dynamic context based on a structure defined in the program?

    Hi Experts,
             I need to create a dynamic context based on a structure wa_struc which i have define programatically.
    When I pass wa_struc to structure_name parameter of create_nodeinfo_from_struc, i get a runtime error:
    "Parameter STRUCTURE_NAME contains an invalid value wa_struc."
    How to create dynamic context based on a structure defined in the program?
    I have written the code like this:
    TYPES: BEGIN OF t_type,
                v_carrid TYPE sflight-carrid,
                v_connid TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
             wa_struc type t_type.
      data: dyn_node   type ref to if_wd_context_node.
      data: rootnode_info   type ref to if_wd_context_node_info.
      rootnode_info = wd_context->get_node_info( ).
      clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
      parent_info = rootnode_info
      node_name = 'dynflight'
      structure_name = 'wa_struc'
      is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( name = 'dynflight' ).
    dyn_node->bind_table( i_struc ).
    Thanks
    Gopal
    Message was edited by: gopalkrishna baliga

    Hi Michelle,
              First of all Special thanks for your informative answers to my other forum questions. I really appreciate your help.
    Coming back to this question I am still waiting for an answer. Please help. Note that my structure is not in a dictionary.
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    I have updated my code like the following and I am getting error:
    TYPES: BEGIN OF t_type,
    CARRID TYPE sflight-carrid,
    CONNID TYPE sflight-connid,
    END OF t_type.
    Data: i_struc type table of t_type,
    dyn_node type ref to if_wd_context_node,
    rootnode_info type ref to if_wd_context_node_info,
    i_node_att type wdr_context_attr_info_map,
    wa_node_att type line of wdr_context_attr_info_map.
    wa_node_att-name = 'CARRID'.
    wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
    insert wa_node_att into table i_node_att.
    wa_node_att-name = 'CONNID'.
    wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
    insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
    select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
    attributes = i_node_att
    is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    But now I am getting the following error :
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    -Gopal
    Message was edited by: gopalkrishna baliga

Maybe you are looking for

  • 6330 K7T Turbo Limited Ed. Problem

    I bought a brand new 6330 K7T Turbo Limited Edition. It shuts down by itself within 10 minutes (sometimes even within 5 sec.). The temperature protection in the BIOS has been turned off and I've upgrade to the latest BIOS (V3.5).  I tried unplugging

  • Selecting Multiple Images Quickly

    Hi To free up some iPhone memory, I want to delete a good 500 images off my iPhone Camera Roll. I sorted out the photostream on the iMac but cant do the smae with the camera roll. Anyone know how to do this without having to tap the screen 500 times?

  • Unable to set the image size interms of percentage

    Hi Friends,            In my webdynpro application I am using IWDImage, I need to set the height and width of that image interms of percentage ratherthan pixels. I gave 50% for both height and width but I was not unable to get the image. While settin

  • Apply Model from ESS Repository

    Hi Sapall. as iam new to SAP-PI7.1.1,i just want to know on how i can do the Apply Model From ESS Repository. i have created the Process Integration Scenario in ESR with the all the data type,message type,message mapping,operation mapping but all i w

  • PGP and SOA suite

    I am installing PGP for encryption of files for B2B my question does or can SOA manage the user, key ring and Keys or do I have to do it at the OS level? IF at the OS level then the developers will have to code a Java API to use PGP command line and