Dynamically assigning variables based on condition in pl/sql

I have a script which takes 6 input parameters but based on input 1 parameters 2 to 6 will be assigned to different variables. but the condition is not being checked during variable assignment phase. even if table_update is 'P' para,mater 2 is getting assigned to tariff_group instead of offer_id. Is there any way to solve this problem so that variables get assigned based on condition.
table_update := '&1';
if(table_update = 'T')
THEN
     tariff_group := '&2';
     gf_version := &3;
     tariff_table_name := '&4';
     flag := '&5';
     if(no_rows_tariff(tariff_table_name, gf_version, tariff_group))
     THEN
          if(flag = 'I')
          THEN
               tariff_column_name := column_tariff(tariff_table_name);
          ELSIF(flag = 'R')
          THEN
               max_gf_tariff(tariff_table_name, gf_version, tariff_group);
          ELSE
               DBMS_OUTPUT.PUT_LINE('Please enter correct option for update I- Insert R-Rollback');
          END IF;
     END IF;
ELSIF(table_update = 'P')
THEN
     offer_id := &2;
     gf_version := &3;
     promotion_table_name := '&4';
     flag := '&5';

Although you do not say what your problem is, I suspect that it si something like this:
SQL> !cat t.sql
DECLARE
   table_update         VARCHAR2(1);
   tariff_group         VARCHAR2(3);
   gf_version           NUMBER;
   tariff_table_name    VARCHAR2(5);
   offer_id             NUMBER;
   promotion_table_name VARCHAR2(5);
   flag                 VARCHAR2(1);
BEGIN
   table_update := '&1';
   IF table_update = 'T' THEN
      tariff_group := '&2';
      gf_version := &3;
      tariff_table_name := '&4';
      flag := '&5';
   ELSIF table_update = 'P' THEN
      offer_id := &2;
      gf_version := &3;
      promotion_table_name := '&4';
      flag := '&5';
   END IF;
   DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
   DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
   DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
   DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
   DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
   DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
END;
SQL> @t T TG1 1 TTN1 F
old  10:    table_update := '&1';
new  10:    table_update := 'T';
old  12:       tariff_group := '&2';
new  12:       tariff_group := 'TG1';
old  13:       gf_version := &3;
new  13:       gf_version := 1;
old  14:       tariff_table_name := '&4';
new  14:       tariff_table_name := 'TTN1';
old  15:       flag := '&5';
new  15:       flag := 'F';
old  17:       offer_id := &2;
new  17:       offer_id := TG1;
old  18:       gf_version := &3;
new  18:       gf_version := 1;
old  19:       promotion_table_name := '&4';
new  19:       promotion_table_name := 'TTN1';
old  20:       flag := '&5';
new  20:       flag := 'F';
      offer_id := TG1;
ERROR at line 17:
ORA-06550: line 17, column 19:
PLS-00201: identifier 'TG1' must be declared
ORA-06550: line 17, column 7:
PL/SQL: Statement ignoredAs you can see, the initial assignments for compilation purposes are done prior to actually running the code, and the assignment to offer_id is failing.
If I change offer_id to a varchar and quote the &2, then the compilation assignemnt works, and the actual logic of the script works:
SQL> !cat t.sql
DECLARE
   table_update         VARCHAR2(1);
   tariff_group         VARCHAR2(3);
   gf_version           NUMBER;
   tariff_table_name    VARCHAR2(5);
offer_id VARCHAR2(3);
   promotion_table_name VARCHAR2(5);
   flag                 VARCHAR2(1);
BEGIN
   table_update := '&1';
   IF table_update = 'T' THEN
      tariff_group := '&2';
      gf_version := &3;
      tariff_table_name := '&4';
      flag := '&5';
   ELSIF table_update = 'P' THEN
offer_id := '&2';
      gf_version := &3;
      promotion_table_name := '&4';
      flag := '&5';
   END IF;
   DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
   DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
   DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
   DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
   DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
   DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
END;
SQL> @t T TG1 1 TTN1 F
30  /
old  10:    table_update := '&1';
new  10:    table_update := 'T';
old  12:       tariff_group := '&2';
new  12:       tariff_group := 'TG1';
old  13:       gf_version := &3;
new  13:       gf_version := 1;
old  14:       tariff_table_name := '&4';
new  14:       tariff_table_name := 'TTN1';
old  15:       flag := '&5';
new  15:       flag := 'F';
old  17:       offer_id := '&2';
new  17:       offer_id := 'TG1';
old  18:       gf_version := &3;
new  18:       gf_version := 1;
old  19:       promotion_table_name := '&4';
new  19:       promotion_table_name := 'TTN1';
old  20:       flag := '&5';
new  20:       flag := 'F';
TableUpdate: T
TariffGroup: TG1
GfVersion: 1
Tarifftable: TTN1
OfferID:
PromoTable:John

Similar Messages

  • Dynamically assigning variable in xml loop

    I am trying to dynamically assign a variable name so I can
    build an accordian nav from and XML doc. the code looks like this:
    ACnav['depthChild0']._alpha = 0;
    ACnav.setStyle("color", 0x0ffffff);
    ACnav.setStyle ("openEasing",
    mx.transitions.easing.strong.easeout);
    ACnav.setStyle ("selectionDuration",
    mx.transitions.duration.slow);
    navXML = new XML();
    navXML.ignoreWhite = true;
    navXML.load("menu1.xml");
    oY=5;
    var currentSection = 0;
    function buildNav () {
    DisposableXML = new XML();
    TempXML = new XML();
    button = new Array();
    //buttonNum = new Array();
    subitem = new Array();
    menuItem = new Array();
    o = new Array ();
    subitemlocation = new Array();
    DisposableList = new Array();
    buttonList = navXML.firstChild.childNodes;
    i = 0;
    sectionLength = buttonList.length;
    while (i<=buttonList.length) {
    if (buttonList
    .nodeName.toLowerCase() == "button") {
    DisposableXML = buttonList;
    DisposableList = DisposableXML.childNodes;
    buttonName = buttonList
    .attributes.name;
    set ("buttonNum", "buttonNumber"+i);
    trace(buttonNum);
    ii = 0;
    //trace(buttonName+"-"+buttonNum);
    //ACnav.createChild("View", buttonNum, {label: buttonName,
    icon: "mainNav"});
    button = ACnav.createChild("View", buttonNum, {label:
    buttonName, icon: "mainNav"});
    oY=5
    while (ii<=DisposableList.length) {
    TempXML = DisposableList[ii];
    if (DisposableList[ii].nodeName.toLowerCase() == "subitem")
    subitem = TempXML.attributes.name;
    //subitemlocation = TempXML.attributes.location;
    subitemNum="subitemNum"+[ii]+
    //trace(buttonNum+"-"+subitemNum+"-"+subitem);
    menuItem = ACnav.buttonNum.createChild("subNav",
    subitemNum, {childText: subitem});
    menuItem
    .move(0, oY);
    oY=(oY+25);
    //trace(buttonNum);
    ii = Number(ii)+1;
    i = Number(i)+1;
    //trace(button);
    trace(menuItem);
    redraw();
    //gotoAndPlay('reload');
    The problem lies with this line: button =
    ACnav.createChild("View", buttonNum, {label: buttonName, icon:
    "mainNav"});
    If I quote the "buttonNum", it works, but jumbles the subnav
    items together vs in the proper node. I need to have that declared
    dynamically so that each parent node has a differentID and then
    createchild goes under that. Anyway, I've tried alot of stuff over
    the last few days and its getting frustrating.
    Thanks for the help if anyone contributes!

    You shouldn't need to do a concat within the XQuery path parameter. Try the following:
    bpws:getVariableData('inputVariable','payload','/ns1:Request/ns1:instance[bpws:getVariableData(&quot;j&quot;)]')

  • Formula variables based on conditions

    Hi,
    I am facing following problem with formula variables.I am explaining the result which I am trying to achieve in BEx Query Designer.
    For Example:
    I am having a result output with following columns
    Country          Customer      KeyFigure(Revenue)
    IND            A                1000
                  B                2000
                  C     
                  D                3000
                  E                4000
                  F     
    For C and F Cusotmer there are no Revenues available in BI system.So they are blank in the report.
    My 1st requirement here is to write a formula variable which will display below result in 'Formula Col1' for which I have used COUNT function in formula to achieve this.
    Country     Customer     KeyFigure(Revenue)     Formula Col1
    IND     A                1000                     0
         B                2000                     0
         C                                  2
         D                3000                     0
         E                4000                     0
         F                                  2
    So when data is available for a Customer in above table,  'Formula Col1' should display value 0 and when there is no data for a particular Customer, 'Formula Col1' should display value 2.
    My exact requirement here is to display a final report output as below, based on the above calculations of 'Formula Col1'
    Country     FormulaCol2
    IND            1
    If Formula Col1 consists of all 0's then FormulaCol2 should display value 0,
    If Formula Col1 consists of all 2's then FormulaCol2 should display value 2,
    If Formula Col1 consists of all 0's and 2's then FormulaCol2 should display value 1.
    I tried applying Exception Aggregation = Average, Red Char=Customer on Formula Col1but still could not achieve the required result in FormulaCol2.

    Create a Calculated Key Figure using Boolean Operators which will be your Formula Col1
    CKF1 = (Revenue <= 0 ) * 0 + (Revenue > 0 ) * 2
    Goto the properties of the CKF1 and set the exception aggregation as Average and refernce to the characteristic Country.
    Now create another Calculated Key Figure using Boolean Operators which will be your Formula Col 2.
    CKF2 = (CKF1 == 0) * 0 + (CKF1 == 2)*2 + (CKF1 > 0 AND CKF1 < 2) * 1

  • Using a dynamically assigned variable in a procedure ?

    Hello every one ..
    I had a small problem in writing a query..
    Actually i had requirement of creating a tablespace  using a procedure
    My procedure is :
    create or replace procedure datafile_test as
    df_location varchar2(600);
    begin
    select distinct substr(file_name,1,instr(file_name,'/',-1)) into df_location from dba_data_files;
    dbms_output.put_line(' Created data file location is' ||df_location);
    end;
    This procedure is working alright but now my requirement is to use that value stored in df_location variable in
    create tablespace my_tbs <df_location>/tbs.dbf size 20m;  // i need to write this statement in my procedure .. how can i bring df_location value in my query
    is it possible to do it ?
    thanks in advance..

    Hello vinay raj
    Ok, your original statement was not right and I have not checked it
    Try this one, it should work:
    create or replace procedure datafile_test
    as
       df_location    varchar2(600);
        v_statement    VARCHAR2(4000);
    begin
        select distinct substr(file_name,1,instr(file_name,'/',-1)) into df_location from dba_data_files;
        v_statement := 'CREATE TABLESPACE MY_TBS DATAFILE ' || CHR(39) || df_location || '/tbs.dbf' || CHR(39) || ' SIZE 20M '
           --- This is optional, but I use this:  
                    || 'AUTOEXTEND OFF LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE BLOCKSIZE 8K SEGMENT SPACE MANAGEMENT AUTO FLASHBACK ON'
        EXECUTE IMMEDIATE v_statement;
        dbms_output.put_line('Tablespace is created: "' || v_statement || '"'));
    end;
    I hope it helps you!

  • Dynamic Variable based on Hierarchy causes additional prompts

    Hi all,
    I am getting some additional prompts in Crystal Report in following scenario and need some help to avoid them
    The query in BI has active cost center hierarchy and cost element hierarchy. It has two variables, Fiscal Year/period (X) and Budget Version (Y).
    In the report I have created a Dynamic parameter (Z) based on Cost Center Hierarchy. So when previewing the report, in designer as well in Info View, I get prompted for three variables (X, Y & Z).
    The issue is, before list of values are presented for selection for variable Z, it prompts me again for variables X and Y. Also, at this time around, prompts for variables X & Y does not show their list of values.
    The report has been created with SAP MDX driver, has been published to Business Objects Enterprise via saving report to SAP BW. SAP authentication is used to preivew/view the report from CR designer as well as in BOE.
    Can some please point out what I am missing and help me to get rid of prompts for variables X & Y second time.
    Thank you,
    IMS

    Hi Ingo,
    After much testing and looking into trace etc. we have got this thing to behave as desired. Basically, following two things,
    - no reference to CR Dynamic Hierarchy variable on report. There were places where this parameter was being refered and causing grief. We tested with brand new report.
    - making sure that on query Cost center restriction is placed in Characteristic Restriction area of Filter tab of query, as oppose to default value area filter tab.
    With above in place, the published report in infoview behave as desired, i.e. proper hierarchy structure in cost center prompt and group tree and only desired nodes showing on report.
    Thank you for all you pointers
    Regards
    IMS

  • Assign roles to task based on condition

    Hi,
    How to assign portal role to task based on condition. If city = abc assign roleA, or else city = zyx assing roleB ie..
    Appreciate your valuable suggestions.
    cheers
    -Ian

    Hi Abhilash & John,
    I have created context attributes 'City' & 'Role'  in WD, hence in BPM, ruleset was created with Context -'http://sap.com/wd_dc/RoleChekComponent' as Return Type & Parameters. While creating decission table, "City" as condition, and "Role" as action selected.
    In decission table, feed the values like for city to role like  "NewYork", "role1" ; "Chicago", "role2" and so on. Hence Rule was created. while I am trying to pass City name to Ruleset function in Task level to fetch corresponding Role name, getting below error. This is because of I have seleted context as Return Type & Parametes while creating Rule.
    Function 'roleChecking' has incompatible parameter #1. Expected 'Context', but found 'xsd:string'
    If I pass context to function getting below error -
    Function 'CheckRole_Ruleset' has incompatible parameter #1. Expected 'Context', but found 'Context'
    How to fix the problem.. Highly appreciated your suggestions and inputs..
    regares,
    -Ian

  • Dynamic approval workflow based on checkboxes

    I have a sharepoint 2010 approval workflow based on an info path form list
    The form has about 20 checkboxes for different areas of for which a supervisor could request access for. A supervisor could check 1 checkbox, or all 20.
    The checkbox on the actual form being filled out will have the title of access being requested such as but not the name of the approver. we dont want to show that on the form as to who the approver is.
    Each checkbox corresponds to a different person, so if 5 checkboxes are selected, I need the workflow to automatically assign the tasks to 5 specific people based upon which checkbox is marked. So if check box A, B, F, G, Q are all checked it should send
    an email to the people that are associated with those checkboxes only.
    How can I dynamically assign the tasks to people based on which checkbox is selected?
    I am using sharepoint 2013 but 2010 workflow in designer
    Thanks

    Hi,
    You will promote those checkboxes so you can access from workflow.
    in the workflow you will create logic of conditions
    for example
    if checbox a selected then assign variable checkbox1=true and so on for each checkbox a corresponding variable and other 5 variables carrying the approvers names
    then based if those values are true you will create a task for those approvers
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • How to give color to the display of keyfigure based on condition using exception.

    Dear Friends.
       I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
    What I am trying to do is :
       in Query designer :
       I have PO Quantity and Delivered Quantity. 
      if PO Qnantity > Delivered Quantity
        then Delivered Quantity field should be colored as "BAD3" in exception.
    but here proble is in exception
      I have alert level , operator, and  value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
    but for value field I dont have PO Quantity for that I have to supply one formula variable,
    When I created a forumula  and did this way
    FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
    Please help me How I can solve my problem
    I will greatly appreciate your any help.
    Thanking you
    Regards
    Naim

    Thank you so much for your replies,
      I did following way and it helped me to solve my issues.
      I created one formula and under formula I use boolean < funtion to compare the values.
    like following way.
    ( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
    here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
    Thanks again for your replies
    Regards
    Naim

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

  • Creation of Dynamic Date Variables to be used in WebI reports

    What we are trying to achieve is to create 4 optional filters (Current Day, Current Week, Last Week, Last Month) on 4 different dates which will allow the users to use them in WebI reports.
    When using an optional SAP Customer Exit variable in BEx and creating a Universe on top, the filter becomes mandatory (i.e. the whole Universe is filtered by the SAP Exit, irrespective of whether the filter is used in the WebI report). Even if the filter is flagged as optional at the Universe level, it still behaves as mandatory.
    If each filter becomes mandatory then we'll have to create 16 different Universes (for each optional filter and date combination)! This is not feasible.
    I've seen in other posts that MDX Statements are not currently supported for Universes base on BW and SAP Exit should be utilized.
    So with the existing BO version, is it possible to create optional dynamic date variables or is that a product limitation?
    We are on XI3.1 SP3 FP3.1
    Thanks

    Hi Adam,
    In BEx, I would create this query very easily using the "Amount" key figure twice in my results and restricting each with a different SAP standard out-of-the-box delivered variable. For your reference, the variables in BEx are: 0FPER and 0FYTLFP.
    If I expose these variables in my OLE DB for OLAP query, they are not transfered into the universe, but rather act as filters on the entire universe. I've seen in documentation that only "Ready for Input" variables can be transfered as options into the universe which is not something that I have seen mentioned in this thread.
    >> In the BEx Query you have the option to either make the variable "ready for input" or not. The behavior is the same in Bex or in the Universe / Web Intelligence. "Ready for input" means the user can actually provide an input and without the flag the user can not provide an input. Yes those variables are supported in the Universe.
    Why this is a problem: I can't create separate universes based on potential variable periods that users might want to see. Additionally, many financial reports require concurrent use of these measures in the same report. Also, in reality it's not 2 variables, but dozens.
    >> Which is a decision you make already on the BEx query level. if you decide that the variable is not ready for input then the user can change the timeframe in BEx either.
    Also, I don't have a good way to mimic the standard out-of-the-box functionality given with BEx in BO. If I custom create all my variables in the universe, how do I do a lookup from the system date to the fiscal calendar that is stored on the BW server? In other words, how does BO know which date belongs in which period? (the same would be true with factory calendars for a different functional area).
    >> Variable are created in the BEx query and the Universe will leverage those.
    If you want a dynamic date range then EXIT variable as part of the BEx query - ready for input or not - is the solution.
    regards
    Ingo Hilgefort
    The only work around I can see is to require users to enter the current fiscal period and have the BO reports filter based off that user entered value. This is unfortunate as the entire purpose of SAP Exit variables is to avoid having to require user input at report time.

  • Suppress Target structure based on condition

    Hi
    How to suppress target structure based on condition
    Example:
    Source is like:
    <Details>
    <Name>abdc</Name>
    <ID>234</ID>
    <Address>US</Address>
    </Details>
    I have two target structures
    1:
    <Details>
    <Name>abdc</Name>
    <ID>234</ID>
    <Address>US</Address>
    </Details>
    2:
    <Error>
        <ErrorID>
    </Error>
    if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.
    example
    abc,123,US
    abc
    in above case second record has two null values
    so my target structure should be
    <Details>
    <Name>abc</Name>
    <ID>123</ID>
    <Address>US</Address>
    </Details>
    <Error>
        <ErrorID>2nd record has erro</ErrorID>
    </Error>
    How to acheive this..
    Please help us
    Regards
    Sowmya

    hi ,
    plz try the following mapping
    Name-->exist-->if than else-> tuue----->Name
                                                        false---(constant)--
    error
    ID-->exist-->if than else-> tuue----->ID
                                                     false---(constant)--
    error
    adress-->exist-->if than else-> tuue----->address
                                                          false---(constant)--
    error
    regards,
    navneet

  • Regarding  dynamically assigning the where clause to select query

    hi,
      Please send the code regarding how to dynamically assign the where clause to select query.
    thanks in advance

    SELECT <fileds>
            INTO TABLE itab
            FROM dbase
            WHERE  condition.

  • Correct way to construct variable based on other variable's name

    Hello!
    I have done this topic based on some modifications of this thread.
    The problem is that I can't understand how to manipulate with selection of the columns as variable when iterating over loop.  My goal is to define multiple variables for 'select' and choose correct one when the adequate topic is selected on loop. It seems
    that my problem is that I'm not correctly construct the variable for 'select' by using 'invoke-expression'.
    The source file is the following:
    topic=interface_bridge ruleaction=add name=vlan10
    topic=interface_bridge ruleaction=add name=vlan13
    topic=interface_ethernet set=1 comment=DMZ
    topic=interface_ethernet set=2 comment=Servers
    The script is the following:
    $file="c:\scripts\mk.txt"
    #selections
    $interface_ethernet='comment','name','set','switch','master-port'
    $interface_bridge='comment','name','protocol-mode'
    #topics
    $topic_int_bridge='interface_bridge'
    $topic_int_ethernet='interface_ethernet'
    $topics=@($topic_Int_bridge, $topic_int_ethernet)
    foreach ($topic in $topics)
    $match='^topic='+$topic+'\s+'
    $result_File = 'config_'+$topic+'.txt'
    #construct selection
    $select = '$'+$topic
    $interface_ethernet='comment','name','set','switch','master-port'
    $interface_bridge='comment','name','protocol-mode'
    ##automatically select correct topic on loop - This does not work correctly on loop
    ##the main idea is to constuct select variable based on topic name
    $select_topic=invoke-expression ('$'+$topic)
    $results = Get-Content mk.txt | Where-Object { $_ -Match $match }| foreach { new-object PSObject -Property $($_ -replace '^' -replace ' ',"`n" | convertfrom-stringdata) }
    $results | select $select_topic
    I'm hang on the following: when I run the script it only takes first selection ($interface_bridge) gives the result about first topic (bridge), and for second (ethernet) - only comments (this means that the second selection for interface_ethernet (variable
    $interface_ethernet) is not used.
    comment name protocol-mode
    vlan10
    vlan13
    DMZ
    Servers
    Expected result should be the following:
    comment name protocol-mode
    vlan10
    vlan13
    comment set name switch master-port
    DMZ 1
    Servers 2
    Question:
    How to modify the script that the result is printed for each topic with adequate selection:
    1) when looping over topics, when the topic interface_ethernet is processed select and print results for variable $interface_ethernet
    (selected items 'comment','name','set','switch','master-port')
    2) when looping over topics, when the topic interface_bridge is processed select and print results for variable $interface_bridge
    (selected items 'comment','name','protocol-mode')
    3) etc...
    Each topic should be on separated iteration block because for each will be generated csv file with each own header. 
    Thanks.

     I just shorted my question. I hope that it can be better understandable. The source file is the following:
    topic=interface_bridge ruleaction=add name=vlan10
    topic=interface_bridge ruleaction=add name=vlan13
    topic=interface_ethernet set=1 comment=DMZ
    topic=interface_ethernet set=2 comment=Servers
    Expected result should be the following on pipeline or on separate csv files:
    comment name protocol-mode
    vlan10
    vlan13
    comment set name switch master-port
    DMZ 1
    Servers 2
    Expected behavior:
    1) Select variables for each of the topic should be in the following form
    $interface_ethernet='comment','name','set','switch','master-port'
    $interface_bridge='comment','name','protocol-mode'
    2) when looping over topics (the topics can be more than 50), when the topic interface_ethernet
    is processed select and print results for variable $interface_ethernet
    (selected items 'comment','name','set','switch','master-port')
    3) when looping over topics
    (the topics can be more than 50),
    when the topic interface_bridge is processed select and print results for variable $interface_bridge
    (selected items 'comment','name','protocol-mode')
    As the topics can be more than 50 it wouldn't be a good idea to write separate condition
    for each topic.

  • Showing the custom train stop as default activity based on condition

    Hi Folks,
    I'm using JDeveloper version 11.1.1.5.0. I have requirement where in i have to show the custom train stop as default train stop based on some business logic instead of default activity mentioned as part of task flow with train.
    Test Case:
    I have a dynamic region where i'm loading diff task flows based on condition. Let us consider i have two task flows TF1, TF2 and One of these task flows (TF2) contains a train.
    TF2 task flows has a train with train stops as ts1, ts2 and ts3 and ts1 has been configured as default activity in TF2 task flow
    I'm loading these task flows into dynamic region based on my business logic. Currently i'm in TF1 and i'm doing some action in TF1 page. Based on my business logic in one of the button actions in TF1, i have to load TF2 into region and have to set either ts1, ts2 or ts3 as default activity. its not like every time only configured default activity as part of TF2 is shown.
    Consider this case. in IF1 i have 3 buttons b1, b2 and b3. When i click on b1, i have to load TF2 into region and ts1 as default activity. Like wise if i click on b2 in TF1, i have to load TF2 abd ts2 as default activity. Like wise if i click on b3 in TF1, i have to load TF2 abd ts3 as default activity.
    I have summarized my test case here. Its not exactly 100% same but it more or less like based on some business logic in TF1 i have to load TF2 with specific train stop as default activity.
    Please help me in this regard. Is this possible in ADF? if yes provide some pointers.
    NOTE:
    I'm able to show the specific trainstop as the selected one but its content is not showing. Though i'm able to see my intended trainstop selected but content is always the content related to the default activity configured as part of task flow.
    I have used below code to acheive ( setting atleast intended train stop as the selected on)
    TrainModel trainModel = TrainUtils.findCurrentTrainModel();
    trainModel.setCurrentTrainStop(activityId);
    [activity id i'm getting from model it self like java.util.Map<ActivityId, TrainStopModel> mapTrainStops = trainModel.getTrainStops(); and intended activityId is provided}
    // note end
    Thanks,
    Mahipal

    Hi Jobinesh,
    Thanks for your reply.
    When i try to do the navigation with in the task flow i.e. with in the train task flow, i'm able to navigate fine. But for different taskflow, i'm unable to do it.
    for ex: in my case i have three train stops ts1, ts2 and ts3. I have placed a button in ts3 and i'm returning the respective navigation el expression to navigate to either ts1 or ts2 in action method of this button. I'm able to do this successfully. but when i come from different taskflow, i'm unable to do this.
    I have tried this link as a workaround but it is not working.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf
    i have tried this way, but it is not working.
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExpressionFactory expressionFactory =
    fctx.getApplication().getExpressionFactory();
    ELContext elctx = fctx.getELContext();
    MethodExpression methodExpression =
    expressionFactory.createMethodExpression(elctx,
    "_adfcActivityRequest./WEB-INF/task-flow-definition.xml#task-flow-definition@*ts3*",
    String.class,
    new Class[] { });
    *//NOTE: ts3 is the activity id of third train stop*
    //queue action in region
    myspaceRegion.queueActionEventInRegion(methodExpression,
    null, null, false,
    0, 0,
    PhaseId.INVOKE_APPLICATION);
    Please let me know any pointers for this problem. is there any example with routers navigation rules which can be called from another task flow.
    Thanks,
    Mahipal

  • Dynamically assigning digital signature strategy

    Hi Experts,
      I have a requirement where I need to dynamically assign different signature strategy to document approval based on the number of approvers.
    In our case for the same document based on the level of changes number of approvers might be different ( 3 - 12). We are planning to achive this by allowing document owners to select the approver using a approval workflow
    I also know that there is a limition of 8 approver slots on the default signature strategy.
    Please advise what is the best strategy in this case.
    Thank You
    Regi

    Hi,
    You can refer Note 700495 for digital signatures.
    Thank You,
    Manoj

Maybe you are looking for

  • PR to PO generation with Contract

    Hi Experts, I am having an issue regarding Source determination and PO generation. The scenario is as follows: I am having MRP running in my plant, it takes care of the Quantity required to procure. I am also running Dynamic pricing engine which carr

  • How to send a mail whitout jsession?

    Hi, I've a login page and, if a user has no password, he must send a mail requesting it. I've this code to open the default email client <h:outputLink value="mailto:[email protected]"> <h:outputText value="send info"/> </h:outputLink> When the client

  • Intel VT in the Bios of Satellite P200-13F disabled?

    Hi, I just bought a toshiba Satellite P200-13F and now I am finding out that the Vitrualization cannot be switched on in the BIOS. Can anyone tell me if Toshiba is planning to release a BIOS with this feature supported? I want to use the machine for

  • Repousse and After Effects Integration

    Once you import a some extruded text from repousse in Photoshop Extended into After Effects, how in the world are you supposed to animate and retain its 3d qualities with other compositions and layers? I can animate it on its own, but there is no way

  • Mold wise data capturing for one characteristic

    For one particular characteristic, I want to capture data mould wise seperately as client requirement is for mold wise analysis. Can I use "units to be inspected" functionality here. Can anyone tell how it will work. Or do I need to maintain seperate