Apex_Collection adding member via user input

Good day to all, I have this code how can I add members, based on an a user input via a textfield? I can simply add a member only because when I choose the collection it retrieves data as a single, I want to add more data based on the user if he seizes 5 values I need to retrieve 5 values also when I select it. How do I do that? Thanks in advance.
DECLARE

v_arr apex_application_global.vc_arr2;

BEGIN
v_arr := apex_util.string_to_table(:P1_DEPTNO);

apex_collection.create_or_truncate_collection(p_collection_name => 'PCOL');

FOR i IN 1 .. v_arr.count
LOOP
apex_collection.add_member(p_collection_name => 'PCOL', p_c001 => v_arr(i));
END LOOP;
END;
Published by: mang jose on January 12, 2011 18:21

Hi Jose,

There are only two steps. On my page, my agenda of the page name is P4_DEPTNO (so set it to your page):

1. create a process on your page that is running "on the load - before the Header." Code of the process must be:

BEGIN
 IF NOT APEX_COLLECTION.COLLECTION_EXISTS('PCOL') THEN
  APEX_COLLECTION.CREATE_COLLECTION('PCOL');
 END IF;
END;

This creates the collection of PCOL If it does not exist, otherwise does nothing if there is

2. create another process on your page that is running "on submit - after calculations and Validations'. The code for this must be:

BEGIN
 APEX_COLLECTION.ADD_MEMBER('PCOL', :P4_DEPTNO);
END;

I put this process triggered by my button (P4_ADD_BUTTON in this example), but I also put it to depend on being NOT NULL - P4_DEPTNO, I've selected "In Expression 1 point value is NOT NULL" and concluded P4_DEPTNO Expression 1.

And that's all you need to do!

Andy

Tags: Database

Similar Questions

  • Distribution dynamically to user input; best practices?

    Hi all

    Using LabVIEW 2013 (32 bit). Taking my first foray in LVOOP and I am currently designing our user input. This user of VI entry is distributed dynamically. The goal is to allow the user to "mix and match" different parts of the application as much as possible. The request is for a controller of a biological system. In particular, we have the notion of 'Controller', a 'model' and a 'Patient'. All patients have the same characteristics, but the controllers and models only share an external interface. Some controllers can control to a set point, some of a range, some to a set of ranges depending on the time and the current status of the Patient. As such, I would like to have some kind of dynamic dispatching on the phase of input from the user. The way I thought to do was via sub-panels, with a tab control to allow the user to move between different parts of the installation.

    This is a model of the façade of the user input:

    http://i.imgur.com/sMZ7xFD.PNG

    So if you have a controller of some, this interface panel controllers user come in a secondary, through a kind of dynamic distribution. This would allow you to move seamlessly between the controllers and have always a consistent user experience, for example, 1 controller can have you choose a range to control (two digital figures), while the controller 2 can have a control point (just a digital), as follows:

    http://i.imgur.com/6QpKXco.PNG

    http://i.imgur.com/u2mla8N.PNG

    You can assume that we have access to instances of the controller class, the class Patient and the model class at this stage of the dynamic allocation.

    When I tried to implement this, I came across some problems:

    http://i.imgur.com/2ZZqdka.PNG

    The error is: "call by reference: refers to a dynamic member VI; The stream of strictly typed reference VI entry connector includes a terminal dynamically a reshipment, which is that he is part of a method of a class of LabVIEW. Dynamic member screws are not supported in this version of LabVIEW by calling the reference node. »

    I understand the problem, it's may be too general for LabVIEW manage cleanly, but is there a way for me to maintain the "kindness" of dynamic distribution in this case accurate?

    What I did do a VI 'protected' which was the dynamic distribution to get the reference to the GUI VI.  This way I could make the object show GUI of the parent if I wanted to rather than making yet another screen.  This VI was called by a public VI that only the top parent class should manage (static shipping).  I did not use the asynchronous call, but I think it would work.

  • Adding a new user with Labwindows/CVI

    Hello

    I really need help I'm strugggling to find a solution.

    I want to add a new user and view the list of users using CVI?

    When adding the user, I would like to add the name and the password as well.

    I don't want to use this TS_EngineDisplayNewUserDialog I want to be done with the user input from all this information that I receive information from Active Directory.

    Is this possible?

    Kind regards

    Shakeel

    HI RaviShrigiri

    Thanks for the reply.

    I found what I needed. http://forums.NI.com/T5/NI-TestStand/can-I-use-Active-Directory-to-validate-users/TD-p/3299366

    I added the creation of a new user and add to a group in the aforementioned project.

    Kind regards

    Shako

  • Text entry mode and user input validation

    Hey guys, someone tried to implement some sort of validation entry on BB 10?

    According to the literature, we have TextField that can be assigned to one of the variants of TextFieldInputMode: URL, PhoneNumber, NumbersAndPunctuation etc.

    There are no examples of this feature in action in the examples of Cascades source code on GitHub.

    I tried almost all variants of documentation and that you do not notice any changes in the local keypad. It always shows all the characters with special keys for user able to grasp everything that he or she wants. I guess that's what we call 'Default' variant of the keyboard. It's not good for me. At least, I want to be able to transmit a user through the regular expression input and generate an alert if something is wrong with the supplied value. But it would be much better to limit user input to some variants of the keyboard (for ex, keypad only)

    Here is my code:
    TextField {}
    ID: iValue
    hintText: "enter your value.
    inputMode: TextFieldInputMode.URL / / change this to what you want - without changes
    bottomMargin: 50.0
    textStyle {base: SystemDefaults.TextStyles.BodyText}

    layoutProperties: {StackLayoutProperties}
    horizontalAlignment: HorizontalAlignment.Fill
    }
    }

    Is it possible to show only digital keyboard and, possibly, use a regexp validation of user input at the moment?

    Yes, this guy's it via textChanging() signal and a regular expression.

    See this post on - http://supportforums.blackberry.com/t5/Cascades-Development/Preventing-non-numeric-key-presses-in-a-...

  • We have a requirement of click to call in installing 10.5 UCCX with customer website (user input) for our customer

    Hello

    We have a requirement of click to call in installing 10.5 UCCX with customer website (user input) for our client, anyone who tested it in the laboratory/prod settings?

    Thank you!!
    Magali

    Hello magali.

    It is possible to deploy with UCCX HTTP trigger type. To get the number of customer via the HTTP trigger to the script. Then we can place the outgoing number of customer to campaign or appeal directly to the customer and place this call to the QSC.

    There are two scripts for web reminder in Cisco repository of scripts, see this http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/cont...

  • User input in Captivate

    Adobe Captivate allows you to get specific user input in a text field? If I ask the user something like what is the capital of the France? and the user has a text field to type - I can't the user to type Paris and get its response validated by Captivate? I saw such a thing already made in Adobe Director. Thanks for your help.

    Typical use case for a text entry area. It is one of the interactive objects, can be validated for a correct response, can be marked and his score can be added to the Quiz Total score.

  • Dynamic stamps with the user input does not work in Acrobat DC

    After the update to Acrobat DC our dynamic personalized stamps no longer work. Pop ups to enter the data of the user are not more. When you open the PDF stamp if they work, but on the stamping stamp is affixed just without asking for user input via javascript.

    Any ideas on how to solve this problem? Is this a bug? Disabled Adobe functionality?

    K

    You should place as the custom calculation of one of the fields script and modify the code to check the stampName property.

    Search for information on dynamic PDF badges. There are many examples and code snippets out there in how to do it properly.

    There is even a whole book dedicated to this topic by Thom Parker.

  • PowerCli script prompts for user input

    Hello

    Below powercli script prompt for user input. Don't know how to fix it. I don't want it calls for the release of the user, as I am the code as part of the largest script runinng. How can I run in silent mode? Any help would be very happy.

    function VMHostDiskDetails {}

    $DateVar = get-date - uformat "% Y-%m-%d_%I.%M.%S.%p".

    $VMHosts = get-VMHost # get all the VM host

    $Datastores = $VMHosts | Get-Datastore # get the info from the data store for all VMHosts

    $VMHostStorage = $VMHosts | ForEach-Object {#Then, for each VMHosts, download the VMHostName

    $VMHost = $_. Name

    $_ | Get-VMHostStorage | Select-Object - expandProperty FileSystemVolumeInfo | `

    {ForEach-Object

    $VMHostStorageName = $_. Name

    Add-Member - InputObject $_ - MemberType NoteProperty-name FreeSpaceMB-value ($Datastores |) Where-Object {$_.} Name - eq $VMHostStorageName}). FreeSpaceMB - PassThru | `

    Add-Member - MemberType NoteProperty-Name HostName-value $VMHost - PassThru

    Add-Member - MemberType NoteProperty-name TimeStamp-value $DateVar

    }

    }

    $VMHostStorage | Select the host name, name, mode, Type, capacity, FreeSpaceMB, path, TimeStamp | Export-Csv VMHostStorage.csv - notype

    }

    VMHostDiskDetails

    Thank you

    M

    The 2nd line Add-Member does not have the object on the pipeline.

    The 3rd line Add-Member had a parameter - PassThru.

    function VMHostDiskDetails {
    
         $DateVar = get-date -uformat "%Y-%m-%d_%I.%M.%S.%p"
    
         $VMHosts = Get-VMHost mmmstv004* # Get all the VM-Hosts
         $Datastores = $VMHosts | Get-Datastore # Get the Datastore info for all the VMHosts
    
         $VMHostStorage = $VMHosts | ForEach-Object { #Then, for each VMHosts, get the VMHostName
              $VMHost = $_.Name
    
              $_ | Get-VMHostStorage | Select-Object -expandProperty FileSystemVolumeInfo | `
    
              ForEach-Object {
                   $VMHostStorageName = $_.Name
                   Add-Member -InputObject $_ -MemberType NoteProperty -Name FreeSpaceMB -Value ($Datastores | Where-Object {$_.Name -eq $VMHostStorageName}).FreeSpaceMB -PassThru | `
                   Add-Member -MemberType NoteProperty -Name HostName -Value $VMHost -PassThru | `
                   Add-Member -MemberType NoteProperty -Name TimeStamp -Value $DateVar -PassThru
    
              }
         }
    
         $VMHostStorage | Select HostName,Name,AccessMode,Type,Capacity,FreeSpaceMB, Path, TimeStamp | Export-Csv VMHostStorage.csv -notype
    }
    
    VMHostDiskDetails
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to get the user input to dynamic Action confirmation message?

    Hi guys,.

    I use apex 4.1.

    I added a page dynamic Action confirmation message box. How can I get the user input to the confirmation pop up?

    Thank you

    Hello

    you do not directly get user input. But you should still be able to get what you want. Suppose you have a dynamic action which fires for a 'change' (or other) and who has two or more actions

    (1) confirm
    (2) execute the PL/SQL Code

    If the user clicks Cancel/no in the confirm dialog box, APEX stops execution of this dynamic action and not run "run the Code in PL/SQL.

    Hope that helps
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to convert user input on the page in capital letters?

    For the experienced:

    I use JDeveloper 10.1.3.4 to develop my application.

    The application has an Oracle database table named USERS. A column named USER_ID, must be uppercase when recording in the table.

    I dragged the create action of the corresponding VO named users to a page to create a commandButton control. When you click this button, the user is navigated to a page "Create an account" to fill in all the fields and save the entry in the USERS table.

    On the page "Create a new account", users of VO is slid to the page as a form of the ADF. The action of validation is dragged to the page as the "Save" button. User input is stored in the USERS table as a new row when the user clicks on the button "Save". But what the user types in the user name field can contain lower-case characters. This entry should be converted to uppercase before saved in the USERS table. I tried to convert the setter in the VO or EO, such as:
        public void setUserid(String value) {
            value.toUpperCase();   //I added this line.
            setAttributeInternal(USERID, value);
        }
    But this has no effect. Then I tried to make a change similar to the Get accessor method, such as:
        public String getUserid() {
            //return (String)getAttributeInternal(USERID);  // this is original code.
            //What I added:
           String uppperUserid = (String)getAttributeInternal(USERID);
            return upperUserid.toUpperCase();
        }
    But I get an error: {color: red} Houston-27019: getting the method for the attribute 'Userid' in users could not be resolved. {color}

    Can anyone help? Thank you very much!

    Newman

    check this one

    ADF faces: how to 'auto UpperCase' on InputText?

    Info. All custom converter...

    Re: all lowercase?

  • To the number of decimal places control user input

    Hey everybody,

    I am all new to LabVIEW and just learn how it works. I was wondering if there was a way to allow user input to change the number of decimal places (the output of my function is infinitely extensible).

    I tried, but it did not work:

    Using a digital input, I appended a string with "%" + '[INPUT]' + 'f' with the number of function concat strings and string functions. I used the resulting string as the formatting string in the value format function.

    This doesn't quite work. The output should be something like "28.274", but instead, it displays "283f. Anyone know why? Is there a better way to do it?

    In addition, attach a picture of the front panel and diagram of block for clarity.

    (Yes, it's homework, but the assignment does not include allowing the user to adjust the number of decimal places, it's just something I would like to add.)

    Get rid of the number 2 for the width of your decimal string number.  It requires a space before a number to a number.  %. 6F is not equal to % .6f.  The string format don't quite understand the first format string.

    (PS.  It helps if you attach your VI.  In this way we can play with what you have rather than trying to recreate it from scratch.)

  • How to: display a message while for loops, with no required user input

    Hi everyone, I'm relatively new to LabView, using 8.5.

    I want to display a message all in one for the loop runs, requiring no user input to delete the dialog box (that is to say, the box disappears after the end of the loop For).

    Any ideas?

    Thank you

    Darren


  • FILTER (KB 911895) NO HIDDEN USER INPUT DATA.

    I have the new Sony Vaio Tower w/Windows 7 Home Edition - the only failed download is HID NON-USER INPUT FILTER DATA (KB 911895).  I read all of the previous answers, but no one says it's function or end? If we do not need then why was he sent us to download?

    See http://windows.microsoft.com/en-US/windows7/Windows-Update-error-80070103 [ignore the error number if necessary]

    HOW to hide an update or restore a hidden update
    http://www.SevenForums.com/tutorials/24376-Windows-Update-hide-restore-hidden-updates.html

    Tip: Get only driver updates you really need from the download page of the device manufacturer or the computer, not Windows Update.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Installation of Microsoft - other hardware - HID Non-User Input data filter (KB 911895) (updated 1 of 15)... failed!

    I can't download this updates?

    Download update of security suites for Microsoft Office 2007 (KB2596672) (updated 7-15)... done!

    Download update of security suites for Microsoft Office 2007 (KB2597162) (update 8 of 15)... done!

    Download a security update for Microsoft Office Word 2007 (KB2596917) (Update 9 of 15)... done!

    Download a security update for Microsoft Office Excel 2007 (KB2597161) (updated 10 15)... done!

    Download a security update for Microsoft Silverlight (KB2636927) (11-15 updated)... done!

    Download update for filter junk e-mail in Microsoft Office Outlook 2007 (KB2687310) (updated 12 of 15)... done!

    Download update for Microsoft Office Outlook 2007 (KB2596598) (updated 13 of 15)... done!

    Download a security update for Microsoft Office InfoPath 2007 (KB2596786) (updated 14 15)... done!

    Download update of security suites for Microsoft Office 2007 (KB2596744) (update 15 of 15)... done!

    Initializing installation... done!

    Installation of Microsoft - other hardware - HID Non-User Input data filter (KB 911895) (updated 1 of 15)... failed!

    Install the update of security suites for Microsoft Office 2007 (KB2596871) (update 2 of 15)... failed!

    Install the update of security suites for Microsoft Office 2007 (KB2598041) (update 3 of 15)... failed!

    Install the update of security suites for Microsoft Office 2007 (KB2596880) (update 4 of 15)... failed!

    Install the update of security suites for Microsoft Office 2007 (KB2597969) (update 5 of 15)... failed!

    Install the update of security suites for Microsoft Office 2007 (KB2596792) (update 6 of 15)... failed!

    Installation of update of security suites for Microsoft Office 2007 (KB2596672) (updated 7 of 15)...

    They all failed

    -Other hardware - Microsoft HID Non-User Input data filter (KB 911895)

    Update of security suites for Microsoft Office 2007 (KB2596871)

    Update of security suites for Microsoft Office 2007 (KB2598041)

    Update of security suites for Microsoft Office 2007 (KB2596880)

    Update of security suites for Microsoft Office 2007 (KB2597969)

    Update of security suites for Microsoft Office 2007 (KB2596792)

    Update of security suites for Microsoft Office 2007 (KB2596672)

    Update of security suites for Microsoft Office 2007 (KB2597162)

    Update of security for Microsoft Office Word 2007 (KB2596917)

    Update of security for Microsoft Office Excel 2007 (KB2597161)

    Update for the filter of junk e-mail in Outlook 2007 (KB2687310)

    Update for Microsoft Office Outlook 2007 (KB2596598)

    Update of security for Microsoft Office InfoPath 2007 (KB2596786)

    Update of security suites for Microsoft Office 2007 (KB2596744)

    Thank you

    Tip: Get a driver updates you really need from the download page of the manufacturer of the device or the computer only, NEVER through Windows Update (i.e., hide the driver updates available through Windows Update).

    ACTIONS

    1. open Internet Explorer (only!) to http://support.microsoft.com/kb/910336 [ignore the title & symptoms].

    1B. IMPORTANT!-online make disappear/close theTroubleshooting Windows Update tool ""pop up! "   " -then...

    1 c. ignoring "not recommended" or similar warnings, difficulty running it 50202 DEFAULT modes and AGGRESSIVE. [1]

    2 reset.

    3. open Internet Explorer (only!) at http://windowsupdate.microsoft.com . Select CUSTOM and scan | Installation of Security updates (e.g., KB2596871;) KB2597162) available now.

    -Online if an update root certificates (KB931125) is listed under the category of updates software optional on the left side of the window of scan results, install it to enjoy greater security of IE8.

    -Online also install the junk e-mail Filter Outlook update (KB2687310) as well as Update for Windows XP (KB971029) if it is offered.

    -Online Tip: do NOT install any other optional software updates or upgrades optional equipment (e.g., KB911895) - just hide them ("don't show me this update") all.

    4. in response to this post with a status report.

  • Get errors for the user input data filter no KB 911895 HID

    OT: iI have windows xp S/P 3 installed also apple i pad I get errors for the user input data filter no KB 911895 HID
    What should I do to get rid of this popup that wizzard windows keeps giving me?

    Hi Graybeard,

    What is the exact error message you get?

    HID Non-User Input data filter is an optional update. I suggest you try the steps from the following link:

    The screen saver does not start after the installation of a wireless pointing device
    http://support.Microsoft.com/kb/913405

    What version of the operating system Windows am I running?
    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update
    http://support.Microsoft.com/kb/910339

Maybe you are looking for

  • App Store feature tab in the app to watch no longer works.

    Right now, I can't use the app store of Apple Watch because if I open the application on multiple devices that have different versions of iOS and tap the category recommended on all downs that appears is a blank tab nothing in the window... and it se

  • NEED HELP! Cannot burn CDs...

    I was given a HP Pavilion a405n, which has Windows XP on it. I've updated most of the drivers already, but it is impossible to update the drivers from CD/DVD. Creation of dvd - rom and HP CD-Writer + 7200. I don't have the recovery disks that accompa

  • HP Pavilion 500-326na: graphics upgrade on HP Pavilion 500-326na card

    Last year, I bought a HP Pavilion 500-326na, and recently, I decided that I would update the graphics card. The card that I'm looking is the nVidia GeForce GTX 750 Ti. This would be consistent with (and in the form of) my computer? In addition, I'm n

  • DIO - single vs writing Port (U8)

    I have a weird situation: I use a card digital I/o NI 6509, with 4 digital outputs x connected to P2.3 via P2.6. 1. set up a task to write these lines using a global virtual channels group - quite to the MAX. 2. I used this previous task/configuratio

  • music player for Windows, to much echo

    When I play music from my music player, the sound must echo a lot or as if it was recorded in a cave