How to handle the list manager correctly?

Hello

I am a student and I had to make a simple request to APEX.
It is a part of modelling on the project:

apex_ask.jpg

As you can see, I have two relationship 'n - n' and a '1-n ".
I want to create a user page in order to allow him to add a 'work' (work) but this "object" should be linked with the "n" type (type), "n" person and "n" copy.

I am currently working on this page:

scrennshot_apex.JPG
As you can see, I have two list manager.

I try a simple test:

If I click on "region with dynamic action button" called click me! a short javascript code to show me the content of the second list manager

id_personne = $v("P13_PERSONNE");
alert(id_personne);

the result looks like "40:30:4:6".

I want to in PL/SQL, but I don't know how to do this:

  • Get the value of the Manager of the list (like javascript)
  • Get every issue of '40:30:4:6' in a LOOP

Currently my PL/SQL looks like:

DECLARE
    v_personne VARCHAR2(40) := '3:42:22:4:1:5';
    v_cptr NUMBER;
    LN$I pls_integer := 0;
BEGIN
    v_cptr := regexp_count( v_personne, ':' );
    LOOP
        LN$I := LN$I + 1 ;
        dbms_output.put_line( to_char( LN$I) ) ;
        exit when LN$I >= v_cptr ;
    END LOOP;
END;
/


I'm only counting the number of ': ' for loop.

Kind regard

Hello

2909908 wrote:

Please update your profile name with an explicit name, check out this video: https://www.youtube.com/watch?v=_FD80PU41k8

Hello

I am currently working on this page:


As you can see, I have two list manager.

I try a simple test:

If I click on "region with dynamic action button" called click me! a short javascript code to show me the content of the second list manager

  1. id_personne = $v ("P13_PERSONNE");
  2. Alert (id_personne);

the result looks like "40:30:4:6".

I want to in PL/SQL, but I don't know how to do this:

  • Get the value of the Manager of the list (like javascript)
  • Get every issue of '40:30:4:6' in a LOOP

Currently my PL/SQL looks like:

  1. DECLARE
  2. v_personne VARCHAR2 (40): = "3:42:22:4:1:5";
  3. v_cptr NUMBER;
  4. LN$ I pls_integer: = 0;
  5. BEGIN
  6. v_cptr: = regexp_count (v_personne, ' :');)
  7. LOOP
  8. $ LN I: = LN$ I + 1;
  9. dbms_output.put_line (to_char (LN$ I));
  10. When out LN$ I > = v_cptr;
  11. END LOOP;
  12. END;
  13. /

I'm only counting the number of ': ' for loop.

Kind regard

You can use STRING_TO_TABLE to process the values of list manager.

see the example given below

DECLARE
  l_vc_arr2 APEX_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
  l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE(:P13_PERSONNE);
  FOR z IN 1..l_vc_arr2.count LOOP
    htp.p(l_vc_arr2(z));
  END LOOP;
END;

Visit this link for reference: http://docs.oracle.com/cd/E11882_01/appdev.112/e12510/apex_util.htm#AEAPI186

Hope this helps you,

Kind regards

Jitendra

Tags: Database

Similar Questions

  • How you sort the list of the next iOS 10?

    I can't know how to sort the list by following in-app music on my iPhone 6 s.  In iOS 9, he had a handle on the right side next to the title of the song that you can tap and drag up/down to change the order of the playlist.  The handle does not appear in the App on iOS 10 music.

    So I guess you can't have activated repeat function.  Once it is off, the handles appear and you can sort your list of songs until the next.

  • How to handle the onTriggered many ActionItem created dynamically

    Hi, I created the ActionItem dynamically using (loop)

    because data is from webservice

    How to handle the onTrigerred?

    If my code is like this:

    for (int i = 0; i)< alist.count();="">

    {

    My page page * = iRoot-->findChild ("SpecificObject");
    ActionItem * action = ActionItem::create () .title (aList [i] .name);

    bool res = QObject::connect (action, SIGNAL (triggered ()), this, SLOT (handleAction (())); what I'm confused because I don't know what action is triggered
    Q_ASSERT (res);
    Q_UNUSED (res);

    my page-> addAction (action, ActionBarPlacement:efault);

    }

    MyClass::handleAction() Sub

    {

    aFunction(); This parameter of function required of aList, said user.user aList [i]

    }

    Do I need to create handleAction() as well as added actionItem SLOT

    But I don't know how much action added because it is dynamic server

    Thank you

    There are a few options:

    Create a single location and connect all the signals. You can then call sender() into the slot to retrieve the object that sent the signal and go from there. You can also use a QSignalMap that maps each signal to a value and send this value to a single location. You can also use QSignalMap::sender() to get the sender object.

    I used the QSignalMap to do something similar for handling created dynamically successfully drop-down lists.

  • How to display the list of temporary and free sites that we use?

    Adobe Web Host - Free Sites.

    How to display the list of temporary and free sites that we use?

    When you're connected creative cloud, we used to be able to view the temporary and lots of 5 free sites that we use hoe.

    Could not find a list on my creative cloud account or when the link to 'Manage' in the Muse.

    No mention of the free sites in the FAQ. Is there a change in policy? Are always included in the subscription of the free sites?

    - Adobe Muse help | Adobe Muse / Common Questions .

    When I publish in Adobe Muse CC, must I pay for hosting with Adobe?

    Adobe Muse CC allows you to publish your Web site temporary on the platform Adobe of accommodation free of charge for a trial period of 30 days. This gives you the ability to send a direct URL to your client for review. All sites with Adobe trial mode will include the field "businesscatalyst.com" in it. If you decide to take the live site by paying for monthly hosting, you can transfer your domain name and delete the subdomain businesscatalyst.com. Or you can export the HTML and host the final site with a host of your choice.

    //

    Yes, don't know why they took out of the cloud interface.

    But if you go to http://www.businesscatalyst.com/partnerportal and you connect with your ID cloud you will have access to all your cloud sites and many other features.

  • How to disable the "security selection" correctly?

    Hello experts!

    How to disable the "security selection" correctly?

    ! http://img689.imageshack.us/img689/2748/28668107.PNG!

    Thank you!

    Hello...

    Open the "Catalog Manager" and
    Access Shared-> 'Shared Folder Name' (ex: Sample Sales)-> _Portal.

    You will find all of the dashboards. Open the dashboard that you have already enabled selection. In this dashboard folder, you will find a folder with the name more: _selections *.

    Delete the file _selections *.

    You will get Enable option still finish at the top.

    All the best

  • Spam: how to change the list of junk e-mail in iPad

    How to change the list of junk e-mail in iPad

    If your question is about - how to indicate whether or not an e-mail is sent to the junk e-mail folder-

    Your best bet would be to do it on the web portal of the email provider (e.g. for Yahoo it would mail.yahoo.com)

    There is usually a button or switch to designate mail "Junk" or "not junk".

    If your question is rather modify the list itself

    Mailbox - junk e-mail - Edit button is at the top right

  • How to display the list of components in ultiboard 10?

    The DRC report the errors where the components that are no longer in the design have been removed. How to display the list component and then remove them from the netlist to stop this?

    Ultiboard reported missing errors of component (part 'X' is not about design) because the part is always referenced by a net. To fix this, you must remove the part of the net. Following the steps below to remove the part form the net.

    1 tools > Netlist Editor

    2. for each network that the part has been connected to, select the Net (upper-left).

    3. Select the tab of pine trees, select the part and it is the PIN in the dialog box, then click on remove

    The problem is when the part is removed, I see no easy way to determine the threads you need to remove the part of. I entered this as a feature request to make this easier, but as a workaround, you can put part and say Ultiboard what the missing part, then search the net names on the pins and remove the part of these pins

    1 place a piece with a lot of pine trees (for example the part that was removed, or for example through Hole technology > Connectors > SIL & headers > HEADER2X9). When you place the part, make sure that the RefDes matches the RefDes of the part which has been removed.

    2. once the room is placed, you should see rats nest lines that connect the part to the nets.

    3 Zoom on the pins. You should now see the net name on each of the axes. For each of the pins connected, remove it from the net as described above.

    4. remove the part that you placed.

  • How to unlock the Task Manager so I can get to my desk, when I start?

    How to unlock the Task Manager so I can get to my desk, when I start?

    Hey Jeffreymartin,

    I suggest you try the process again as an administrator. If you are the administrator, try setting the user account controls and try again.
    Let us know the status once you give that a try.
    Thank you!
  • How to open the maintenance Manager to change the printer ink

    How to open the maintenance Manager to change the printer ink

    Do you mean physically change the ink cartridge?

    I would check with the manual that came with your printer.

  • Style in the list of correct answers (Display Mode)

    CP9

    I need change the style (type size) in the list of correct answers when I see the consultation mode. Default size is very small. It's a style? Can I change?

    Imagen1.png

    Thank you!.

    If you can solve it by changing the CSS which will be the best solution. Another solution would be to create a personalized feedback and use a conditional action on enter check if the blade is in playback Mode.

  • How to remove the list item empty forms of oracle?

    Hello

    How to remove the list item EMPTY forms of oracle?

    I create two list items

    (1) basic

    (2) advanced

    But when I select list or display the runtime display form element 3 element EMPTY automatically, but I add what it shows I want to delete! How?

    He has named REQUIRED = NO item property

    If you set YES and then it does not show. but you must give an initial value.

    Hamid

  • How to get the list of RDM?

    Hi all

    In our environment both of RDM is presented to different virtual machines in physical compatibility mode. It was very difficult for me to keep track

    Could you get it someone please let me know, how to get the list of the RDM presented to ESXI 5.0 host?

    Thank you!

    Ravindra Reddy

    Thank you... A P... for your response tools RV is the right tool, but I wanted to naa number of LUNS as well.

    After 2 hours, I had below power CLI command to get the list of the virtual machine.

    PowerCLI C:\ > Get - VM | Get-hard drive - DiskType "RawPhysical", "RawVirtual" | Select name, Parent, ScsiCanonicalName, DiskType | FL | Out-file C:\RDMlist.xlx

    Thank you!

  • How to edit the list of recent files?

    How to edit the list of recent files?

    Yes, you can clear the list. Please see this thread for more information - How to remove on the Adobe reader recent files history?

    Kind regards

    Deepak

  • How to get the list of active users in Essbase 6.5.6

    Hi gurus,

    How to get the list of active users in Essbase version 6.5.6

    I can't find any Esscmd list of active users...

    I used the command LISTLOGINS in ESSCMD, but it did not help me...

    pls suggest me an approach to find the list of active users.

    Thanks in advance...

    Hi guru,.

    When you connect to the application, you will find the security option---> connect you will find active use in the ESSBASE.

    If you need the list of users in the use of ESSBASE that recommends essmsh

    go for the race---> essmsh---> login user server use this tribute

    (1) session view all this;

    If you want to export the active users usebelow congratulate.

    2)

    spool to 'D:\suresh.txt ';

    poster session;

  • How to reorder the list of displayed to the customer shipping options

    Hello

    I have a list of options that include standard shipping and a burden on the Scottish Highlands & Islands for shipping. These two options are limited to the United Kingdom.

    in the drop-down menu, it displays the first option Highlands and Standard shipping second, but it makes more sense to have:

    Standard delivery

    Scottish Highlands & Islands

    How to rearrange the list displayed to customers?

    It is based on what you have created in what order in the admin.

Maybe you are looking for