pass the Boolean parameter?

I need to pass a Boolean (true/false) for a full load, so I can shrink down tons of codes.

But it's not working.

How should the code look like?

function myLoad() {}

load codes

var pass: Boolean = new Boolean (true);

myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, function(e:Event) {loadComplete (e, col)});

}

function loadComplete(e:Event,_pass:Boolean):void {}

If (pass = true) {}

trace ("doing something");

} ElseIf (pass = false) {}

trace ("do something else");

}

}

I don't know about the passage of the arguments by the listeners, but as far as contingency go, '=' is not what you want to use... "is" is for comparison.  And if you test the Boolean values you do not need to write the comparison...

{if (Pass)}

} else {}

}

And as I said, I know not for the passage of the arguments through designations of listener function, so if you've had success before, then very well.  I was led to believe that it's more complicated a case to solve.  Without knowing how, while it might involve more lines of code, I would use the conditional test to assign the listener rather than deciding which code to use the function loadComplete.  So I would like to use one of the two headphones and one of two complete functions through the...

Tags: Adobe Animate

Similar Questions

  • In passing the huge parameter to oracle procedure have a performance hit?

    I have a script attached, in which I am trying process/XML parsing in a table (STAGE_TBL) in the XMLTYPE column and insert the data analyzed in another table (PROCESSED_DATA_TBL). The XML file can be huge up to 2MB, which translates into approximately 2000 + lines of analyzed data. The issue I see is when I pass an XML object to a procedure (STAGE_TBL_PROCESS) to analyze its takes about 10 seconds per XML, but rather than from XML if I directly pick up table in the procedure (STAGE_TBL_PROCESS) passing the ID to be about 0.15 seconds. According to the document while params are passed by reference, so why is this variation of performance?

    Details of database Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64-bit version of PL/SQL Production 11.2.0.3.0 - Production "CORE 11.2.0.3.0 Production" TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production

    Note: I could not perform SQL_TRACE or DBMS_STATS as I don't have access to them.

    /*
    This one is taking .15 seconds to process an XML with about 2000 rp_sendRow elements
    */

    DECLARE
     
    CURSOR NewStage IS
      
    SELECT *
      
    FROM STAGE_TBL
      
    WHERE  status = 'N'
      
    ORDER BY PUT_TIME ASC;
      SUBTYPE rt_NewStage
    IS NewStage % rowtype;

      ROW_COUNT INTEGER
    := 0;   -- Return value from calling the procedure
      READ_COUNT INTEGER
    := 0;   -- Number of rows read from the stage table
      INSERT_COUNT_TOTAL INTEGER
    := 0;   -- Number of Inserts Inven records
      ERROR_COUNT INTEGER
    := 0;   -- Number of Inven inserts that did inserted more then 1 row in Inven
      PROCESS_STATUS STATUS
    .MmsStatus;
      STATUS_DESCRIPTION STATUS
    .MmsStatusReason;
      ERRMSG VARCHAR2
    (500);

    PROCEDURE STAGE_TBL_PROCESS (IDDATA IN RAW, PROCESS_STATUS OUT VARCHAR2, STATUS_DESCRIPTION OUT VARCHAR2, ROW_COUNT OUT NUMBER) AS
    /*
      This procedure is to parse the XML from STAGE_TBL and populate the data from XML to PROCESSED_DATA_TBL table

      IN PARAMS
      ----------
      IDDATA - ID from STAGE_TBL
      xData - XMLType field from XML_DOCUMENT of STAGE_TBL

      OUT PARAMS
      -----------
      PROCESS_STATUS - The STATUS of parsing and populating PROCESSED_DATA_TBL
      STATUS_DESCRIPTION - The description of the STATUS of parsing and populating PROCESSED_DATA_TBL
      ROW_COUNT - Number of rows inserted into PROCESSED_DATA_TBL
    */

    BEGIN
      
    INSERT ALL INTO PROCESSED_DATA_TBL 
      
    (PD_ID, 
      STORE
    , 
      SALES_NBR
    , 
      UNIT_COST
    , 
      ST_FLAG
    , 
      ST_DATE
    , 
      ST
    , 
      START_QTY
    , 
      START_VALUE
    , 
      START_ON_ORDER
    , 
      HAND
    , 
      ORDERED
    , 
      COMMITED
    , 
      SALES
    , 
      RECEIVE
    , 
      VALUED
    , 
      ID_1
    , 
      ID_2
    , 
      ID_3
    , 
      UNIT_PRICE
    , 
      EFFECTIVE_DATE
    , 
      STATUS
    , 
      STATUS_DATE
    , 
      STATUS_REASON
    ) 
      
    VALUES (IDDATA 
      
    ,store 
      
    ,SalesNo 
      
    ,UnitCost 
      
    ,StWac 
      
    ,StDt 
      
    ,St 
      
    ,StartQty 
      
    ,StartValue 
      
    ,StartOnOrder 
      
    ,Hand 
      
    ,Ordered 
      
    ,COMMITED 
      
    ,Sales 
      
    ,Rec 
      
    ,Valued 
      
    ,Id1 
      
    ,Id2 
      
    ,Id3 
      
    ,UnitPrice 
      
    ,to_Date(EffectiveDate||' '||EffectiveTime, 'YYYY-MM-DD HH24:MI:SS') 
      
    ,'N'  
      
    ,SYSDATE 
      
    ,'XML PROCESS INSERT')  
      
    WITH T AS
      
    ( SELECT STG.XML_DOCUMENT FROM STAGE_TBL STG WHERE STG.ID = IDDATA)  
    -- This is to parse and fetch the data from XML 
      
    SELECT E.* FROM T, XMLTABLE('rp_send/rp_sendRow' PASSING T.XML_DOCUMENT COLUMNS
      store VARCHAR
    (20) PATH 'store'  
      
    ,SalesNo VARCHAR(20) PATH 'sales' 
      
    ,UnitCost NUMBER PATH 'cost' 
      
    ,StWac VARCHAR(20) PATH 'flag' 
      
    ,StDt DATE PATH 'st-dt' 
      
    ,St NUMBER PATH 'st' 
      
    ,StartQty NUMBER PATH 'qty' 
      
    ,StartValue NUMBER PATH 'value' 
      
    ,StartOnOrder NUMBER PATH 'start-on-order' 
      
    ,Hand NUMBER PATH 'hand' 
      
    ,Ordered NUMBER PATH 'order' 
      
    ,Commited NUMBER PATH 'commit' 
      
    ,Sales NUMBER PATH 'sales' 
      
    ,Rec NUMBER PATH 'rec' 
      
    ,Valued NUMBER PATH 'val' 
      
    ,Id1 VARCHAR(30) PATH 'id-1' 
      
    ,Id2 VARCHAR(30) PATH 'id-2' 
      
    ,Id3 VARCHAR(30) PATH 'id-3' 
      
    ,UnitPrice NUMBER PATH 'unit-pr' 
      
    ,EffectiveDate VARCHAR(30) PATH 'eff-dt' 
      
    ,EffectiveTime VARCHAR(30) PATH 'eff-tm' 
      
    ) E;  
      ROW_COUNT 
    := SQL%ROWCOUNT;  -- Not the # of all the rows inserted.
      PROCESS_STATUS 
    := STATUS.PROCESSED;
      
    IF ROW_COUNT < 1 THEN   -- The insert failed Row Count = 0 No exception thrown
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'ERROR Did not insert into Pos Inventory. Reason Unknown';
      
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      ROW_COUNT 
    := 0;
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'SqlCode:' || SQLCODE || ' SqlErrMsg:' || SQLERRM;
    END;


    BEGIN
      DBMS_OUTPUT
    .enable(NULL);
     
    FOR A_NewStage IN NewStage
      LOOP
      READ_COUNT
    := READ_COUNT + 1;
      STAGE_TBL_PROCESS
    (A_NewStage.ID, PROCESS_STATUS, STATUS_DESCRIPTION, ROW_COUNT);
      INSERT_COUNT_TOTAL
    := INSERT_COUNT_TOTAL + ROW_COUNT;
      
    IF(ROW_COUNT <= 0 OR PROCESS_STATUS = STATUS.ERROR) THEN
      ERROR_COUNT
    := ERROR_COUNT + 1;
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION
      
    WHERE ID  = A_NewStage.ID;
      
    ELSE
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION,
      SHRED_DT 
    = SYSDATE
      
    WHERE ID  = A_NewStage.ID;
      
    END IF;
      
    COMMIT;
     
    END LOOP;
     
    COMMIT;
     
    IF ERROR_COUNT > 0 THEN
      ERRMSG
    := '** ERROR: ' || ERROR_COUNT || ' Stage records did not insert in to the Processed table correctly';
      RAISE_APPLICATION_ERROR
    (-20001,ErrMsg); 
     
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      RAISE
    ;
    END ;

    /*
    This one is taking 10 seconds to process an XML with about 2000 rp_sendRow elements
    */

    DECLARE
     
    CURSOR NewStage IS
      
    SELECT *
      
    FROM STAGE_TBL
      
    WHERE  status = 'N'
      
    ORDER BY PUT_TIME ASC;
      SUBTYPE rt_NewStage
    IS NewStage % rowtype;

      ROW_COUNT INTEGER
    := 0;   -- Return value from calling the procedure
      READ_COUNT INTEGER
    := 0;   -- Number of rows read from the stage table
      INSERT_COUNT_TOTAL INTEGER
    := 0;   -- Number of Inserts Inven records
      ERROR_COUNT INTEGER
    := 0;   -- Number of Inven inserts that did inserted more then 1 row in Inven
      PROCESS_STATUS STATUS
    .MmsStatus;
      STATUS_DESCRIPTION STATUS
    .MmsStatusReason;
      ERRMSG VARCHAR2
    (500);

    PROCEDURE STAGE_TBL_PROCESS (IDDATA IN RAW, xData IN STAGE_TBL.XML_DOCUMENT%TYPE, PROCESS_STATUS OUT VARCHAR2, STATUS_DESCRIPTION OUT VARCHAR2, ROW_COUNT OUT NUMBER) AS
    /*
      This procedure is to parse the XML from STAGE_TBL and populate the data from XML to PROCESSED_DATA_TBL table

      IN PARAMS
      ----------
      IDDATA - ID from STAGE_TBL
      xData - XMLType field from XML_DOCUMENT of STAGE_TBL

      OUT PARAMS
      -----------
      PROCESS_STATUS - The STATUS of parsing and populating PROCESSED_DATA_TBL
      STATUS_DESCRIPTION - The description of the STATUS of parsing and populating PROCESSED_DATA_TBL
      ROW_COUNT - Number of rows inserted into PROCESSED_DATA_TBL
    */

    BEGIN
      
    INSERT ALL INTO PROCESSED_DATA_TBL 
      
    (PD_ID, 
      STORE
    , 
      SALES_NBR
    , 
      UNIT_COST
    , 
      ST_FLAG
    , 
      ST_DATE
    , 
      ST
    , 
      START_QTY
    , 
      START_VALUE
    , 
      START_ON_ORDER
    , 
      HAND
    , 
      ORDERED
    , 
      COMMITED
    , 
      SALES
    , 
      RECEIVE
    , 
      VALUED
    , 
      ID_1
    , 
      ID_2
    , 
      ID_3
    , 
      UNIT_PRICE
    , 
      EFFECTIVE_DATE
    , 
      STATUS
    , 
      STATUS_DATE
    , 
      STATUS_REASON
    ) 
      
    VALUES (IDDATA 
      
    ,store 
      
    ,SalesNo 
      
    ,UnitCost 
      
    ,StWac 
      
    ,StDt 
      
    ,St 
      
    ,StartQty 
      
    ,StartValue 
      
    ,StartOnOrder 
      
    ,Hand 
      
    ,Ordered 
      
    ,COMMITED 
      
    ,Sales 
      
    ,Rec 
      
    ,Valued 
      
    ,Id1 
      
    ,Id2 
      
    ,Id3 
      
    ,UnitPrice 
      
    ,to_Date(EffectiveDate||' '||EffectiveTime, 'YYYY-MM-DD HH24:MI:SS') 
      
    ,'N'  
      
    ,SYSDATE 
      
    ,'XML PROCESS INSERT')  
    -- This is to parse and fetch the data from XML 
      
    SELECT E.* FROM XMLTABLE('rp_send/rp_sendRow' PASSING xDATA COLUMNS
      store VARCHAR
    (20) PATH 'store'  
      
    ,SalesNo VARCHAR(20) PATH 'sales' 
      
    ,UnitCost NUMBER PATH 'cost' 
      
    ,StWac VARCHAR(20) PATH 'flag' 
      
    ,StDt DATE PATH 'st-dt' 
      
    ,St NUMBER PATH 'st' 
      
    ,StartQty NUMBER PATH 'qty' 
      
    ,StartValue NUMBER PATH 'value' 
      
    ,StartOnOrder NUMBER PATH 'start-on-order' 
      
    ,Hand NUMBER PATH 'hand' 
      
    ,Ordered NUMBER PATH 'order' 
      
    ,Commited NUMBER PATH 'commit' 
      
    ,Sales NUMBER PATH 'sales' 
      
    ,Rec NUMBER PATH 'rec' 
      
    ,Valued NUMBER PATH 'val' 
      
    ,Id1 VARCHAR(30) PATH 'id-1' 
      
    ,Id2 VARCHAR(30) PATH 'id-2' 
      
    ,Id3 VARCHAR(30) PATH 'id-3' 
      
    ,UnitPrice NUMBER PATH 'unit-pr' 
      
    ,EffectiveDate VARCHAR(30) PATH 'eff-dt' 
      
    ,EffectiveTime VARCHAR(30) PATH 'eff-tm' 
      
    ) E;  
      ROW_COUNT 
    := SQL%ROWCOUNT;  -- Not the # of all the rows inserted.
      PROCESS_STATUS 
    := STATUS.PROCESSED;
      
    IF ROW_COUNT < 1 THEN   -- The insert failed Row Count = 0 No exception thrown
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'ERROR Did not insert into Pos Inventory. Reason Unknown';
      
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      ROW_COUNT 
    := 0;
      PROCESS_STATUS 
    := STATUS.ERROR;
      STATUS_DESCRIPTION 
    := 'SqlCode:' || SQLCODE || ' SqlErrMsg:' || SQLERRM;
    END;


    BEGIN
      DBMS_OUTPUT
    .enable(NULL);
     
    FOR A_NewStage IN NewStage
      LOOP
      READ_COUNT
    := READ_COUNT + 1;
      STAGE_TBL_PROCESS
    (A_NewStage.ID, A_NewStage.XML_DOCUMENT, PROCESS_STATUS, STATUS_DESCRIPTION, ROW_COUNT);
      INSERT_COUNT_TOTAL
    := INSERT_COUNT_TOTAL + ROW_COUNT;
      
    IF(ROW_COUNT <= 0 OR PROCESS_STATUS = STATUS.ERROR) THEN
      ERROR_COUNT
    := ERROR_COUNT + 1;
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION
      
    WHERE ID  = A_NewStage.ID;
      
    ELSE
      
    UPDATE STAGE_TBL
      
    SET status  = PROCESS_STATUS,
      status_DATE 
    = SYSDATE,
      status_DESCRIPTION 
    = STATUS_DESCRIPTION,
      SHRED_DT 
    = SYSDATE
      
    WHERE ID  = A_NewStage.ID;
      
    END IF;
      
    COMMIT;
     
    END LOOP;
     
    COMMIT;
     
    IF ERROR_COUNT > 0 THEN
      ERRMSG
    := '** ERROR: ' || ERROR_COUNT || ' Stage records did not insert in to the Processed table correctly';
      RAISE_APPLICATION_ERROR
    (-20001,ErrMsg); 
     
    END IF;
      EXCEPTION
      
    WHEN OTHERS THEN
      RAISE
    ;
    END ;

    My
    XML with just one rp_sendRow element, it can go upto 2000 rp_sendRow elements
    <?xml version = \"1.0\" encoding = \"UTF-8\"?> 
    <rp_send xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"> 
      
    <rp_sendRow> 
      
    <store>0123</store> 
      
    <sales>022399190</sales> 
      
    <cost>0.01</cost> 
      
    <flag>true</flag> 
      
    <st-dt>2013-04-19</st-dt> 
      
    <st>146.51</st> 
      
    <qty>13.0</qty> 
      
    <value>0.0</value> 
      
    <start-on-order>0.0</start-on-order> 
      
    <hand>0.0</hand> 
      
    <order>0.0</order> 
      
    <commit>0.0</commit> 
      
    <sales>0.0</sales> 
      
    <rec>0.0</rec> 
      
    <val>0.0</val> 
      
    <id-1/> 
      
    <id-2/> 
      
    <id-3/> 
      
    <unit-pr>13.0</unit-pr> 
      
    <eff-dt>2015-06-16</eff-dt> 
      
    <eff-tm>09:12:21</eff-tm> 
      
    </rp_sendRow> 
    </rp_send> 

    The issue I see is when I pass an XML object to a procedure (STAGE_TBL_PROCESS) to analyze its takes about 10 seconds per XML, but rather than from XML if I directly pick up table in the procedure (STAGE_TBL_PROCESS) passing the ID to be about 0.15 seconds.

    In version 11.1, Oracle introduced a new model of storage for the data type XMLType called XML binary.

    Binary XML become the default in 11.2.0.2, to disparage the old storage based on CLOB.

    Binary XML is a format optimized after analysis for the storage and treatment of the XQuery.

    When an XQuery expression is evaluated (through for example XMLTABLE) on an XMLType column stored as binary XML, Oracle can use an ongoing evaluation of XPath that surpasses the query even crushed a transitional XMLType of several order of magnitude.

    You can see that in the action plan of the explain command:

    SQL> SELECT E.*
      2  FROM stage_tbl t
      3     , XMLTABLE('rp_send/rp_sendRow' PASSING t.xml_document
      4         COLUMNS store VARCHAR(20) PATH 'store'
      5               , SalesNo VARCHAR(20) PATH 'sales'
      6               , UnitCost NUMBER PATH 'cost'
      7         ) E ;
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1134903869
    
    --------------------------------------------------------------------------------
    | Id  | Operation          | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |           |     1 |  2008 |    32   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS      |           |     1 |  2008 |    32   (0)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| STAGE_TBL |     1 |  2002 |     3   (0)| 00:00:01 |
    |   3 |   XPATH EVALUATION |           |       |       |            |          |
    --------------------------------------------------------------------------------
    

    When the query is executed on a passenger XMLType (for example, a parameter, or a PL/SQL variable), Oracle cannot run the binary model and use a functional assessment based on memory of the XML DOM-like representation.

    You can see that in the plan to explain it by spoting a 'COLLECTION ITERATOR PICKLER FETCH' operation.

    So what explains the difference (in your version) between treatment from a column of XMLType (stored in binary XML format) or a variable or a parameter.

    From 11.2.0.4 and beyond, things have changed a bit with Oracle, introducing a new transitional level of optimization on XMLType.

    The plan of the explain command will show a "XMLTABLE ASSESSMENT' in this case.

  • Pass the connection parameter to connected in portal Builder page

    Hi all

    WebCenter Portal Builder:

    I created the navigation link and connection that link to the page. I just want the parameter to link to this page.

    Please help me.

    Kind regards

    Maury

    See the discussion in passing the parameter through links page (navigation)

  • Passing the Querystring parameter as well as CBC field

    Is Hi possible to pass a string to query on the server when you ask a MP4 file?

    I am building a facebook application where the video files are stored mp4 on facebooks CDN network, however I have noticed that a video to play properly, requires that a string parameter of request sent with the request.  Here is the link for the mp4 with the query string:

    http://video.AK.fbcdn.NET/CFS-AK-snc4/69913/836/451856279639_63474.MP4?Oh=4be5616652f40bde 3c2930c7ce7772c6 & oe = 4D55F60B & __gda__ = 1297479179_1121a29bd1b378f4861aa6efc4c03c54

    If you click on it, you see it load correctly in the browser.

    However if you remove the query string and have it so that it looks like this:

    http://video.AK.fbcdn.NET/CFS-AK-snc4/69913/836/451856279639_63474.MP4

    And try to run in the browser, you will see that he will not play.

    I guess that the query string is a kind of authentication code required by facebook to verify the user.  That's fine, because I just want to send with the request of mp4 because the user has already been authenticated by my application.

    I tried to define the scope of the CBC in SMP with and without the query string and it won't play it.  I'm assuming THAT SMP is stripping the querystring parameter.  How to make it so that it leaves intact querystring and along sends to the servers of facebook as well?  What classes in the SMP or OSMF can I change?

    Here, any help would be appreciated thanks.

    It should work out of the box - just urlencode the url in the embed code.

    Please try to paste your url into the Configurator for Flash Media Playback page

    http://www.OSMF.org/Configurator/FMP/#

    or SMP configuration page. You can use the demo to

    http://OSMF.org/dev/1.5gm/Setup.html

    Does that help?

  • How to pass the Boolean values of a façade in other block?

    Hi all

    I have a main façade with several Boolean button for example:

    N1-dncc-01

    N1-dncc-02

    N1-dncc-03

    -

    -

    -etc. And for each option, I event structure that calls the other program of labview in subgroup of experts.

    So now that my problem is when I pressed the button dncc-n1-01 its Boolean values should be passed to the program which I am calling the Sub-group of experts.

    So, it is possible? I tried with ref and property of node, but I failed. I guess that I am not on the correct path.

    Thanks in advance

    Pals


  • Pass the Boolean b/t parallel threads

    Dear Board of Labview,

    I have two Labview processes running in parallel.   Entering the data and the other data output are done.   They where originally designed to operate independently of the other, but today I need them to make some modest integration.   The two processes are very complex, so I would avoid a costly reconstruction.   I am looking for a quick fix and dirty.

    I need #1 process (which is loop based) temporarily hold the execution based on a condition (Boolean flag) process #2.   I'm not familiar with the techniques of parallel processing in labview, and I wonder if I'm doing this more difficult it really is.   Can I put a wait loop in a process which refers to an indicator in another process?   What is the best way to pass Boolean data between parallel threads?

    Thank you

    Zach

    That vi is perfect.

    In your case by using a variable is probably correct. But do not use a global - use a local! I would stay again far using variables-you never know what the future holds. Maybe you end up adding a few other loop. Maybe you want to add error checking and loops to stop on error of the signal.

    There is a significant difference between Globals functional and just a simple variable. Since the FG is a vi that one instance can run at a time *. With a variable, you have no way of knowing which is written or read what or when, unless you use semaphores or structures from sequence.

    * unless you make it reentrant

  • Must pass the new parameter to page popup LOV

    Hi all

    I try to pass additional parameters of base page-to-page Popup LOV. In my basic page, I also have 5 columns and 3 rows.

    My requirement is based on the refrence to the selected line in the popup LOV page, I have to do a validation.

    I tried the logic of value form, but it did not work.

    I tried with getCurrentRow(). But he was always returns the reference of the top row.

    Help, please... It is urgent...

    If you want to get the value in the window of LOV, you must join a controller with the LOV window.

    In this controller, to help

    Dictionary passiveCriteriaItems = pageContext.getLovCriteriaItems)

    You can get the value mapped from basic page.

    Sushant-

  • How to pass the dynamic parameter to a function of database in OBIEE

    Hello

    I have a requirement like this. I need to create a report in OBIEE which stood in the discoverer. Now in the Scout report there is a calculated item in the worksheet based on the pkg.functions database. The user setting which gives the runtime parameters are then passed to the discoverer calculated elements dynamically. But I am not able to do this in OBIEE answers.

    Can someone tell me step by step how I can able to transmit the values of user setting selected in the level of response OBIEE.

    The example:

    GET_COMM_VALUE_PTD ('cost AFE & commitment'. ID of the AFE,: ' name at that time (AFE) ', 'cost of the AFE & commitment '. Salt of data, 'cost of the AFE & commitment '. The org ID)

    GET_COMM_VALUE_PTD - database function
    ('Cost AFE & commitment'. ID of the AFE,: ' name at that time (AFE) ', 'cost of the AFE & commitment '. Salt of data, 'cost of the AFE & commitment '. org Id - settings...: "period Name (AFE)" is the dynamic setting of the execution by the user.


    Help, please.

    Thank you

    Titas

    Hello

    Please see this link.

    http://satyaobieesolutions.blogspot.in/2012/08/database-evaluate-function-database.html

    This can be help you.

    Thank you
    Satya

  • How to call another page and pass the page parameter to another page?

    Hi friends,

    I've finished a page based on the payment date, he turns the payroll, summarized in the table region. Now, I have to address in detail (submit) button, when click on the details button I want to open the new page, this page based on a few VO. This vo I spend 2 parameters, we're Person_id, and the second is pay date until we are on the front page.
    How to achieve this where I can write code, I am new to the OPS. could you please explain in detail and process?
    Thank you and best regards.
    Jocelyne.

    RAMU

    The value of your hashmap returns null. Let intrepret your code below

    String newValue = params.get("pid").toString();
                               null.toString(); will always throw null pointer exception
    

    Robichaud, I suggest you to always put some SOPS for debugging purposes. It is useful to locate the problem.

    Kind regards
    GYAN

  • Command button action is bean method. How to pass the ID parameter or reference?

    JDEV11gR1PS1/ADF

    The action of the button order is bean method, as follows:
     <af:commandMenuItem id="gbl_cmi_1" action="#{tbBean.action1}"/> 
    Bean code is something like
    public String action1() throws IOException {
    ...
    if (id.equals.("gbl_cmi_1"))...
    }
    Therefore, I would like to be able to know what the CommandButton ID, to be used in the assessment, etc..

    The reason is that several commandButtons are actually built dynamically as well and the action can be a redirect to URL. Therefore, I use the id to find what URL to redirect to.

    Ideas?


    Thank you.

    To do this, you have to use set listener(af:setPropertyListener) property to set an attribute in your bean or you use an action instead of the action listener (here you can get the source of the event).

    Timo

  • passing the parameter through links page (navigation)

    Hello

    suggest me the way to pass the parameter through links in the page navigation.

    I tried it in EL, I'm not able to get on the page.

    is it a right approach or any other.

    Thank you

    A

    After showing the steps in the similar thread, I found this thread then re-post here.

    Pass the connection parameter to connected in portal Builder page


    Here are the steps to pass the parameter in a URL to another page:

    OR

    Sign in to your personalized Portal (say MyPortal1)

    http://127.0.0.1:8888 / webcenter/Portal/MyPortal1

    Click the settings (e.g. Pages & portals Actions)-> manage-> all settings

    It will take you to the page view of all of the current portal (i.e. MyPortal1).

    Then click attributes in the left pane, and you can create/edit/delete the custom attributes for the current portal on the right side.

    • Click Add an attribute and specify the following information:

    Attribute name = myvar

    This is the attribute that we will refer to any page using the EL "MyVar".

    Attribute value = #{param.myvarval}

    "Myvarval" is the name of the query parameter (i.e. suffix query param & myvarval = TestSuccess will be passed as part of the URL later)

    • Now, create a new page "TestPage" and add the element of HTML markup on the page using the composer.
    • In the Properties window, change the HTML markup element.

    Replace the existing value

    #{componentExtensionBundle.OUTPUT_TEXT_TEXT}

    with

    #{spaceContext.currentSpace.metadata.customAttributes ['myvar']}

    • Click apply and then click OK to close the pop-up window.
    • Click on save and view Portal


    • CHECK: Replace/change the URL the following OR open in a new tab in the browser

    Http://127.0.0.1:8888 / webcenter, portal, MyPortal1, TestPage ? myvarval = TestSuccess

    and you will see "TestSuccess' message in the"TestPage"rendered using the HTML markup component.

    This confirms passing the parameter to a page URL works as expected.

    Now, to add a link to the "TestPage" passing a parameter in the URL of the page in another page (Home Page say).

    • Now goto homepage, correct it in composer and add the hyperlink element. Click change to set the hyperlink in the Properties window.
    1. Set the title to display (i.e. the value of the title TestPage)
    2. Set the Destination URL by clicking on the search icon and choose "TestPage".

    Destination is defined with values that resembles

    /faces/Oracle/WebCenter/page/scopedMD/sf5926dd1_9e6a_45ab_a99c_d79fabb362c0/Page1.JSPX

    Add a suffix '& myvarval = TestWorks' to him.

    • Click apply & OK.
    • Click on save and view Portal
    • CHECK: Since your home portal or the home page, click on the link "TestPage" which brings you to the TestPage and you will see "TestWorks' message in the"TestPage"rendered using the HTML markup component.

    I hope it helps.

    References:

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1)

    https://mosemp.us.Oracle.com/epmos/faces/DocumentDisplay?ID=1545808.1

    Works with the global attributes in portals

    http://docs.Oracle.com/CD/E29542_01/WebCenter.1111/e27738/wcadm_ps_attrib.htm#WCADM11701

  • passing the parameter to bounded taskflow

    jdev 11.1.1.7

    I call a taskflow 1 with parameters as:

    < taskFlow id = "OrgRegistrationTF1".

    taskFlowId="/WEB-INF/OrgRegistrationTF.xml#OrgRegistrationTF".

    Activation = "deferred."

                  xmlns=" http://xmlns.Oracle.com/ADF/controller/binding "> "

    < Parameters >

    < parameter id = "OrgId" value = "#{pageFlowScope.OrgId}" / >

    < / Parameter >

    < / taskFlow >

    Now this taskflow calls internally the taskflow(taskflow 2) another and I need to pass the same parameter that I got while watching taskflow1.

    How can I change the setting to a taskflow which is called from a taskflow?

    Sorry for this question!

    It's simple

    When you set the parameters of taskflow were suppased to be be designated as:

    /Web-INF/OrgRegSubTF.XML

    OrgRegSubTF

    OrgId

    #{pageFlowScope.OrgId}

  • How to pass the Visa Resource Name parameter to labview dll in labwindows/cvi

    Hello world

    I build a dll of labview, the prototype is: double getchannelpower (double f, uintptr_t * VISAResourceName);

    I don't know how to go from VISAResourceName to this function.

    Is it related to the ViPSession paremeter in function viOpen(REES ViSession, rn ViRsrc, ViAccessMode am, ViUInt32 ti,ViPSession vi)?

    BRs,

    lotusky

    Hey, guys:

    I figured out how to pass the parameter.

    In labview, you must replace the control of visa with string control. In this way, the generated dll function at the entrance of the string type.

    I hope this will help others!

    lotusky

  • Passing the parameter when pageloads as processRequest in OFA

    Hi friends,

    I developed a page (EmpDetailPG) to view the details of the employees. The data appearing on the EmpDetailPG uses a ViewObject that is based on a query. The query lists the details of all employees.

    However, I have to include this page with EBS. The usercontext is available now in the EBS, and when the user loads the page the usercontext of EBS should be taken and passed this ViewObject on loading the page. This will ensure that the page displays the details of the only employee who is logged. How this can be in the ADF page. Ideas please let me know.

    JDeveloper version is 11.1.2.4.0. EBS is 12.1.3

    Thank you

    Hello

    (1) you must pass the username as a parameter of workflow. And then, you will need to filter your from vo of this username. You can do it on the loading of the page. See the blog post very useful for this http://tompeez.wordpress.com/2014/08/20/jdev-12-1-3-use-default-action-instead-of-invoke-action/

    (2) you need to access the user name of the context and value as a workflow parameter. There might be some expressionLanguage which will return the username you see directions to the user of the present session in EBS

    / Context parameter that provides you with the user name, you need to workflow parameter. Refer

    http://docs.Oracle.com/CD/E14571_01/Web.1111/b31974/taskflows_parameters.htm#CHDIAIJJ

    Thank you

  • Passing the parameter of workflow with shows the http 404 error pages

    Hello

    I have a parent workflow with fragments of page deleted as a region on a page. The fragment of a page in the parent workflow displays the read-only table employees. The service Id of the table appears as a link. When you click this link, the following is provided:

    • action listener is called which calls the managed bean that retrieves this Department Id and defines in the pageFlowScope.
    • Pass this value as an input to the child workflow parameter. Child workflow contains its display type is inline-popup page.

    The problem is that when there is no parameter passed to the child workflow the popup is fine. But if the parameter is passed it gives the following error:

    ADF_FACES - 60105:HTTP error state Code: 401.

    Parameters passed from parent to child, such as:

    #{pageFlowScope.DepartmentIdBean.value}

    (DepartmentIdBean is the bean class that gets and sets the Id selected Department)

    Parameter received in the child as workflows:

    #{pageFlowScope.pdeptId}

    Can someone please help me solve this problem? Is that the path parameter is spent creating problem? The same scenario works very well if the child workflow is invoked with fragments of page and like exterior window. I use JDev 12 c.

    I looked at the code and modify it to make it work. There were a few errors. the way main reason you got the error was that you tried to read the non-existing parameter values.

    Download the app from work OTNempDeptTaskFlow.zip | JDev & amp; Goodies ADF

    After downloading the doc you rename to zip and can then decompress.

    Timo

Maybe you are looking for