[ADF, JDev12.1.3] ReadOnly page with fields of 60-80 of many reading queries. Best approach?

Hallo,

I need to create a page of jspx in a btf mono-page I'll run as dialog.

The problem is that this page read-only contains 60 to 80 fields read from many different queries.

The queries will be used only on this page, and I doubt if it is better:

  • Create a VO for each query, and then use the VO istances page

or

  • Create a method in the AM that runs all applications and which returns all fields

Each query has some params-using the 1st solution - I do not know for example if in the btf, before the page, I can place much executeWithParams methodCalls.

Any advice is welcome, thank you.

Federico

Federico, you can use several run with Péan calls, one after the other, in a working group.  I have personally not to use another object that contains all the attributes because it would mean all copy and modify this object whenever a change queries. And you see in the user interface, source of each attribute.

Timo

Tags: Java

Similar Questions

  • How to print only pages with field data

    Hypothetical scenario:

    I have a doc with 10 pages, and each page has 10 fields.  These 10 fields, I would to implement a solution when the document is printed:

    1. a script that analyzes the first field in each page, if the value of! = null then include this page in the print operation, or

    2 script scans all fields on each review page for the first field with data (among the 10 fields). If one of the 10 has areas of data, then include this page for the print operation. I-frame, this would be some kind of script loop (for, while, etc.)

    I'd love to run the #2 option, but it should be #1 if it's easier to implement.

    I sincerely thank anyone in advance for any advice, suggestions or recommendations.

    Hello

    Take a look at an example here: http://assure.ly/MzX1bK. This will satisfy option 2.

    Hope that helps,

    Niall

  • Jdev 11G ADF BC: user leaves the page with a dirty transation?

    Hello

    A web application from merger is created using Jdev 11 G (Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407). An adf - config.xml is created with a unlimited workflow with 2 tab pages. A page template is also used in this application.

    The first tab is a query with results, has a criteria of the query at the top, and a master set of results below detail.

    When the user finds the master record to the right and details, they click on 'Edit' tab to make a few changes to the game on the Edit tab.

    Under the tab edit, there are 2 buttons - 'submit' and 'Cancel '.
    Submission is a save and validation, which is made on the side server, because I want to save the selected after registration and validation (commitAndKeepingCurrentRow()) record.

    The Cancel button is a reset button in case the user does not want to save the changes that they "ve done and want to get out.

    My question is:
    When a user makes a few changes and do not click on 'Submit' or 'Cancel' and try to leave change page, how can I know? There is a "isDirty" method that can be said in time the transaction is dirty. When should I call it?

    Thank you very much

    Annie

    Discover the design model of unsaved changes:
    http://www.Oracle.com/technology/products/ADF/patterns/11.1.1.1.0/UnsavedDataWarning.html

  • [ADF, JDev12.1.3] ReadOnly af:table via edit form: why it is not refresh after insert/change?

    Hallo,

    in a tab, I have an af:table readonly manipulated by a form (as long as they are created from the same distance VO).

    The shape is a btf used as dialog box.

    The problem is that when the dialog box is closed the display: table isn't refresh.

    To see the update I need for example to change tab and re - enter the tab.

    In a previous thread Timo told me that maybe I need to update the iterator of FY: table.

    I opened this new topic because I'd like to understand who is safe and recommended to make way.

    The code handles the bean home dialog box 'appeal' is...

      public void onEditEmplFormReturn(ReturnEvent returnEvent) {
        Object confirmOrCancel = returnEvent.getReturnValue();
        if (((String) confirmOrCancel).equals("cancel")) {
          BindingsUtils.restoreAdfmSavePoint("EmployeesSavePoint");
        }
        else {
          // Code to refresh the table/iterator
        }
      }
    

    How can I fill it?

    Thank you

    Federico

    You can link your bean table or get it from ViewRoot by id, and then use: AdfFacesContext.getCurrentInstance () .addPartialTarget (yourTableComponent);

    Dario

  • [ADF, JDev12.1.3] See criteria with binding var used repeatedly: how to display its filter only once in queryPanel/LOV?

    Hallo,

    I created my VO this view criteria...

    I see filed research associated with the binding var only once when I used the VC for a LOV...

    You kindly help me?

    Thank you

    Federico

    Game rendering mode = never for one of these elements of vc:

  • Is there a option of zoon of the Web pages with Mozilla Firefox, if I have trouble reading the small print?

    I take a class any web business, and I can't find a lot of the functions that they speak.

    Hello
    Have you tried the Firefox zoom feature? This initiative will increase the size of the web pages.

    • To make things bigger, press Ctrl and + at the same time.
    • To make things smaller, press Ctrl and - at the same time.
    • Pour reinitialiser to reset the size of return to normal, press Ctrl and 0 at the same time.

    You can also use the NoSquint add-on to change the zoom level by default for all websites at the same time. After setting your overall zoom level, you can still adjust the zoom on different sites.

    With the help of NoSquint:

    1. After installation of NoSquint, make sure you have the add-on bar displayed:

      • Click the new tab button ("+") or a box empty bar tab to the right of the item and choose the module bar on the shortcut menu.
    2. Click on the % in the bar of the add-on call site preferences, then click the global settings button, then the zoom tab.
      • You can experiment with sizes greater than 125%, but it is not recommended that you will more than 150%, unless you have a large screen high resolution.

    If there are sites that are still a concern, feel free to post their URLs.

    Please let us know if this helped you!

    Thank you.

  • [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

  • Page master readOnly or protected fields always opens to page 2 of the PDF

    I have a fluid shape that I added some textfields to the Master Page to have on each page.

    I put the global linking for the filling of form fields can be accessed from any page.  It works very well, fill in the fields and the changes to the fields appear on each page.

    The problem: I need to lock these fields after submit.

    I added the JavaScript code in the reference material at my submit button that detects and sets the access to all page fields of body 'read-only '.  No problem with this script.

    I'm not an experienced writer of JavaScript, in order to lock the fields on the master page, I put each field individually to "readOnly".

    It works fine on page 1 of the final PDF, the fields are locked.

    On page 2, however, the fields are always available.  In fact, change the values in the page 2 fields also change values in the fields in page locked 1.

    I tried using the relative and the absolute som SOM to change the property but no change in the results.

    I also tried changing the 'readOnly' property 'protected' with no change in results.

    Can someone tell me what I am doing wrong?

    Hello

    Each master page has own number.

    To lock the second master page, you need to access it correctly, you can try a script like this:

    main.pageSet [0] .yourMasterPageName [index].filedName.access = "readOnly".

    index - index of the page master from 0. In your case it shoul be 1.

    Each master page has own number.

    Best reagards,

    Paul Бутенко

  • [ADF, JDev12.1.3] Call ExecuteWithParams operations programmatically when the page is loaded. How...?

    Hallo,

    in a working group, I have a 'readonly' page that uses in many istances VO (for fields, tables,...).

    When the page is loaded, I need to call its ExecuteWithParams operation for each VO.

    I would drag / drop (cascading) the operation of each VO ExecuteWithParams in the workflow, but the problem is that I need to run logic to call.

    For example, I have some cases in which I have to exec VO, and then pass the value of a field in the returned to the VO ExecuteWithParams, another record.

    I guess I can't manage this 'declarative' in the taskflow but I use code in a managed bean.

    So far, I've added for each VO ExecuteWithParams action page links.

    I know I can use a code like this to call the ExecuteWithParams for each VO...

    OperationBinding operationBinding = BindingsUtils.getBindings().getOperationBinding("ExecuteWithParamsToCall");
    operationBinding.getParamsMap().putAll(paramsMap);
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
      return false;
      }
    

    ... but the problem is... where and when I call?

    I wrote in the managed bean extended view a public function initPage() tha called the ExecuteWithParams.

    How to use this function?

    I can use it during the lazy fo page load?

    Can I use it as a method call to place in the working group before the page? I have to admit that I already tried that way, but it did not work...

    In addition, after calling a VO ExecuteWithParams, as I said before, I may have the need to treat the VO after his execution to gather values for some fields (I'll pass these values to the other VO ExecuteWithParams).

    Can I access the iterator from the bean by using the iterator binding?

    Thank you very much

    Federico

    Instead, I have to create it in the the methodCall1 pageDef?

    Yes

    And if methodCall1 calls - as in my case - the function of a bean that uses the ExecuteWithParams many istances VO... I create all the necessary links in the methodCall1 pageDef?

    Yes

    And Yes... Links ExecuteWithParams that I created in the page untitled1 aren't necessary?

    Once again Yes (except if you do not have to invoke to untitled1 page)

    If you have 2 minutes trying to download the app, so you'll have is that I was

    I have more than 2 minutes (I hope), but I did not immediately jdev

    Dario

  • How to display the new page with HTML, click the ADF

    I have an ADF page with a button.

    When I click that button, I call a method in backing bean that calculate a string that is HTML. I want to make this HTML as a new page in the same window of the browser as a result button click.

    How do I do that?

    I can also call a methodCall to task flow on a button click. But my next page should be a new HTML page including the calculation in the method call.

    You can convert the calling method in a servlet - your ADF page calls the servlet that returns the HTML code - this may be as a separate page using an af:goLink to call the servlet or it can be included in an af:inlineFrame in your page.

    Another option is to return the HTML string as the value for an af:outputText and the attribute of the escape of this element the value false.

  • Dynamically, use page number in the form on the pages with their field?

    I have a form with pages having engineered.  JS for spawning exception works very well.  However, a text field on model is driving me crazy.  I wish that this field ("CaseNum") to dynamically display the page number, given that the page number also matches the file number.  On templage ("getcase"), I can calculate the value for CaseNum using custom script calc (event.value = this. PageNum).  But it does not work because each page having spawned Gets the same value (that is to say, what is the latest issue of the page generated). I also tried the JS below, using P0.getcase.CaseNum as the field on the model in which I wish the page number/box number to display:

    var this.pageNum = opaque;

    this.getField ('P' + opaque + ".getcase" + ".") CaseNum') .value = opaque;

    But it does not either, because the page automatically generated field gets the prefix of the P + .getcase page number appended to the name of the field.  Is it possible to number of dynamic page used in a form on the pages with their field?  If so, how? Note that while I try to use a dynamic file on pages with their number, it presents the same problem as dynamically displaying pages with their page numbers.  I'm a JS newbie, so any help appreciated.  I searched high and low on the web and in the forums and couldn't find the answer.  THX.

    http://forums.Adobe.com/thread/1160899

    @

    7George Johnson,.

    February 28, 2013 09:42 in reply to natelfo

    Is that what you mean?

    See also:

    http://www.PlanetPDF.com/developer/article.asp?contentid=6466

    d-template-pages-using-JavaScript-functions/ http://www.wordwizardsinc.com/blog/Finding-the-FieldName-prefix-on-Acrobat-acroform-spawne

  • [ADF, JDev12.1.3] When you use create/restoreSavepoint... Restore operation is still useful? And other doubts...

    Hallo,

    Dario and Timo advised me (in this thread Re: [ADF, JDev12.1.3] Master w/playback af:form only af:tables detail: how to handle insert and edit through forms?) I make a request using the functions create/restoreSavpoint to this fragment in my application.

    The tables are read-only, and the user can insert and modify records by a form of popup.

    Each table has its own pop-up that I created using a btf executed as diaolog (*).

    Before I open the popup, I create the backup point.

    BindingContext bctx = BindingContext.getCurrent();  
    DCDataControl dcDataControl = bctx.getDefaultDataControl();  
    String sph = (String) dcDataControl.createSavepoint();  
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("AdfmSavePoint", sph); 
    

    When the popup is closed, I restore the backup point if the Cancel button was clicked...

    Object confirmOrCancel = returnEvent.getReturnValue();  
    if (((String) confirmOrCancel).equals("cancel")) {  
      String sph = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AdfmSavePoint");  
      BindingContext bctx = BindingContext.getCurrent();  
      DCDataControl dcDataControl = bctx.getDefaultDataControl();  
      dcDataControl.restoreSavepoint(sph);  
    } 
    

    I have these doubts:

    1. the button "CANCEL ALL" (so far) AM restore operation is still meaningful (is always useful) when you use the check points? Or can I avoid using the restore of the AM operation, creating a backup point before you enter the fragment and restore it if the user clicks on "RESTORE ALL"?
    2. for all tables: before opening the popup insert/change the backup point is implemented pageFlowScope under the same key 'AdfmSavePoint '. Is it OK or would it be better to use a different key for each table (for example 'AdfmSavePointTable1', 'AdfmSavePointTable2',...)?
    3. If the pageFlowScope already contains a checkpoint under the "AdfmSavePoint" key... What does if I give the floor to new .put ("AdfmSavePoint", sph)? Can I be sure that the old value is overwritten?
    4. is this safe with nested savepoint? For example in my case I want to create a backup before the fragment in the image point is displayed (and restore if the user leaves the fragment by clicking "RESTORE ALL"), then within the fragment, as I said above, I would manage other points of record when inserting/editing tables.
    5. I noticed that clicking on the button "RESTORE ALL" when it relates to the AM-restore operation causes this strange thing: when before displaying the fragment I call SetCurrentRowWithKey on the master istance VO... If I click on "ROLLBACK ALL" posted master VO Records changes and 1 minutes of the main of the VO table is displayed. Why the master istance VO is not reimain in the folder I've previously selected by SetCurrentRowWithKey?
    6. With reference to the expression (*) above. The BTF 'dialogue' I created contains only the page jspx with shape and a return to activity. I also tried a) create (and restore) the backup point, b) to call createInsert inside the "dialog box" operation BTF (see images below), but the createInsert on retail VO istance called inside the 'dialogue' BTF seems not to reflect on the table as when I call createInsert by calling btf. I have to make some adjustments in the 'dialogue' of BTF?

    Thank you

    Federico

    Federico,

    (1) Yes, what should happen if a user add or edit vo1 and click ok in the dialog box but decided that ask to work must be restored?

    (2) as long as you don't have that a dialog box is open, it should work.

    (3) the flowrate range of page is a map. You can put the same key more than once. If the key already exists, the value is replaced.

    (4) in fact, I don't know, but the sounds of complicated design. I guess you can record more points, but only in the order of creation. It's as if you try to rebuild the framework. BTF yo it even for you, when worn right. Please go to ADF Architecture Square and read and watch it task flow of related things.

    (5) this behavior is as expected. A restore resets all the iterators so thagetto point at the top of he. http://www.Oracle.com/technetwork/Developer-Tools/ADF/learnmore/OCT2010-OTN-Harvest-183714.pdf 'keep the line after cancellation' shows how to handle this situation.

    (6) I suppose have you refresh the table iterator, once you close the dialog box for the new data. But that's only a guess because it depends on how the btf share control of data and the your involved.

    Timo

  • Multiple Page with scrolling text

    I created a simple MenuScreen and used RichTextField to add a few more number of lines of text,

    When running it in the emulator 8100, 8300, it shows only the first lines, while trying to scroll down,

    and see several lines, press on / scrolling down is not working

    I tried with some listeners, I didn't get the result.

    Could someone pls suggest how to proceed

    Here is the Code

    SerializableAttribute public class HelloWorld extends UiApplication
    {
      
    Public Shared Sub main (String [] args)
    {
        
    PAP HelloWorldDemo = new HelloWorldDemo();
      
    theApp.enterEventDispatcher ();
    }

    public HelloWorldDemo()
    {
    pushScreen (new HelloWorldScreen());
    }
    }

    final HelloWorldScreen class extends screen
    {

    public HelloWorldScreen()
    {

    LabelField title = new LabelField ("Hello World Demo", LabelField.ELLIPSIS |) LabelField.USE_ALL_WIDTH);
    setTitle (title);

    Add multilple line of text in the rich text field.

    Add (new RichTextField("Hello World!  For simplicity, this sample application can not ' + '.
    "resource bundles and resource strings.  However, it is STRONGLY recommended "+".
    "the experience in a variety of languages and geographies.  For more information ' + '.
    "on the location of your application, please refer to the BlackBerry Java development +.
    (('Environment Guide of development associated with this output.', Field.NON_FOCUSABLE));
    }

    }

    You have specified

    Field.NON_FOCUSABLE

    If the BlackBerry has nowhere to achieve.  Replace this with

    Field.READONLY and see the difference.

    You will probably also notice on this screen with Field.NON_FOCUSABLE and that you do not yet see "cursor".

    You could add before NullFields after that, but it will only display start and end of data - which may not be what you want.  Try it and see.

  • Script dynamic Page numbering does not work on pages with engineered?

    I work in Acrobat Pro XI on a document of 4 pages with a button that allows a page template will be inserted after page 3.  I created a button for this, and it works fine.  But each page has a text field that is supposed to automatically update all the page numbers.  The code looks like this:

    Event.Value = "page" + (event.target.page + 1) + "of" + this.numPages; ""

    calculateNow();

    On the four pages visible when the file is opened it works perfectly; they will update "Page 1 of 4" to "1 of 5", etc. without any problems.  However, the inserted template pages are very random.  Sometimes the firstbegotten will work and say Page 4 of 5, but sometimes he will say Page 0/4.  It is worth noting that even when he says Page 4 of 5 print this page shows that this saying Page 0 out of 4 again.  And all additional pages triggered after which lists a bunch of random numbers on the right number of pages.  So it will look like "Page 7, 6, 5, 4, 31 9.

    I search by a large number of questions already asked and have not seen enough.

    If you want to add a new page with each press of the button, you can simplify the code:

    getTemplate("Addittional_Collaborators").spawn (numPages, true, false);

    but you need to add code to define correctly the ' page x of y "field values. Post again if you have trouble with this part.

  • How to return external application form to a page with workflows

    I use Jdeveloper with ADF technology 11.1.2.3.

    I have Unbounded in the workflow that contains the login.jspx and payTaskFlow page which is defined workflow.

    After login.jspx should go to payTaskFlow. PayTaskFlow I mainPay.jspx this page will be called flows of external application.

    It is: after the execution of external application flow how are we going to a page with in payTaskFlow. Using a configuration file that I can specify the URL of the page and the page is coming without any problem in that the page does not come with workflows. I mean it's isolated I can't navigate form this page to other pages with workflows.

    Yes, the external application how do refers to the page with streams of tasks not directly using URL.




    Problem solved.

    My goal was to access a bounded task flows using URL. This can be done by typing the URL in a spatial way to mention the flow of tasks and its xml file id. It's average is discussed in this thread: https://community.oracle.com/message/4354496#4354496

    As Timo said the stubborn workflow always begin activity by default. So, if we want to go to a specific page with streams of work then we should add a router and set it as the default activity; According to some setting the router will decide if we go the normal flow or to the specific page you want in the stubborn workflow.

Maybe you are looking for

  • Updates for HP Envy 15 t-j000 Quad Edition CTO Notebook PC windows 8.1

    I have updated the system and returned to original Windows. Them I have updated to 8.1 windows 64-bit. But I can not find several updtaes as Col. simple 64B? and others who still work in 32-bit. How can I get updates for HP Envy 15 t-j000 Quad Editio

  • My menu start and other menus drop-down list are not open.

    That last Thursday night, without reason my Start menu and other menus just started to panic.  When I click on them they only stay open for about 1 second Max and now any window that is open to some sort of "flashes" constantly.  I can't understand w

  • SD card reader not working do not!

    When I upgraded my Vista to Windows 7, I had to reload a large number of my drivers, now my computer does not read my SanDisk Memory StickPRO Duo with my photos when I insert it into the SD card reader.  He was just plug-and-play.  Now, it's even not

  • Windows help, bought a new hard drive, but how to get windows on it

    What I need to contact dell to obtain the installation disc, or I can download it and make my own drive for my model? I have the key of windows at the bottom of the laptop please help. Or can I use my Ctrl + F11 key with a new hard drive to restore.

  • Quality Edition

    the publishing in Lightroom feature publishes the original image of high quality?