How to access variables in scope pageFlow 2 using EL

Hi all

I use jDeveloper 11.1.2.4 version.

In my application, there are a table and a button. by clicking on the button, I'll put 2 variables in to scope of page flow.

HashMap hm = new Hashmap();

HM.put (1.10);

HM.put (2.20).

and pageFlowScope.put ('hsmp', hm);

pageFlowScope.put ("color", "red");

I'm access to these two variables in el for table column inline style like this.

background-color: #{(vs.index eq pageFlowScope.hsmp [row. DepartmentId])?  "pageFlowScope.color": "};"

Its not to apply any color.

But same expression with the hardcoded values works very well

background-color: #{(vs.index eq pageFlowScope.hsmp [currentRow])?  "red": "};"


Its the Red colorg application

How can access us the second pageFlowScope variable by using the Expression language.

Best regards

Claude Reynier

Try

background-color: #{(vs.index eq pageFlowScope.hsmp [row. DepartmentId])?  {#{pageFlowScope.color}: "};

Timo

Tags: Java

Similar Questions

  • How to access the BPM 11 g load useful or process varibles in the workflow of ADF

    I'm trying to view/edit the data in a user interface that is linked to a database by using a foreign key, requestId. The foreign key comes from a BPM process where it is spent in the workflow, a human task. The foreign key comes process variables or values of payload. I know that I can simply load the payload in BPM with the data in the tables, but I'm looking for a better solution use the ADF business components to view and edit data directly in the user interface.

    The BPM process uses a web service to start the process. Web services takes a primary key as a parameter to reference a column in the database table. The data is pre-filled with content and a primary key reference. The first activity is an activity of the user. I want the workflow behind the user activity to accept this primary key and use to locate the line in the database, so related views of the database delimited ADF business components can work to present the data in the user interface.

    I tried two approaches to the problem. The first uses the setCurrentRowWithKeyValue operation. The other changes the SQL where clause, used by the ADFbc iterator only returns one row for the given requestId. Both of these approaches fail to work because I don't know how to access the load BPM or variable data entering the workflow. Here is the piece of code that I used to try to define the row using the value of setCurrentRowWithKey:

    public String setRequestId() {}

    FacesContext context = FacesContext.getCurrentInstance ();
    Object requestObj = context.getApplication () .evaluateExpressionGet)
    context, "#{bindings."(, Number.class) RequestId.inputValue "};
    If (requestObj is nothing)
    Returns a null value.
    RequestId number;
    requestId = (number) requestObj;

    ITR DCIteratorBinding = (DCIteratorBinding)

    getBindings () .get ("PatfRequestHdrView1");

    itr.setCurrentRowWithKeyValue (requestId.toString ());

    Returns a null value.

    I didn't get very far with the second approach, change SQL where clause, because I do not know Groovy. I think I need something like:

    adf.object.viewObj.RequestId. but it is not a viewObject associated with BPM data, so I don't know that this particular expression will not work.

    Any help you can give me is greatly appreciated.

    Kind regards
    Mark

    Try this code in your method:

    FacesContext context = FacesContext.getCurrentInstance ();
    String ctx = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistContext}", String.class);
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient ();
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = wfQueryService.getWorkflowContext (ctx);
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement ();
    get the payload as a string simple, useful for debugging
    java.io.StringWriter writer = new java.io.StringWriter ();
    xmlPayload.print (writer);
    String payloadAsString = writer.toString ();
    extract payload values: use methods in Oracle XDK

    See also this post:

    The task of reading by program details

  • How to access variable double * (an array) of c. in TestStand

    Hello

    I'm trying to access an array of numbers, measured by the multipoint read DMM operation. The expected data is double [] (an array of measures as defined by "ividmm.dll"), but when "nidmm_32.dll" (NEITHER IVI driver) is used to perform the same operation, the data is returned as double * (from CVI/C code). Although double [] and double * would mean the same thing.

    The problem do face is the matrix defined by 'Locals.Reading' defined in good TestStand shims only when she used with 'ividmm.dll' and not 'nidmm_32.dll '.

    The DLL used and examples of sequence files are also attached. The name of the step where the error occurs is 'Reading Multipoint' with readingsArray parameter.

    Any help or suggestion to go to these two types of data types in TestStand would be greatly appreciated.

    Note: TestStand version: 4.0

    Thank you

    Matrat

    Note that the readingArray parameter is declared with the category of digital and position pass by reference when you use the function niDMM_ReadMultiPoint, but when you use the IviDmm_ReadMultiPoint function there class of array of numbers.

    I suspect that the function type information stored in nidmm_32.dll is incorrect for the niDMM_ReadMultiPoint function. To test this theory, manually change the type of the parameter array of numbers and see if it works.

  • Access variable stored in PageFlow in the Java EntityImpl class

    Hi guys,.

    My Version of Jdev 12 c. I have a companyCode setting in my PageFlowScope and when I submit the form for creating new user I also want to save companyCode in my database.is it possible to access companyCode in the Java EntityImpl class. As companyCode is present in the layer of my view and I can't access it in my model layer.

    Thank you

    Raul

    Hi Raul,

    N ° CreateWithParams execution does not break the model.

    Arun-

  • How to access the attributes of an object using TestStand. ?

    Hello

    I have a class named status in c# that has 2 data members. There is another class named parameter and it has functions that return objects of type status.

    I did the DLL from the parameter class. Then I added this class to NI TestStand and calls a function and this function returns an object of type status.

    Is there a way by which I can access the data members of the object returned in TestStand?

    Thanks in advance

    Yes, there is another alternative. If you state a value type (i.e. a struct in c#) then you can tell teststand to store it in a corresponding data structure TestStand rather than an object reference variable. It works even for the private fields in your structure. To do this:

    (1) first to report a type value and no matter what other changes are needed in your code to take account of this (value types are copied when it is passed by value to another method, if this isn't what you want you will have to pass by reference - i.e. the c# ref keyword).

    (2) recompile your assembly.

    (3) in the specification of module Panel TestStand .NET, you should now see a new button next to the expression for the return value of type status resembling TestStand data type icon. Press this button and it will prompt you to create a TestStand custom data type that matches the type .NET. Select this option to save the type in the type palette file MyTypes.ini. Just do it once. Once the type is in your palette file type MyTypes.ini it will be available then and you must only update if you change the type .NET.

    (4) create a local variable of the TestStand Custom data type instead of the object reference. Note that you can expand and see the properties under.

    (5) use this new local variable to store the return value of status. TestStand will be copy/update the properties of the variable to match those of the .NET structure that the method returns.

    NOTE: You can also simply store the fields of a struct in separate variables increase the return value of type status once it is a struct and specify a separate variable for each field instead of creating a custom data type TestStand.

    Don't forget that TestStand makes a copy when you store a struct that this way replaces the struct when this will not appear in the copy.

    Hope this helps,

    -Doug

  • How to access the AAA columns and later using ExcelRowColToRange.vi

    Hello

    I have a huge database that I need to write on Excel in the first row, so I need to access the columns AAA, AAB...

    But using ExcelRowColToRange.vi I'm able to go up to column ZZ. Can someone please suggest a way to modify this VI to meet my need.

    Thank you

    Hi panka.

    try this one...

  • How to access a document via a URL using docid?

    Hello

    I check the latest version of Oracle WebCenter content. When I create documents with their DOCID I need access to these documents by using the URL like this : http://application-tier server: port/some context/DOCID. Is this possible? When you check the URL that uses Oracle WebCenter content there is no constant URL basis.


    Kind regards

    Nestor Boscan

    Hi Nestor,.

    These are examples of URL:

    Document information (metadata) - http://localhost:16200/cs/idcplg? IdcService = DOC_INFO & dID = 804 & dDocName = DocID_000806

    To get the native file - http://localhost:16200/cs/idcplg? IdcService = GET_FILE & dID = 804 & dDocName = DocID_000806 & allowInterrupt = 1

    Please note you need to know is which is the ID of the revision of the document that you are trying to recover.

    HTH

    -Anand

  • How to access my saved passwords? He used to be a "Tools" tab, but it no longer exists. I don't know how to get to my 'password manager'. I have no idea what 'sync' is or was somehow related to passwords. I have windows 7.

    I have firefox 8.0.1

    See:

  • How to access the parameters using command prompt - administrator account

    I am administrator on my machine Home premium windows 7 and tried to make a sfc/scannow command prompt, but it said that I need to run it as an administrator. I need to know how to access this setting so I can use the command prompt. Thank you.

    Steve

    When I click on

    You should right click to see the drop down menu. Right click = right button of the mouse. Click the left mouse button =.

  • How to use Plugin-Nik Software with Photoshop Creative Cloud?  I have installed the software I used with Photoshop CS6, but now that I installed CC, I don't know how to access.  Thanks for your help.

    How I used Nik Software Plugin Photoshop Creative Cloud?  I installed it on my iMac and use it with SP6, but now that I use the version of the CC of the PS, I don't know how to access the Nik.  I mainly use SilverEffex Pro for black and white conversion.  Thanks for the instructions.

    [Left the forum Cloud/Installer generic for program specific forum... MOD]

    Hello

    Please, go to the folder of the application on your Mac, find the folder of Photoshop CS 6, double-click to open it and copy the folder plugin from here.

    Open the Photoshop CC folder which will be again in the application and paste the folder plugin inside. Replace reboot of the CC of the Photoshop file and it should be there

    Thank you

  • How to access the BIOS VAIO SVE14A27CLS

    How to access the BIOS VAIO SVE14A27CLS

    Use the ASSIST button

  • How to access point password value

    I created two points where the element type is password.

    Name of the element is P1_PASS1 and P1_PASS2I

    In the PL/SQL code, I can't access the values ITEM P1_PASS1 and P1_PASS2

    I tried to debug too, but there is no value printed in the debug log.

    Actually, I want to call to a PL/SQL procedure where I need to pass the value as a variable. How to access values of these elements of password? I use 5 APEX

    Start

    wwv_flow. Debug ('test123');

    wwv_flow. Debug ('pass' |) V ('P1_PASS1'));

    p_testproc (V ('P1_PASS1'),: P1_RETVAL);

    end;

    If your problem is fixed?

  • How to access the url of the page referred by using script Idoc?

    How to access the url of the page mentioned by using Idoc script...

    For example

    If the following url (http://myhost/mysite) is called by the end-user, it redirects to the UCM login page.

    The page of connection, so I want to get their hands on the referring here (http://myhost/mysite). To do this, I followed the following documentation.

    I put IdcAuthExtraRequestParams = referer in

    /base_domain/UCM/CS/bin/intradoc.cfg and

    /base_domain/UCM/CS/config/config.cfg

    UCM server restarted and Http server.

    Used < $HTTP_REFERER$ > in my htm file. It does not display anything.

    Can I know what went wrong? Is there an alternative way to get this?

    @Jon, I saw some variables such as ssOrignialUrl have the information in the console, but they are lost when its consultation: in page.

    I pulled out the tracedump to the page itself, which gave me a new variable<$AUTH_TARGET_URL$> that contains this value.

    Thanks Jon at made me think so

  • How to access info child movieclip to an object in a table?

    Hello

    I created a whole bunch of clips dynamically.

    I gave a name based on a variable number to each item:

    MC. Name = "mc" + i;

    I also use addChild to add some dynamic text fields to each movieClip and named myText1 myText2.

    Then I push each movieClip object in a table:

    myArray.push (mc);

    When I have the movieClips addChild, they display fine, complete with each textField.  And if I use the following loop to find the name of each element of the array, I get:

    for (var i = 0; i < myArray.length; i ++)

    {

    trace (myArray [i]. (Name)

    }

    output:

    MC1

    MC2

    MC3

    MC4

    etc.

    What I want now is to be able to access text fields in each movieclip in the table.  However, I get errors when I try in different ways.  For example:

    for (var i = 0; i < myArray.length; i ++)

    {

    trace (myArray [i].myText1.Text);

    }

    gives error: a term is undefined and has no properties.

    How to access the values and the content of the children of the movieClip objects that are stored in the tables?

    Thank you

    Shaun

    For some reason, dynamically added children cannot be targeted like that.  If you have added the textfields dynamically, you may need to use the getChildByName() target.  It depends in part on how you created and whether or not you have direct access to them.  Aside from that, you can also assign the textfields to the variables that you create for the mc and target those who by their names of variables.

    These two approaches demos the following:

    var mc:MovieClip = new MovieClip();
    addChild (mc);

    var tf:TextField = new TextField();
    TF. Text = "this is the text";
    mc.addChild (tf);

    first way

    TF. Name = "tfield."
    trace (TextField (MC.getChildByName ("TField")). (Text);

    second way

    MC.tfid = tf;
    trace (MC.tfid.Text);

    You can also store the textfields in the tables are created and they have direct access to them with the need to target the mc... the index must be the same as the one you use for the mc anyway.

  • The declarative elements (DC): how to access to the #{component} out

    Hello

    I created a DC of JSF, defind an attribute on it, has added a unlimited workflow, created a bean and added to it as a backingBean.

    In the bean, I have:
        public final String getAttrValue(String attrName) {
            ExpressionFactory ef = FacesContext.getCurrentInstance().getApplication().getExpressionFactory();
            ELContext ec = FacesContext.getCurrentInstance().getELContext();
            RichDeclarativeComponent rdc = (RichDeclarativeComponent)ef.createValueExpression(ec, "#{component}", Object.class).getValue(ec);
            return (String)rdc.getAttributes().get(attrName);
        }
    The code works fine, when it is called from within the DC. But when it is called from a page of your, I get a NPE.

    I need to note that a component call the getAttrValue and the DC are in the same branch of the hierarchy, that is the calling component is inside the facet of the DC.

    All the abovesaid was done in JDEV 11.1.1.3.0.

    I think that #{component} should be changed.

    Could someone advise me how to do the code works?

    Hello

    "component" is an internal variable of the component declarative which has no visibility to the outside. To access his property of binding component using declarative and create a Set/getter accessor in a managed bean that creates an entry of type RichDeclarativeComponent. This allows you to access the component.

    Frank

Maybe you are looking for