[ADF, JDev12.1.3] How to pass tha value of an attribute of the VO at the request of a field of the VO even LOV?

Hallo,

I have a LOV associated FieldB and showed it in the popup LOV, these must be filtered according to the value of FieldA (2 fields belongs to the same TableVO VO).

The LOV associated FieldB is based on a VO that has a binding variable 'BindCodInstitute '.

I would like to know how I can assign the vuale of FieldA to the variable binding.

What expression I have co-debtors variable binding?

Thank you

Federico

also see - https://blogs.oracle.com/aramamoo/entry/how_to_create_multi_level

Tags: Java

Similar Questions

  • How to get previous value of an attribute in the VOImpl file?

    Hi all
    I want to compare if the current value of the attribute VO A1 is equal to the previous value of the A1 when the value of this attribute A1 gets changed, how to get the previous value of the A1?
    I know that in the VORowImpl file I can use this.getA1 () which returns me the current value of the A1, but I don't know how me may return the previous value?

    Appreciate your help in advance!
    Thank you
    Yvette

    getPostedAttribute the value of the attribute as it was queried from the database.
    Here is an example written in EmployeesImpl

        /**
         * Sets value as the attribute value for Salary.
         * @param value value to set the Salary
         */
        public void setSalary(BigDecimal value) {
            Object attribute = getPostedAttribute((EmployeesImpl.SALARY));
            if(attribute!=null)
                System.out.println("Attribite value " + attribute); //this will give you the value as it was in the data base before you modified it.
            else
                System.out.println("attribute value is null");
            setAttributeInternal(SALARY, value);
        }
    
  • [ADF, JDev12.1.3] How to pass an Integer value sets to a workflow, and then it reads a bean?

    Hallo,

    for a test, I need to set the value of an entry of a stubborn workflow used as dialog...

    Then in the bean that is associated with a known fragment of the btf, I need to read the value, so I used this code...

    Integer protocol = (Integer) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("protocol");
    

    This exception triggers...

    javax.el.ELException: java.lang.ClassCastException: java.lang.Long cannot be cast java.lang.Integer

    What's wrong?

    Thank you

    Federico

    If I remember correctly, in JSF that EL has Long type so this probably also applies to ADF.

    For example, you can cast a Long or you can use the type field (from some managed bean) an integer as an input parameter.

    Dario

  • How to pass a value to a variable at the time of the execution of the script

    Hi all

    I need to establish an ODI scenario, with below requriments.

    I have to move the data from flat file to target DB.

    flat file name is not consistent, it must pass the file at the time of the excution of scenario name.

    All could help me how to build this ODI scenario.

    Appreciate your help.

    In the data store where the filename in the "name of the resource', you enter a variable #myVar

    You must recompile your script after that this change was made.

    And when you run the script, follow the «-Project.myVar=c:\filename.txt settings.

    Probably, this link may help you http://blogs.oracle.com/dataintegration/2009/04/using_parameters_in_odi_the_dy_1.html

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • How to pass multiple values of payload through the contextual event - jdev 11.1.2.3

    Hello:

    How to configure contextual events publish several values of payload?

    On click of a button, I'm declaritively publish a contextual event, which works very well when a single value is passed to the event handler.

    My event handler method has the signature of:
    eventHandler (String)

    But now I also have an oracle.jbo.domain.Number, so my new eventHandler looks like this:
    eventHandler (Number, String)

    How to pass two values during editing of the event and how to place the payload with multiple values for the new eventHandler?

    All article or code would be greatly appreciated.

    Thanks for the help.

    You define a bean holding your values and pass an instance of the bean as a payload...

    Timo

  • How to pass a value LOV to where clause of another LOV

    Hello

    I have the two LOV project and activity. When I select a value of project LOV this value project to switch to the 2nd activity LOV where clause. How can I achieve this.

    I tried to use the code in the process CO request by getting the value of project with the command below.

    int v_project = Integer.parseInt ((String) passiveCriteria.get ('Project')); grab the critirea project

    and set this value in the setwhereclauseparams of the VO LOV. But the above command is throwing an exception with the exception of null pointer.

    This approach is correct, or should I use any other method.

    Thank you
    HC

    Below you will find the article interesting

    http://oracleanil.blogspot.com/2010/12/dependent-lov-in-OAF.html

    Thank you
    AJ

  • How can I do each new tab go to the homepage even when I open it?

    How can I do each new tab go to the homepage even when I open it? I want that every new tab automatically go to my iGoogle page.

    See: https://addons.mozilla.org/en-US/firefox/addon/2221

  • How to display a value of transitional attribute to column db entity column?

    Mr President

    Help me at the time 12.2.1 jdev.

    How to display a value of transitional attribute to column db entity column?

    I have the requirement to indicate a value of transitional attribute column in the column db entity for some reason any.

    Any body can help as my show in the picture below

    The StAmt is a transitional column and a column db of the entity.

    tworows.png

    Any body can help please. !

    Concerning

    This means that the amount to be the attribute will always has the same value of the transient attribute? If so, why do you want the amount attribute the transient attribute is sufficient?

    Anyway, if you want to get attribute data in attribute transitional amounts you can open class ViewRowImpl and appearing in the getter or amount, you can get the value in the transitional as attribute:

      public Number getAmount()
      {
        return getTransientAttribute();
        //return (Number) getAttributeInternal(AMOUNT);
      }
    

    in this case, the quantity data store database will not appear on the table it will still get the transitional attribute data and it's meaningless.

  • E passing jQuery amount of an attribute in the model of the virtual machine

    I have a requirement in which I need to pass the value of an attribute in the jQuery code is called from the goalcontrol.vm file, that anyone can share the same syntax

    Gauruv,

    This should be a fairly simple task. As long as you can identify the attribute wished, you should be able to replace it in a Jquery script using speed simple substitution by. All the values that appear on determinations Web pages are available in the context of the speed. Velocity substituted values until the page is rendered, then any substitution will be before the Jquery code execution

    For example;

    Some Jquery code

    ...

    myval var = ${speed-name};

    ...

    You can see an example in the model of javascript - utlities.vm (./WEB-INF/classes/templates/includes) file where the next substitution is made on line 40

    var targetDepth = ${decision-report-by default-depth};

    In this case the value ${decision-report-by default-depth} is inserted in the Jquery as the var targetDepth. The Jquery will see this as a simple statement, something like

    var targetDepth = 4;

    Hope this helps

    See you soon

    Frank

  • [ADF, JDev12.1.3] How to hide the LOV "magnifying glass" through a bean managed?

    Hallo,

    I want to hide the "magnifying glass" to a field LOV.

    This is possible only by using a CSS approach like this Ashish Awasthi (Jdev/ADF) Blog: search to hide from af icon: inputListOfValues using CSS & StyleClass-Oracle ADF?

    Since then, I need to calculate in a bean managed if the magnifying glass must be hidden or not... I would like to know if there is an appproach simple and clean alternative.

    Thank you

    Federico

    Hi Federico,.

    You can use the same approach, as mentioned in the blog. Just you need not set the StyleClass on the page.

    In the method of bean managed when you calculate that there should be no magnifying glass, then get the reference to lov and set its styleclass (LOV.setStyleClass) and refresh the LOV.

    This way you can conditionally hide and display magnifying glass.

    Thank you

  • [ADF, JDev12.1.3 how custom "entry LOV"?

    Hallo,

    The LOV is based on a query-based (only a db table is used in the query) VO.

    1. Is it possible to set the height and width of the pop-up window of the LOV?
    2. Is it possible to make the search fields in the pop-up of the LOV resistanc case?
    3. My LOV returns another 3 values that I have (in config LOV) associtated to 3 inputText fields. When I confirm the choiche made in the LOV, 4 fields in total are met. If I write in the 'main' textFIeld a non-existent value, validation happens. But if I change the other 3 values validation does not occur. I wish that the user can write in 4 fields but the inputText must be validated as group/record.

    For example, the VO on which is based the LOV is a query that returns these records (the field in bold is the main dedined as LOV):

    1, one, I

    2 twoII

    3, three, III

    If the user chooses "one" in love, we have:

    inputText1.value = '1 '.

    inputText2.value = 'a '.

    inputText3.value = 'I '.

    But the user can change all fields and notification occurs only if the value of continains of inputText2.value one does not exist.

    Such a situation not to raise any notification:

    inputText1.value = '1_.

    inputText2.value = 'a '.

    inputText3.value = 'Xe!

    4 instead of this, if I want the inputTexts can be filled only by choiching a record in the LOV... What configs do I care?

    5. can I base without problem entry LOV 5-6 on the same VO? Or each must have its own VO LOV?

    Thank you

    Federico

    Hi Federico

    To resize popup dialog - ADF practice: resizing of research and dialogue components LOV

    To make case insensitive searching, check ignore case checkbox in viewCriteria

    See -for JDeveloper & ADF af:inputListOfValues: enable case-insensitive search | JDev & ADF Goodies

    Yes, you can use VO even create several lov, just create a new acceessor for each lov

    or disable other fields so that the user will not be able to change the value of inputtexts

    Thank you

  • How to pass variable from bean to resourceID for the document map?

    Hello experts, I have added WebCenter workflow Microsoft document explore task in my ADF which as a parameter called resourceId.   I want to pass variable bean to this setting, because the content ID (doc name or ID) are determined dynamically.

    When I provide ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} as a resource in the expression ID, it works very well.    But samething if I attribute to a bean bean variable and entitlement in the form ${sessionScope.MyBean.docName}, it evaluates the variable bean in the form ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} and then below throws the exception:

    [2013-10 - T 02, 14: 34:50.369 - 04:00] [DefaultServer] [WARNING] [WCS-07219] [oracle.webcenter.doclib.internal.view.backing.ContentProvider] [tid: [ASSETS].] [ExecuteThread: '10' for the queue: "(self-adjusting) weblogic.kernel.Default"] [username: anonymous] [ecid: d50192415c689920:-7d97126c:1417a5d6a49: - 8000 - 000000000000008 a, 0] [APP: CreateContactWSProxy] invalid parameter combination: the login name specified by resourceId = ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} is not specified in the parameter connectionName = UCM57Server.

    Variable bean is defined as:

    private String Nomdoc = "${" UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI "} ;

    Please give me some advice on how to pass the value to resourceId dynamically via the variable of bean.

    Thank you.

    private String Nomdoc = "UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI";

    Without $ {}

  • How to pass a value of element / from one application to another application.

    I have a a request App 'Hand' with a list on Page 1. This list has two entries in the list, all pointing / linking to different applications. The purpose of the list is set to redirect to the appropriateapplication using the f? p = & APP_ID:1: & SESSION. syntax. I put the same cookie for all three, the 'main' App and the two application sub/related, and everything it works fine.

    Now I would like to pass the variables that I put in the "hand App" to two other sub/related applications.

    I want to put in place a process of "Anonymous PL/SQL block" to be run "on load - regions front" who would name an authentication package on Page 1 of the App 'hand '. Page 1 would include 10 hidden object and the values returned by the authentication package would serve to set/fill these hidden items. I am able to access these elements and values of page 2 of the App 'hand '.

    The question is how access/reference of the elements/values defined in Page 1 of the "hand App" in another application sup/related?
    Is this possible?

    Thank you
    DP

    Hello

    To pass values using URL syntax, take a look at this:

    http://download.Oracle.com/docs/CD/B32472_01/doc/AppDev.300/b32471/concept.htm#BEIFCDGF

    If the second request that you are calling from the main application is, say, number 100, and this application page is page 1, the URL will look like this:

    f? p = 100: 1: & SESSION. : P1_ITEM1, P1_ITEM2,...: ITEMVALUE1, ITEMVALUE2,...

    P1_ITEM1, P1_ITEM2, etc., are page elements that must exist in page 1 and their values will be automatically assigned.

    On the issue of the collection, I suppose that the values are specific to a session (different users will have different values). In this case, to store the values in a table is not good unless you store the username with them, but despite this they will be specific to the user, not specific to the session. Maybe that's what you need, perhaps not... No reason why you don't want to use the collections?

    Luis

  • How to pass a value of text to another page?

    If you have a text input and a button to the page 1 how to make that value available on page 2 after clicking on the button. I created a flow of the page by clicking on the button brings me to page 2 but not sure where you get the value of input text that was on page 1.

    Thank you.

    As you can see in the code I added an inputText and a CommandButton on page1.
    I use setActionListener to pass the value of page1 page2 declaratively.
    In faces config, I created a stream of page 1 to page 2. The value 'of result' as the action attribute of the commandButton control.
    I created with an outputText page2.
    Everything you enter in page1 should appear in page 2 when you click on the CommandButton.
    Yet, you can't make it out, let me know your email id, I will send you the sample application.

Maybe you are looking for