[ADF, JDev12.1.3] Attribute of EO: uncheck the required box does not reflect on VO (here, it is necessary to change the prop in the bat VO XML). Why?

Hallo,

I noticed that when in an OE I uncheck the required box for a field...

... do not reflect the changes on the ground of the VO...

As in the definitions of the VO, the check box is cleared, the only way to make the non-mandatory field is manually change the scope of the definition XML VO...

I would like if this approach is normal.

Thank you

Federico

I can reproduce this behavior. Fortunately, it is only a display bug. When you run the application the object entity attribute cancels the incorrectly set required field of the VO.

A user may be confused by this setting, even if it is only a Visual problem, I will file a bug on the ADFEMG issue tracker. WARNING: this incident handler has no attached SLA. If you need a patch for this that you must file a SR with support.oracle.com (paid the necessary support contract).

Timo

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] Attribute Transient VO be calculated in different ways as a var pageFlowScope: how?

    Hallo,

    I have a jspx page that contains an af:table (created from an instance of VO) and search (built-by-me) form containing a lot of search filters.

    The request of the VO should be composed dynamically based on the values of the search filters then in the managed bean that is associated with the page, I use this approach to create and run the query that fills the af: table:

        ArrayList<Object> queryParams = new ArrayList<Object>();
        StringBuilder query = new StringBuilder();
        BindingContext bctx = BindingContext.getCurrent();
        BindingContainer bindings = bctx.getCurrentBindingsEntry();
        DCIteratorBinding iteratorBind = (DCIteratorBinding) bindings.get("SearchItems1Iterator");
        ViewObject vo = iteratorBind.getViewObject();
        query.append("Select Field1, Field2, ..., FiledX from Table");
        /*
          Here I build the SQL of the query and the list of params in function of the filters, of session vars and of pageFlowScope vars
        */
        MyUtilsClass.modifyQueryDynamically((SearchItemsVOImpl) vo, query.toString());
        vo.setWhereClauseParams(queryParams.toArray());
        vo.executeQuery();
    
    
    

    In the t, I defined a transitory attribute that must be calculated in 2 different ways according to a var. pagepageFlowScope

    Calculation of transient attribute in the definition of VO by an expression Groovy does not help because 1) should be able to read the value of pagepageFlowScope var or 2) in the managed bean should I be able to change the Groovy used to calc the attribute expression.

    But I don't know if and how it is possible to do these things

    Also calculate the value in the getMyTransientAttribute() of the VORowImpl class method helped me because I should pass the pageFlowScope var to the method somehow that I don't know.

    You kindly suggest me a method to solve this problem?

    Thank you

    Federico

    You can't build the query in the way in which you want to calculate the transient attribute?

    Then, you don't need to change anything.

    Timo

  • [ADF, JDev12.1.3] How/where to set the session timeout

    Hallo,

    After a few minutes of inactivity, the browser displays a message to inform that the session is not more active and only OK been must be clicked to refresh the page.

    If a dialog box "btf" has been opened on the left, it becomes...

    I would like to know what is the right place/method to set a deadline.

    If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).

    The application of ADF Essentials and is deployed to the GlassFish application server.

    My concern is... what should happen to the open operation / pending when the time-out occurs?

    For example, the user is modifying an af:table but it has not clicked validate or cancel...

    Thank you

    Federico

    I would like to know what is the right place/method to set a deadline.

    For java web applications, you can set the session timeout in the web.xml file. (this is the global settings associated with all sessions)

    If you wish, you can set the timeout of session by program (and this is related only to the current http session).

    If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).

    http://fortunefusionminds.blogspot.com/2014/04/how-to-redirect-to-custom-page-whenever.html

    ADF: Session expires management redirect to login page | Bungbutan

    ADF developers World: Detection and handling of user session expiry

    My concern is... what should happen to the open operation / pending when the time-out occurs?

    Well, session is destroyed, it will destroy all instances of AM and do rollback.

    See also: Andrejus Baranovskis Blog: ADF BC Application Module Instance Timeout and reliance Timeout of Session Web

    Dario

  • [ADF, JDev12.1.3] How to embellish (style) the af: menuBar?

    Hallo,

    in the homepage of my request, there is a menu bar.

    His style is similar to that I can find in a desktop application.

    I would like to know if there is some CSSs well made to beautify the menu bar and give it a style a little more closely the style of web.

    Thank you

    Federico

    Federico, Google is your friend!

    The problem is that you cannot copy just part of the skin. A defined appearance the identity of your application. It should be defined in sound together and not only at certain times.

    There are a couple of good tutorials available (again Google it) and you must use the skin editor that allows you to see what changes you make are looking in the application.

    Watch http://m.youtube.com/watch?v=QEfOpHtkXyI

    Start: Oracle ADF Skin Editor 12 c (12.1.2)

    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_learn_adf_skinning

    For ux Oracle RCUI Guidelines guidelines

    And you use 12.1.3 http://www.oracle.com/webfolder/ux/middleware/alta/index.html might also interest you

    Timo

  • [ADF, JDev12.1.3] master / detail af:tables the link is handled by ExecuteWithParams: how to create a master report / detail in a loop on the lines?

    Hallo,

    I have a page with 2 legs and they both contains an af:table created by dragging an instance of VO in the user interface.

    The 1st tab uses a master VO while the 2nd uses a VO detail.

    Between 2 your, there is not a link of VO master / detail.

    Opening Details tab I update the secondary table by calling the method ExecuteWithParams of the detail VO instance (in a managed bean).

    I would now like to generate a report that loop on the master table and that, for each line of master:

    • He writes in the report;
    • loops of registration of details (which are based on the master record) and also writes the report.


    Could you kindly suggest me which is the best way to achieve that through a code to write in a managed bean?

    Here I am interested how do to loop through the data, not in how to write the report.

    Thank you

    Federico

    Yes it will affect the selected line. If you want to ignore try using this code

        DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("DepartmentsView1Iterator");
        ViewObject vo = iter.getViewObject();
        for (int i = 0; i < vo.getEstimatedRowCount(); i++)
        {
          Row r = vo.getRowAtRangeIndex(i);
          System.out.println("DeptId= " + r.getAttribute("DepartmentId"));
        }
    
  • [ADF, JDev12.1.3] step-recording-shape built with fragments: validation should not happen when you click on the "back" button

    Hallo,

    I have a btf containing fragments of 4 in the order who are at the stage of the registration form.

    Each fragment contained fields for the same instance of VO. the points of the fields is managed through the property Required for the APP.

    Each fragment has a front and a "back" button to go to the next/previous step (buttonthe Action property is set to the name of the species of specific control flow).

    In each fragment of the automatic validation - occurs when the user clicks the next button if the form is not well filled. It is very good.

    The problem is that validation also occurs when the user clicks the back button: in this case the validation should not happen.

    How can I achieve this?

    Thank you

    Federico

    Have you attempted to immediately assign = true on the "back" button?

    Dario

  • [ADF, JDev12.1.3] How to get programmatically the value of a field of VO of detail while accessing the master istance VO?

    Hallo,

    I have a master VO based on entities and a retail entity based VO to which JDev automatically created a link display (1 to 1 relationship).

    In the request Module I programmatically access MasterVO and I would like to get the value of a field of DetailVO...

    ViewObject vo = getMaster1();
    RowSetIterator iterator = vo.createRowSetIterator(null);
    iterator.reset();
    if (iterator.hasNext()) {
      MasterVORowImpl row = (MasterVORowImpl) iterator.next();
      System.out.println(row.getField1);
      System.out.println(row.getField2);
      // ...
      System.out.println( <DetailVO.Field1> ); // How to...?
      // ...
      }
    iterator.closeRowSetIterator();
    

    How can I achieve this?

    Thank you

    Federico

    In MasterVORowImpl should be getter for the detail rows (if you selected "Include the accessors" option when you generated class MasterVORowImpl).

    Dario

  • [ADF, JDev12.1.3.] Where I save the managed bean used by a fragment? Main stream unlimited task or btf?

    Hallo,

    I have a fragment for which I created a managed bean extended backingBean.

    My doubt is where I save this bean.

    In the main stream task without terminals? Or in the stubborn workflow in which the frament is used?

    Thank you

    Federico

    In the BTF where the fragment is used!

  • The values of attributes and tag at the same time XML access

    Hi all,

    I do a few experiments with Flex, but I already have some experience with Flash and AS3.

    What I try to do, is to make a small application that uses the Web services of the Weather Channel. The first part of the request is to ask the user for his location. Then the location is sent to the Web service and the system returns a XML document with possible matches. The user chooses one, and weather information are displayed.

    I have no problem with navigation, or passing results from one stage to the other, but I'm having a problem, I think it's an easy fix, but I can't get a light or an answer from what I've seen of these forums or webasites... I suspect it's because the format of the XML that is returned.

    For example, my request is this: http://XOAP.weather.com/search/search?where=Aveiro

    wich return two possible locations, in this way:

    < Search worm = "3.0" >
    < loc id = "BRXX1094" type = "1" > Aveiro, Brazil < / loc >
    < loc id = "POXX0006" type = "1" > Aveiro, Portugal < / loc >
    < / Search >

    Well, I want to display in a Datagrid control in the 'id' attribute and the 'loc' tag value, that is, "Aveiro, Brazil" and "Aveiro, Portugal.

    I set the DataGrid like this:

    < mx:DataGrid x = "10" y = "53" width = "365" id = "dgLocation" dataProvider = "{wSearch.lastResult.loc}"itemClick = "callService (event)"; > "
    < mx:columns >
    < mx:DataGridColumn headerText = "Localidade" dataField = "loc" / >
    < mx:DataGridColumn headerText = "Reference" dataField="@id"/ >
    < / mx:columns >
    < / mx:DataGrid >

    In the 'col' dataField, shows nothing, and the "@id" shows the correct information. Because I don't have that 'loc' tag in the main root tag, how can I get the values of teir? With labelFunction? How you would write it for the information?

    This is my last try:

    private void getLocationName(item:Object,_column:DataGridColumn):String {}
    var xmlitem:XML = XML (item);
    trace (XMLItem.loc.ToXmlString ());
    Return item.loc;
    }

    Any ideas are welcome. Thank you.

    This seems to work:

    
    
      
        
      
      
      
        
          
          
        
      
    
    

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Flex / development, training, AIR and Support Services

  • Hide the line of adf table based on the transient attribute does not

    I have a JSF page where the user can insert new line in View object . this View object contains a transitional attribute which indicates whether or not the record is newly created.

    On the same page, I have a table adf which is bounded on the city view object . This table should show only newly created records. my approach is to use expression language of in the renditions property to hide all the other lines that are not newly created. I changed the render property for the columns of the table as: rendered="#{row.bindings.RowStatus.inputValue eq'new'}" , but the table does not show anything.

    Then, I tried to change the made not for the column property, but to the outputText inside the same way. It worked, but the problem is that the blank line is always on display.

    So, basically because I do not hide the entire line, instead I'm hiding the text in the lines and lines with spaces empty is still on display in the page aside.

    The Table of JSF page where the made property is applied on outputText inside the column:

    <af:table value="#{bindings.UplodedFilesView1.collectionModel}" var="row"
      rows
    ="#{bindings.UplodedFilesView1.rangeSize}"
      binding
    ="#{CreatSR_UserBean.fileTable}">

      
    <af:column sortProperty="#{bindings.UplodedFilesView1.hints.FileName.name}"
      headerText
    ="File Name" id="c1">

      
    <af:outputText value="#{row.bindings.FileName.inputValue}" id="it1"
      rendered
    ="#{row.bindings.RowStatus.inputValue eq'new'}"/>

      
    </af:column>

      
    </af:table>

    I use Jdeveloper with ADF technology 11.1.2.3

    Thanks Timo,

    You are right. Its to late to hide lines after stamping in the row set. I solve the problem by filtering the view object, based on the transitional attribute in the section of liaison page. The steps as follows: (assuming that the object from view with the temporary attribute has been created, and the transient attribute contains the filtered values)

    1. Drag the view object on the page and also make the Table (in my case it might otherwise listen)
    2. On the page, go to the connection tab.
    3. Double-click the object desired in the links column.
    4. New window will appear titled with (change the binding tree)
    5. Check the option (enable filtering)
    6. Select the (filter attribute) and (filter value) for the selected filter attribute.
    7. Select (Display attribute) you want to appear in the page.
    8. Press OK
  • [ADF, JDev12.1.3] Page of the input parameters: 1) expression for a value of type enum? (2) can they be used to initialize CIU?

    Hallo,

    I have a backingBean extended myBean bean 'associate' to a page fragment used in a stubborn workflow.

    I want to declare to the fragment in the settings of btf 2 who have a fixed value. Their values should be copied in 2 myBeanattributes.

    An attribute is Boolean, and I guess it does not give any problem, but the other is to an enum type that is defined in the myBean bean itself.

    I have to write in "value *" pass the enum value to var enum in myBean?

    And if the "value *" have been a public static final string of a Java class in the application Module which expression I should use?

    I would like to use parameters of entry Page to initialize (hide, show,...) in myBean some component of the user interface in the page fragment? Is this possible without intervention in any problem? Can kindlu give you some tips to achieve this?

    Thank you

    Federico

    It also works with range backingBean?

    I don't know (I just created a few vars inside managed bean in my application of playground).

    The fragment contains a search with table form and it's always the same, whereas the bean (containing the search called action when the user clicks on the button 'Search') should take the page settings to compose the search query according to them.

    Yes, but that are not exactly 'page settings' because you retrieve the values of the url of the page, right?

    In conclusion, the problem is that I should switch to the different settings depending on the btf bean where the fragment is used.

    You have a better idea to achieve this?

    Then why you are not using the BTF settings (they will be in pageFlowScope)

    Dario

  • ADF Mobile Graphics DVT - Zoom does not work

    Hello

    I have developed a mobile Application using JDeveoper 11.1.2.4.0. It has graphics of DVT. The tables are correctly displayed, but I am unable to zoom their Android device.

    I use Android 4.1.2 platform.

    Am I missing something?

    Thank you

    Mehabub

    Hello Mehabub,

    Tables of PST in ADF Mobile 1.1 (with JDeveloper 11.1.2.4.0) does not support zoom and scroll. The features of zoom & scroll will be available in the next version of the Mobile Application infrastructure.

    Kind regards

    -Jan

  • [ADF, JDev12.1.3] Problem of formatting attribute VO MONEY when exports it as an Excel file using apache.poi

    Hallo,

    I have a VO with an attribute based on the field of database of MONEY.

    In the configuration of the VO for the attribute I put:

    • In the "Details" tab: Type = BigDecimal
    • In the "Indications of the UI" tab: Format type and Type like the image below

    Immagine.png

    These settings allow the value of the attribute (in the table, inputText) appears with thousands and decimal separator that according to my language - Italian - are. (point) and, (comma).

    For example. Silver number displayed correctly:

    10.123.000,37

    When I write the value of the attribute in an Excel cell using apache.poi...

    cell.setCellValue (attr.toString ());

    ... I see in the cell...

    10123000.3700

    ... Although I'd like to see what...

    10123000,37 (not thousands separator, the comma as separator decimal and only 2 decimal places)


    You could you kindly help me to get there?

    Thank you

    Federico

    Federico, this isn't really a question JDev or ADF. This can be solved by setting the cell format to the cell, you write the number. Like oyu would in excel

    style.setDataFormat(HSSFDataFormat.getBuiltinFormat("#,##0.00"));

    more info on HSSFDataFormat (javadocexamples.COM JAVA DOC BY EXAMPLES) - API, usage, demonstrations and code examples

    Timo

  • [ADF, JDev12.1.3] How to set the value of an attribute of VO 'max (attribute) + 1' when creating a new record?

    Hallo,

    I have a VO that selects records from a table databace where FkId = < value >.

    For example: this is the database table...

    ID RowDetNumber OtherFields FkId

    1   3     1            ...

    2   3     2            ...

    3   3     3            ...

    4   3     4            ...

    5   4     1            ...         |

    6   4     2            ...         | -VO selects these records (where FkId = 4 for example)

    7   4     3            ...         |

    8   5     1            ...

    9   5     2            ...

    When a new record is created the field RowDetNumber must be calculated with the logic of the max (RowDetNumber) + 1.

    So for the example above, the calculated value should be 3 + 1 = 4.

    I would like to know how I can calculate the value and assign to the RowDetNumber attribute.

    I did some experiments using a Groovy expression as a default value for the field, but I got only errors.

    I'm a bit confused on how I can do so a few details / examples / tips are welcome

    In particular, a small example for every possible approach would be happy.

    Thank you

    Federico

    Federico, the solution mentioned in the block will work as it only generates unique numbers without guarantee that the generated numbers are without flaw. However, if you want to use max + 1 this normally means you want to have a sequence without gap. It is very very complicated in nature. It doesn't matter what application you're trying, there is almost always room for error, ending with duplicate numbers.

    The trigger also works as the DB supports triggers on MS SQL.

    If you don't need a number of gap-less for the attribute, you can use the groovy solution and just get a number of a sequence is is guaranteed unique and greater value, like the last number that you asked of the sequence. In this way, you can have the sorted records

    ID RowDetNumber OtherFields FkId

    1  3    1            ...

    2  3    7            ...

    3  3    9            ...

    4  3    10            ...

    5  4    3            ...        |

    6  4    5            ...        | -VO selects these records (where FkId = 4 for example)

    7  4    12            ...        |

    8  5    4            ...

    9  5    6            ...

    Timo

  • [ADF, JDev12.1.3] Which is the best way to define the properties of CIU/fragments of pages. Is the approach that I have used a good choice (for a beginner)?

    Hallo,

    in my app, that I have a lot of pages and fragments in which properties (for example rendered text, disabled, Selected,...), lots of user interface components must be set, before/when the page is displayed, depending on the session and pageFlow scope attributes.

    So far I have created for each page/one backingBean brought bean fragment in which I defined an attribute for each property defined (e.g. 2 properties for each UIC: UIC is 10...) "I have 20 attributes to manage in the bean).

    Then, I linked each attribute of the bean to the respective UIC property. You can see in this my thread (unfortunately without answers ) [ADF, JDev12.1.3] backingBean bean: a lot of properties to set for lots of CIU... is better by using the properties of the binding or access code (created by ID) UIC? a small example. I put the attributes the bean Builder (or in a function of 'action' if the APP properties must be set based on the interaction of the user).

    I would like to know:

    • If it is a good approach / recommended / safe or if there is a better way;
    • If the scope backingBean is OK, or if a larger scope would be better.

    As I asked in the thread in the link above, the situation can become difficult to manage if the PPP for which setting, properties are very different.

    So I'd like if there is no alternative that I can use to get the same result with less effort.

    For example, using the class ComponentReference or invokeOnComponentAPI could simplify my life? And their use could I always use backingBean brought beans?

    Thank you

    Federico

    Federico, please understand that this forum has no sla. I have other work to do, who pays my bills. I will do my best to help, but you can not expect the instant replay.

    (1) you must not use the bean to init your beans. You can delay load or init your beans instead.

    (2) as Frank and says you can use a bean to view range and use it to make your calculations as long as you know how their parameters go to the btf

    (3) you should always use the reference of the component if you bind a component to a bean. Make a habit of all scopes.

    As we do not know how you calculate the State and how often it changes while the Working Group is on the page, it is difficult to give further advice.

    Timo

Maybe you are looking for