Refresh table-form query on table only for pages in .jsff

I have a group being generated as a presentation of table form. I would like for the page of the table to always refresh, and submit the form to refresh page after.
I saw a thread about how to do this on a .jspx page: Refresh table-form query on table only

Unfortunately, this does not work for me because I use the .jsff pages and they do not have access to the facesContext. Does anyone know how to do this for a .jsff page?

Thank you
Michelle

Michelle,

The taskflow 11 ADF in the equivalent of the region of this expression would be

#{jhsPageChanged and controllerContext.currentViewPort.viewId=='/MyGroupTaskFlow/MyGroupTable'}

Unfortunately, this currently does not work because there is an error in the JhsNavigationHandlerImpl class we're going to fix in the next release.
You can apply a work around by creating a subclass of JhsNavigationHandler and replace as follows:

' public Sub handleNavigation (FacesContext facesContext, string action,
The string result)
{
String oldPageFragmentId = ControllerContext.getInstance () .getCurrentViewPort () .getViewId ();
super.handleNavigation (facesContext, action, result);
String newPageFragmentId = ControllerContext.getInstance () .getCurrentViewPort () .getViewId ();
If (! oldPageFragmentId.equals (newPageFragmentId))
{
JsfUtils.storeOnRequest (JHS_PAGE_CHANGED, Boolean.TRUE);
}
}

To use your subclass, create a custom template for the facesConfig.vm and modify the navigation Manager to use your subclass.

Steven Davelaar,
JHeadstart team.

Tags: Java

Similar Questions

  • Is it true that the forms can be used only for 500 responses

    If you make changes to the original shape, you are now allowed to have another 500 responses? I must say, I do not really understand what

    Chomp

    If you are referring to the capabilities of "Extend features in Adobe Reader" Acrobat, I think your interpretation is correct for either of the two conditions. I won't pretend to understand the Acrobat user license agreement, but the language "seems" to be linked to the extraction of the data in a form that has been enabled for reader. This is my point of view on two conditions:

    (1) you distribute the form for an unlimited number of users, but you can extract the data of 500 single responses only

    OR

    (2) you can distribute the form to 500 unique users and extract data from an unlimited number of responses

    See the article on page 408 15.12.3 license user to http://www.adobe.com/products/eulas/pdfs/Gen_WWCombined-20080205_1329.pdf.

    I would like to hear of any lawyer on the forum 8 ^).

    Steve

  • Query a Table only once

    Hello

    I have an obligation to appoint all transactions in a store except inversions. So I wrote the query as follows

    with trn as
    ( select 1 t_key, 1 invoice#, 'A' Client, 'P1' Product, 'N' reversal from dual
     union all
    select 2 t_key, 2 invoice#, 'B' Client, 'P1' Product, 'N' reversal from dual
    union all
    select 3 t_key, 3 invoice#, 'C' Client, 'P1' Product, 'N' reversal from dual
    union all
    select 4 t_key, 3 invoice#, 'C' Client, 'P1' Product, 'Y' reversal from dual
    ), rev_t as
    (select distinct invoice# from trn where reversal = 'Y')
    select * from trn
    where not exists (select 'x' from rev_t where rev_t.invoice# = trn.invoice#);
    
    

    But in the real world scenario I table of 120 million transactions. If you notice that I consulted trn table 2 times - once in rev_t and the other in the main query. This causes a problem of enormous performance for me. Could you please suggest better otherwise if while accessing to trn don't table only once.

    Use Analytics:

    with NRT as)

    Select 1 t_key, 1 invoice #, 'A' customer, the product "P1", "n" everyone inversion the double union

    Select 2-t_key, 2 invoice #, Client "B", "P1" product, inversion of "n" of all the double union

    Select 3-t_key, 3 invoice #, customer 'C', 'P1' product, inversion of "n" of all the double union

    Select 4 t_key, 3 invoice #, 'C' Client, produces 'P1', 'Y' reversal of the double

    ),

    rev_t like)

    Select trn.*,

    Max (case inversion when 'Y' then 1 else 0 end) on y_flag (partition of invoice #)

    NRT

    )

    Select t_key,

    Invoice #.

    customer,

    product,

    reversal

    of rev_t

    where y_flag = 0

    /

    T_KEY INVOICE # C PR R
    ---------- ---------- - -- -
    1 1 N P1
    2 2 N P1

    SQL >

    And if the reversal can be only Y/N or null:

    with NRT as)

    Select 1 t_key, 1 invoice #, 'A' customer, the product "P1", "n" everyone inversion the double union

    Select 2-t_key, 2 invoice #, Client "B", "P1" product, inversion of "n" of all the double union

    Select 3-t_key, 3 invoice #, customer 'C', 'P1' product, inversion of "n" of all the double union

    Select 4 t_key, 3 invoice #, 'C' Client, produces 'P1', 'Y' reversal of the double

    ),

    rev_t like)

    Select trn.*,

    Max (Reversal) on y_flag (partition of invoice #)

    NRT

    )

    Select t_key,

    Invoice #.

    customer,

    product,

    reversal

    of rev_t

    where y_flag = ' don't

    /

    SY.

  • How to create a validation only for the lines that are created in a table

    Hi all

    I have a simple question. Is it possible to create a validation in a table that fires only for created?

    There is a possibility at the APEX 4.1 choose two types of "* execution scope *" is first of all ' * created and updated lines * "and the second is" * all subject lines. "

    Thanks in advance!

    Kind regards

    Jiri

    Hello Jiri,

    > Is it possible to create a validation in a table that fires only for created?

    You can still use the field lines created and updated the and use a PL/SQL Expression condition of:

    :APEX$ROW_STATUS = 'C'
    

    You will also need to change the Condition run for each line.

    It will be useful,
    Arie.

    -------------------------------------------------------
    Be sure to mark the appropriate fix/useful messages. For the long term, it will benefit us all.

  • Validate Table minimum for Dataloader mappings

    Hello world


    I'm sorry about the same subject, once again because I can't find any answer to this question and the original forum is archived.

    Validate Table minimum for Dataloader mappings

    We have Oracle 11.2 EE with Apex 4.2.5 and found data loader is suitable for us, the only problem is that it will ensure that the user trace the columns needed (essentially NON NULL columns). I don't see how I can do this. There is a validation of the data to the data loader (step 3), it is essentially a report to display columns of mapped data, I don't see that it has nothing to do with the validation data, please help.


    Any suggestions are greatly appreciated.

    Been there, has not to this.

    To load data wizard in the collections.

    One of these collections stores information about formats and mappings.

    (I forgot who he was, but I'm sure you can understand that one is).

    From there, your Validation will be performed on this collection.

    As the collections information seems to be 'undocumented', I would not count on them remains the same between versions.

    (that is, avoid if possible)

    Option 2 - DIY data loader

    I became very fond of the add-on Excel2Collection. (Yes, it works on CSVs)

    http://www.apex-plugin.com/Oracle-Apex-plugins/process-type-plugin/excel2collections_271.html

    Its been the basis for almost all of my 'Do It Yourself [DIY] data loader' page games.

    Its a lot of extra work, but it's the only way to get a precise control of the data import process.

    MK

  • Equivalent of CREATE TABLE syntax for functions?

    Hello
    I am trying to update my functions with a copy of another data base. Y at - it an equivalent syntax in CREATE TABLE as for functions? Basically, I want to drop my old feature in my dev environment and re-create it with the version on prod. I need to use it in a loop for all functions in prod, if just by using the statement plsql itself will not solve my problem.

    Thank you
    John

    Hi, John,.

    Discover the package supplied by Oracle dbms_metadata.

    In addition, the source code for procedures, functions and packages is available in user_source, which you can query like this:

    SELECT       text
    FROM       user_source
    WHERE       name     = 'PROC_X'
    AND       type     = 'PROCEDURE'
    ORDER BY  line
    ;
    
  • SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    Hello

    You can use REGEXP_SUBSTR Oracle/PLSQL: REGEXP_SUBSTR function

    Select the function double REGEXP_SUBSTR('PUBLIC RELATION REPRESENTATIVE ','[^]+',1,2);

    Do you have any value of the column as no 2nd string?

  • AF:table keeps last page selected as default for new results of research

    Description of the problem

    ---------------------------------------------------

    Hello

    In our project, we have a use case where we need search results in an af:table having scrollPolicy = "page".

    If in the result, I select for a page number (such as 4) and perform another search, then this default time the selected page is Page 4.

    According to our condition, we want to it's failure to Page 1 for each new search.

    JDev version - 11.1.1.7.0

    Thank you

    Sudhanshu

    Hello

    If you had just added search button code.

    RangeChangeEvent event =  new RangeChangeEvent(atTableBind, 0, 0, 0, 0);
    atTableBind.broadcast(event);
    

    It should work, if it is not working just use setCurrentRowAtRangeIndex and setCurrentRowIndexInRange set to 0.

    As far as I know,

    11.1.1.7.0 - web merger application works as expected.

    11.1.1.7.0 - custom application web center.

    Thank you

  • How to upgrade only the page numbers from a table of contents in Indesign CS6?

    Hello!

    Help, please! I make a medical book with more then 1300 pages and about 40 different table of contents.

    I want to update only the page numbers on all the table of contents. But I don't see the option to update the table of contents.

    I've seen on other forums that it is a very old and familiar problem. Do you have Adobe already fixed it?

    Nothing has changed with the function table of contents. If you update a table of contents using the standard method of the table of contents, the complete table of contents are updated.

    You can get the page numbers only updates manually by creating your table of contents by using cross-references.

  • Refine a query to display only the entries for the current week

    Hello.

    Anyone know how to change a query to display only those records that have dates of the current week? Records have a start date and an end date, so the query should recognize that the entry may be valid for more than one week?

    Kind regards

    swelch

    Hi Steve,.

    I just created a dataset that contained the periods before, during and after the current week - on the assumption that if any day of a range (start/end) falls within the current week so it is included.

    In my example this is 'today', June 25, 2011, and a week is defined as Sun - Sat. So my week of 'course' is u 19 June 2011 / I June 25, 2011.

    A line any with a start date before or during my 'current' week and an end date that is after or during my "current" week, i.e. no matter what date in its range included in the 'in progress' week will appear.

    See you soon,.
    Rob

  • Table metadata for service operations, services, managers of opration of service

    Hi all
    I need to know the metatables for service operations, services, managers of opration of service
    as we PSPNLDEFN for pages.

    Please help me.
    Thank you.

    Hello

    Here is the list of the Table

    -MESSAGE NŒUDS
    PSMSGNODEDEFN;
    PSNODEDEFNLANG;
    PSCONNECTSTRING;
    PSNODEURITEXT;
    PSNODECONPROP;
    PSNODCONPRPLANG;
    PSNODEPROP;
    PSNODEPROPLANG;
    PSNODESDOWN;
    PSTRUSTNODES;

    -MESSAGE CHANNELS
    PSCHNLDEFN;
    PSCHNLDEFNLANG;
    PSCHNLNODE;
    PSSUBCHNL;

    -MESSAGE DEFINITIONS
    PSMSGDEFN;
    PSMSGDEFNLANG;
    PSMSGFLDOVR;
    PSMSGREC;
    PSMSGVER;

    -Services
    PSSERVICE;
    PSSERVICELANG;
    PSSERVICEUDDI;

    -Service operation
    PSOPERATION;
    PSOPERATIONLANG;

    -Scales of operation Service
    PSIBRTNGDEFN;
    PSRTNGDFNLANG;
    PSRTNGDFNCONPRP;
    PSIBRTNGSUBDEFN;
    PSRTNGDFNPARM;

    -Service operation of managers
    PSOPRHDLR;
    PSOPRHDLRLANG;
    PSOPERATIONAC;
    PSOPERATIONCI;
    PSOPERATIONDMS;

    -Service operation Versions
    PSOPRVERDFN;
    PSOPRVERDFNLANG;
    PSOPRVERDFNPARM;
    PSOPRGENRTGPARM;

    -Integration Broker queues
    PSIBQUEUEINST;
    PSQUEUEDEFN;
    PSQUEUEDEFNLANG;
    PSQUEUEPART;

    Thank you

    Prashant

  • Process in two different tables in one page

    Hi all

    I have A form with a submit button, when I click on the button I want to send the data from two different tables. For example:

    REQ_ID: 221

    BOX_NUMBER: 2

    NOM_ELEMENT: APPLE

    COUNTRY_ORIGIN: USA

    I want to send all the information in table 1 and only REQ_ID and BOX_NUMBER in table 2.

    I tried to create processes two different which are:

    1. the usual process line DML for table 1 and;

    2. simple query 'Insert' SQL for table 2

    It seems fine, until I realized that when the user tries to update the BOX_NUMBER to 10 for example, only 1 table is updated and table 2 creates an another duplicate data instead of updating the old one! This also applies to my button Delete,.

    any idea to fix this problem?

    Thank you very much

    Vika

    Reread what you wrote and you would realize why 2nd table only "new lines".

    2. simple query "Insert into ' SQL for table 2

    If you need to UPDATE the table, then you must write a simple UPDATE statement.

    If you want to REMOVE from the table, then you must write a simple DELETE statement.

    I call this "DML DIY" - do it yourself DML

    (personally, I'd probably use MERGE for INSERT and UPDATE)

    MK

  • SQL Query - store the result for optimization?

    Good day experts,

    I'm looking for advice on a report. I did a lot of analytical functions to get the basic data that I have to do my report and its takes about 50 min for SQL finish. Now, with these data, I need to create 3 different reports and I can't use the SQL even since there are a lot of aggregation (example would be product group in one case and by customer in 2nd). For each of these different group garages I need another report.

    So how to create 3 reports of 1 SQL query without running the query 3 times?

    First thing that comes to mind is to store the result set in a fictitious table, and then query the table since I get the basic data are about 300 lines and then perform different garages group.

    Best regards

    Igor

    So how to create 3 reports of 1 SQL query without running the query 3 times?

    You already know the obvious answer - store data 'somewhere '.

    If any 'somewhere' depends on your needs and you have not provided ALL the.

    MV - if the query is always the same, you might use a MV and make a complete refresh when you want that new data. The data are permanent and can be queried by other sessions, but the query that accesses the data is frozen in the definition of MV.

    GTT (global temporary table) - If a NEW charge of data AND three reports will be ALWAYS executed by a single session and then data are no longer necessary so a TWG may work. The application that loads the TWG can be different for each race, but the data won't be available for a single session and ONLY for the duration of this session. So if something goes wrong and the session ends the data are missing.

    First thing that comes to mind is to store the result set in a fictitious table, and then query the table since I get the basic data are about 300 lines and then perform different garages group.

    Which is commonly called a "table of REPORT-READY." Those that are useful when data must be permanent and available for multiple sessions/users. Generally, there is a batch (for example the package procedure) that periodically refreshes / updates the data during a window of failure. Or the table can have a column (for example AS_OF) that allows it to contain multiple data sets and the update process let alone the existing data and creates a new set of data.

    If your database is about 300 lines you can consider a table report and even use it to contain multiple data sets. Then, the reports can be written to query the data by using a value AS_OF that wraps and returns the appropriate data. You don't need a window of failure since the oldest data are still available (but can be removed when you no longer need.

    If you need a set of data, you can use a partitioned table work (with only one partition) to collect the new set of data, then a SWAP PARTITION to 'swap' in the new data. Only, this "Exchange" takes a fraction of a second and avoids a window of failure. Once the swap done no matter what user query will get new data.

  • Add several tables on a Page

    Hello

    I am building an application that handles (APEX 4.0) material inventory. I have an entry page that adds data to two or more tables at once. The page has two forms on it pointing to two separate tables. However when I try to run the page, it fails and returns an error:

    ORA-06550: line 1, column 437: PL/SQL: ORA-00904: "ORH_LAST_UPDATE_DATE": invalid identifier ORA-06550: line 1, column 7: PL/SQL: statement ignored
    Error failed to process row in the IDD_ID_DATA table.

    As far as I can see in the application, this column is not in question (I don't even do anything for her and she is nullable). I looked at the application itself as well as some research online but can't find anything useful...


    So my question is this: is it possible to add several tables to a page? If yes how?

    I'm new to APEX so any help would be greatly appreciated!

    UPDATE:

    I received an email from support of APEX team:

    «The answer is simple, it's you will need manually code processes query (and DML) If you want to maintain multiple tables on a page (there is a limit of a table when you use the integrated process).»
    For this I suggest that you remove the process generated by the wizards and create processes of PL/SQL with insert, update, delete statements as needed. "This encoding is not difficult but takes much longer when you can use the integrated process.

    I've been playing with code PL/SQL and the final result is the following:

    Start
    INSERT INTO table1
    VALUES)
    : P2_Item_Field1,.
    (: P2_Item_Field2);
              
    INSERT INTO table2
    VALUES)
    : P2_Item_Field1,.
    (: P2_Item_Field2);
    end;

    I used this code in a PL/SQL custom in the treatment process > section to the Page processing and it seems to work fine now. The only downside to this method is that if the name of a Page element is changed the code will also have to be changed. Except that I had no problem.

  • How do you cut spaces only for cell numbers

    Hi Experts,

    Hot to cut space only for numcells of ber for query below:

    SELECT ' < row > < cell > < data ss:Type = "String" > ADCB FINANCE CAY ADCBUH 4 2 January 23 < / Data > < / cell >

    < cell > < data ss:Type = "String" > $ < / Data > < / cell >

    < cell > < data ss:Type = "String" > 5,000,000.000000 < / Data > < / cell >

    < cell > < data ss:Type = 4.500000% > "String" < / data > < / cell > '

    DOUBLE;

    I want output like below:

    < row > < cell > < data ss:Type = "String" > ADCB FINANCE CAY ADCBUH 4 2 January 23 < / Data > < / cell >

    < cell > < data ss:Type = "String" > $ < / Data > < / cell >

    < cell > < data ss:Type = "String" > 5,000,000.000000 < / Data > < / cell >

    < cell > < data ss:Type = "String" > 4.500000% < / Data > < / cell >

    Hello

    What exactly are you trying to do?

    You want to delete the space characters immediately after any tag (that is, anything insiode ) in the string str?  If so:

    REGEXP_REPLACE (str

    , '> +'

    , '>'

    )

    If you want something else, explain what and post some sample data (CREATE TABLE and INSERT statements) and the results desired by indicating what needs to be changed and some things that should not be changed.

Maybe you are looking for