To access the APEX_COLLECTIONS on another page

Use: APEX 5

One of my app pages (Page 12), I have a dynamic action that calls upon request AJAX callback process.

The code of the dynamic action has the javascript call:

var arr_f01 = [];

() $("input[name='f01']:checked").each

function() {}

arr_f01.push ($(this).) Val());

});

(apex). Server.Process

"Lines Checked process."

{f01: arr_f01},

{the data type: 'text',}

Async: false,

success: {function (pData)}

$s ("P12_SELECTED", pData);

}

});

The recall AJAX process is:

Controlled process lines

declare

l_f01 varchar2 (2000);

Start

APEX_COLLECTION. () CREATE_OR_TRUNCATE_COLLECTION

p_collection_name = > 'TEST_COLLECTION');

l_f01: = ";

delete from lrg_symptoms_select;

because me in 1.APEX_APPLICATION. Loop G_F01. Count

insert into lrg_symptoms_select values (APEX_APPLICATION. G_F01 (i));

l_f01: = l_f01 | APEX_APPLICATION. G_F01 (i) | «, » ;

end loop;

APEX_COLLECTION. ADD_MEMBER)

p_collection_name = > 'SPLIT_SYMPTOMS ',.

p_c001 = > l_f01);

Select c001 in: l_f01 of APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";

HTP.PRN (l_f01);

commit;

end;

I have 2 questions here:

1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION

Select c001 in APEX_COLLECTIONS where collection_name = 'TEST_COLLECTION';

But I get the following error

Failed to parse the SQL query:

ORA-00933: SQL not correctly completed command.

How can I access the collection on the page of the modal dialog box?

2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.

The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.

How to set the value of page element in the session?

Thanks in advance

Hina

844372 wrote:

Update your forum profile with a recognizable username instead of "844372": Video tutorial how to change username available

I have 2 questions here:

1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION

Select c001 in APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";

But I get the following error

Failed to parse the SQL query:

ORA-00933: SQL not correctly completed command.

How can I access the collection on the page of the modal dialog box?

Remove the ';' the query.

2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.

The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.

How to set the value of page element in the session?

Set the value of the element in the recall process and use it as the return value:

:p12_selected := ...;

I can't integrate it in your code because I don't understand. Why the TEST_COLLECTION is created and used in a query, but the data added to the collection of SPLIT_SYMPTOMS?

Tags: Database

Similar Questions

  • Cannot access textfield value in another page

    Hello, I thought it would be simple and straightforward, but I hit a wall.

    I can't access the values from another page in a script.

    I'm trying to set a value of a text field to the value of a text field which is in another page.

    I have the click event (just to test):

    eApp.ENB - 7-07 - CAGAIN_Page_5.a3z_data_AdditionalInfo::click - (JavaScript, client)

    this.rawValue = eApp.ENB - 7-07 - CAGAIN_Page_4.AccountNumber.rawValue;

    He does not get the value.

    But if I copy create a field on the same page (page 5 here) with the same information, I can access

    with this.parent.AccountNumber.rawValue;

    I can make it work, by copying the textfields on the page and in hiding, then using their value.

    but it seems dirty and useless.

    I just want to be able to access the fields on another page, I thought it would be as easy as form.page4.accessthisvalue

    Any help is VERY appreciated, been banging my head for a moment loong.

    Hello

    It should not be a problem doing this, you can reference a field anywhere on the form.  You get script errors?  My first guess would be to rename the ENB-7-07-CAGAIN_Page_4 field so that it doesn't have the dash inside character, he might try to subtract 7 variable he thinks is called BNB.

    Concerning

    Bruce

  • to access the variables in a page in another page qml

    Hey gang,

    I've been watching some of the other problems autour to access the variables from one page on another page qml qml, and I can't get this to work.

    I have a page, main.qml with a NavigationPane.  The NavPane has a Page and some containers.

    I have a property defined in the NavigationPane like this:

    NavigationPane {
        id: mainNav
        backButtonsVisible: true
        property int customInt: 2
    
        onCustomInt: {
            console.log("  -------------> App: customInt");
        }
    

    I have a ComponentDefinition for next page, called SettingsPage.qml.  In the settings, I have two drop-down lists and a slider.

    Page {
        actionBarAutoHideBehavior: ActionBarAutoHideBehavior.HideOnScroll
        id: pgSettings
    
        ScrollView {
            id: pageScroller
            scrollViewProperties.initialScalingMethod: ScalingMethod.AspectFit
            Container {
                topPadding: 25
                bottomPadding: 25
                rightPadding: 25
                leftPadding: 25
                Label {
                    text: "Settings"
                    textStyle.fontSize: FontSize.XLarge
                }
            Container {
                id: dropDown1
                topPadding: 25
                bottomPadding: 25
                rightPadding: 25
                leftPadding: 25
                DropDown {
                       id: ddOption1
                       title: "Option 1"
                       verticalAlignment: VerticalAlignment.Center
                       horizontalAlignment: HorizontalAlignment.Center
                      Option {id: o1o1; text: "One"; }
                      Option {id: o1o2; text: "Two"; }
                      Option {id: o1o3; text: "Three"; selected: true; }
                      Option {id: o1o4; text: "Four"; }
    
                    onSelectedIndexChanged: {
    
                        switch (selectedIndex){
                            case 0:
                                //
                                console.log(" -->App: Option 1 Selector, On");
                                customInt = 0;
                                break;
                            case 1:
                                //
                                console.log(" -->App: Option 1 Selector, Off");
                                customInt = 1;;
                                break;
                            case 2:
                                //
                                console.log(" -->App: Option 1 Selector, Top (default)");
                                customInt = 2;
                                break;
                            case 3:
                                //
                                console.log(" -->App: Option 1 Selector, Bottom");
                                customInt = 3;
                                break;
                        }
                    }
                }
            } }
    

    I look forward to the the statement will change the level property NavPane, called customInt, but it doesn't.

    the output of the console shows that the ' App: Option 1 selector "gets selected in the dropdown list selected index changes, but the onCustomInt() funtion slot never gets called.

    I tried "mainNav.customInt = X" too, but the parameters cannot solve the mainNav.  I get "unknown symbol 'mainNav'" error with alittle bulb.

    what I am doing wrong?

    When you call the second page, SettingsPage.qml, set it as an object.

    Don't do the following:

    attachedObjects: [
    
        ComponentDefinition {
            id: settingsPageDefinition
            source: "SettingsPage.qml"
        }
    ]
    

    Follow these steps:

    attachedObjects: [
        // Definition of the second Page, used to dynamically create the Page above.
        ComponentDefinition {
            id: settingsPageDefinition
            Settingspage{
    
            }
        }
    ]
    

    Then the second page main navigation page in the IDE.  I had the same problem with a multi-page application, I created.

  • How can I move these indicator and the control to another page?

    How can I move these indicator and the control to another page? I page Kontrol and those on Installningar page, move!

    Or I want to hide them Kontrol page, how can I do

    Thank you

    Hi q8.

    move: select the controls, move them out of the container tab, drag them into the appropriate page of the tab container

    Hide: Terminal controls (!) right click, select "hide"...

  • I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file.

    I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file. How can I unlock it please?

    You have Outlook open when you save? You need to close.

    Hope this helps

    Post back if necessary

    ___________________________________________________________

    If this post can help solve your problem, please click the 'bookmark' or 'Yes' to this message button. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Flash as2 cross subject to access the SWF from another server domain

    I have question cross-domain, how do I access the .swf from another swf file without using System.Security.allowDomain() in the swf file, which we are called.

    I use 2 domains and I have 2 files swf is a.com (a.swf) and another is of bcom (b.swf) I want to access the file the a.swf b.swf frames, if I use the system.Security.allowDomain() in b.swf file I can access executives. But without using this way I can access the file from another domain.

    Because I have a risk to change the file b.swf so I vant to go without changing the file b.swf is any other wey to access frames of the file the file a.swf b.swf. Please someone help me solve this problem.

    use a local executable (such as php) to load the b.swf and send it back to a.swf.  for example:

    loadSWF.php:

    <>

    $fh = fopen ("www.b.com/b.swf", "r");

    Header ("Content-type: application/x-shockwave-flash");

    fpassthru ($FH);

    ?>

    a.fla:

    var target_mc:MovieClip=this.createEmptyMovieClip("target_mc",this.getNextHighestDepth());

    target_mc.loadMovie ("loadSWF.php");

  • Run the report to PL/SQL with the branch to another page

    I have an application which, at various times, I run a PL/SQL procedure to perform an action, and then we must run a report while also navigating away from the current page. The actions are performed on a button click.

    I tried several methods, but for the life of me cannot get the system to do the two things (ie. run the report and the direction to another page). I tried to put in page 0 (to be executed after the treatment on the click of a button) a branch with a request line to print the report, followed by a branch to the other page (also to run after the treatment on the button click) - and only the branch page 0 runs in fact. Also tried a branch to the other page only, with the print in the request parameter request - but only runs the report, do not create a branch to the other page.

    I also tried to put the call to run the report in the PL/SQL code, using utl_http.start_request (url), but that came with a "Bad Request" error. Also tried to use the owa_util.redirect_url call, but also no chance.

    I'm pulling my hair out at this time, especially because I am under pressure to get the system in very short time.

    Any suggestion would be appreciated.

    You can run queries report of their URL (f? p = & APP_ID.: 0: & SESSION.: PRINT_REPORT =)

    So one approach would be to
    The button click, call a JS function which

  • 1 use the Ondemand/recall process in order to perform the processing workflow (file selection box)
  • 2 open the report in a popup (from your IR page)
  • 3 redirect leaves the IR page to another page?
    ------
    Another approach:
  • 1. IR report submits the page
  • 2. in the PLSQL block, you do the treatment
  • 3. the branch redirects to a URL that would point to the report URL.
    OR
  • 3. do you have a JS onload which runs only when demand is demand for BUTTON and opens a page that points to the report.
    ------

    Still another way is to use htp.p in PLSQL block which made the treatment of workflow
    So your code PLSQL

    BEGIN
      --Do the workflow processing here
      --End workflow processing
      htp.p('');
    END;
    
  • Cannot access the BEFSX41 router Config page Win 7

    Hi, I have a BEFSX41and am not able to access my router from any browser config page I have on my system. I use IE and FireFox and when I punch in the IP address for the router there is just there and about 30 seconds later, says that there is a mistake and that the connection has been reset. It is a 64-bit installation and I also have another computer that goes through the same router, is 32-bit and doesn't have this problem.

    I added a NEW driver for my Realtek NIC and it still happens. Another machine that I have on my network ALSO has a Realtek NIC but can still access the router config page.

    Someone at - it else here has the same problem?

    OK, problem solved. I used a different IP and the problem disappeared, thanks for the help.

  • passing the value of the item to another page

    Hello!

    I have a few questions while passing the value of the item to another presentation page and page refreshes.

    I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

    I hope you understand what I mean and you can help me. And sorry again for my English.

    Kind regards
    Dragan

    You can create a collection and use it in this way:

    IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
    apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
    END IF;
                             
    apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

    -Value added to the collection
    apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

    -get the value of collection
    Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

    Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    OR

    as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

    -Manu

  • Passing parameters from one page to the OFA to another PAge of the OFA

    Hello

    I was wondering, if there is a possibility of passing parameters to the request from one page to another page in EBS (eBusiness Suite).
    I tried to use the following

    (a) PageContext.putParamater ('MyParamater', 'ParamaterValue')
    (b) I have addded above the line of code by extending a controller on the page of OAF and personalized page

    When I retrieve the value of getParameter() on the next page. I am also unable to access the parameter in the following page.

    I tried the above code while trying to create expenses in the module I have costs... I would like the ReportHeaderId from one page to another page for customization purposes. I am not able to get the ReportHeaderId in the ReviewPAge... There is no Business Objects in the review page... try the idea of putParameter.

    Any help will be much appreciated

    Thank you

    Yes, the value will remain unless the root AM is released or remove you it with oapagecontext.removeTransactionTransientValue ("myParam");

    Glad to hear it works for you! Also, please mark your messages as helpful or correct answers as it will help others.

    Thank you
    LC

  • cannot access the files of another user with the admin account

    I'm on a computer with Windows Vista 64-bit home problems.
    I normally have the computer configured to connect automatically to a non privileged user and rarely use the admin account.
    Recently, I downloaded an update (Finally, more like a relocation to the latest version) and realized that I need the admin account to install properly for all users that UAC would make things a royal PITA with a zillion prompts.

    I quickly disconnected and logged in as admin. Then, I realized that the installation file has been stored in the "downloads" folder in my regular account.
    Worse still, I could not access this folder, or I couldn't tab of future security. All I could do was to 'change the property' to my admin account, but I really didn't block me on these issues. Even from Explorer using "run as administrator" gave me problems, although the DIR command in cmd.com would be the list of people.

    I used the "change user" function to log my account regular and checked the Security tab and saw that the "Administrators" Group had already read and checked 'total control '. Why can't access the admin account? As an admin with XP, I had free access to everything I wanted to leave that I wanted.

    What happens if I was a parent and wanted to check to make sure that my child was not software piracy or download illegal music that would get stuck with the fines because I'm his guardian? How would I go about checking his records?

    What happens if I was an employer at a small office using working groups and wanted to ensure that the employee was not downloading pornography?

    How can I use the powers of the administrator to access other files (regular) user?
    Why do I still need to ask this question? It was automatic under NT, 2000, XP and the various servers at least as high as 2003.

    I found the problem, it was ANOTHER problem with Norton Security Suite for Comcast.
    I uninstalled and did not only to release 100 GIGABYTES of space, my boot time has been cut to a quarter of the former time, and this problem has disappeared.

  • WRT110-problem accessing the Web-based Setup Page

    I can't access the configuration page based on web for the WRT110 router I have. I am able to make a connection on two computers without the router, but when I add them I get an error message in my browser.

    I tried to access the configuration page based on the web both of my computers and some information were followed by Ecritel.net, but I'm having no luck. I receive the following error message "missed connection: connection to the server was reset while the page is loading." The network link was interrupted for negotiating a connection. Please try again. »

    Any advice would be greatly appreciated! Thank you!

    Actually, I get a different error message now. I made a few adjustments to things like the start menu, which is a problem before. Here is the new error message I received:

    Network timeout Server 192.168.1.1 takes too long to respond. The requested site did not respond to a connection request and the browser has stopped waiting for a response

    Can experience the high demand server or a temporary outage? Try again later.

    Are you unable to navigate to other sites? Check the computer's network connection.

    Is your computer or a network protected by a firewall or proxy? Incorrect settings can interfere with browsing the web.

    Still having trouble? See your network administrator or your Internet service provider for assistance.

    Someone at - it ideas? I searched on the Internet, but nothing I've tried works. Thank you in advance!

  • Copy the value of the item to another page of the apex in a field

    I have a main table and adds a new button.

    In my master table, there is a client code.

    If I press this button again, I will be referred to another form on another page where I can create log files.

    For the moment, I have to insert the client code in this form.

    How is it possible to copy the customer ID, if I press the new button in the main table, if this customer code (value) will be copied

    in another article on my other page?

    Hello

    What version of APEX are you using?

    Solution for this should be simple.

    Just edit the button element. Assign it "Action when the button is clicked" "redirect to the page of this application.

    "Then set: Set on these elements ' with the name of the target element and the 'with these values" with the name of the source element.

    The same works also for reports. But instead of the nom_element, you must add the column name as: #COLUMN_NAME # for 'with these values.

    Concerning

    J

  • How to change the value from another page

    I'm filtering province in my application based on a province selected in the home page (P16), however the user can submit a form that has a province that and after that, all the content must be filtered according to the selected province 'new '. So I'm in the P7 and after submitting the form, I would need to change the P16_PROVINCE - which belong to another page (P16).

    but do not know how,
    Any help?

    Mehrdad says:
    Thanks, VC, but I need to have a trigger to change the P16_PROVINCE after submitting the form, so that one must be changed according to what the user does on a form...
    After he submit the form, I have my game P7_PROVINCE, which is fine, but AFTER the selection, I need to change the P16_PROVINCE (which is used as a global variable to filter my records...)

    Add a plsql page 7 page process and submit the game it runs - as below

    //assign the value of P7_PROVINCE into P16_PROVINCE
    :P16_PROVINCE := :P7_PROVINCE;
    

    See http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_ses_val.htm#HTMDB03012

  • What is the best approach to take the content from another page... sampe App

    I need to access the values of the other page...... What will be the best method to her dowry...
    I thought to use the loading of the page...
    and development using plsql expression...
    as
    page load event
    PLSQL expression

    : P200_EMAIL

    element on the page to p200_email
    p103_email of the affected item.

    Now for some strange reason the contents of the p200_email field... that exist in page 200... Donot enter paeg 103......
    field p103_email...
    What will be the best method .or approach to retrieve the content...
    Any information will be greatly appreciated...

    Published by: pauljohny on September 11, 2012 12:08

    Question seem you too much, but my understanding is that you want to 'Access session values' in the Apex.

    In Apex, all elements of the page that is presented, and the session will be available in the session.

    example: If you have the page 1 and P1_NAME like a text field, and if you send the page, access to this to say page 2 P2_NAME to: P1_NAME & P1_NAME. v ('P1_NAME') etc. Then try this under P2_NAME default value setting, enter & P1_NAME. It has the value of P1_NAME to P2_NAME.

    Hope this helps
    JS

Maybe you are looking for