Can't add members to a collection

I'm following the how to on manual forms. I'm trying to create the collection that is used for validation. I keep getting a ORA-06550, PLS-00306 error wrong number or types of arguments in call to 'ADD_MEMEBERS'. I'm using the code below. Any help would be appreciated. Thanks, Elizabeth
declare
la_cks wwv_flow_global.vc_arr2;
begin
if apex_application.g_fcs.count > 0 then
la_cks := apex_application.g_fcs;
else
la_cks := apex_application.g_f06;
end if;
apex_collection.create_or_truncate_collection('UPDATE_LANG');
apex_collection.create_or_truncate_collection('INSERT_LANG');
for i in 1..apex_application.g_f02.count
loop
if apex_application.g_f02(i) is not null then
apex_collection.add_members(
p_collection_name => 'UPDATE_LANG',
p_001 => apex_application.g_f01(i),
p_002 => apex_application.g_f02(i),
p_003 => apex_application.g_f03(i),
p_004 => apex_application.g_f04(i),
p_005 => apex_application.g_f05(i),
p_006 => la_cks(i)
else
apex_collection.add_member(
p_collection_name => 'INSERT_LANG',
p_001 => apex_application.g_f01(i),
p_002 => apex_application.g_f02(i),
p_003 => apex_application.g_f03(i),
p_004 => apex_application.g_f04(i),
p_005 => apex_application.g_f05(i),
p_006 => la_cks(i));
end if;
end loop; end;

Thanks, I thought for sure it would work. Here is the code I use to generate the report:
select apex_item.checkbox (1, ceah_people_lang_id,
'onclick="highlight_row(this,' || ROWNUM || ')"',
null,
'F1_' || LPAD (ROWNUM, 4, '0')) delete_checkbox,
apex_item.hidden(2,ceah_people_lang_id)
||
apex_item.select_list_from_query(3,language_id,'select language_name, language_id from foreign_language',null,'NO') language_id,
apex_item.hidden(4,ceah_people_id) ||
apex_item.select_list_from_query(5,proficiency,'select name, id from proficiency',null,'NO')
||apex_item.hidden (6, wwv_flow_item.md5(language_id, proficiency)) proficiency
from ceah_people_language where ceah_people_language.ceah_people_id = :P152_person_id
union all
select apex_item.checkbox
(1,
null,
'onclick="highlight_row(this,' || ROWNUM || ')"',
null,
'F1_' || LPAD (ROWNUM, 4, '0')) delete_checkbox,
apex_item.hidden(2,null) ||
apex_item.select_list_from_query(3,null,'select language_name, language_id from foreign_language',
'style="width:170px" ' ,
'YES',
'0',
'- Select Foreign Language -',
'f3_' || LPAD (9900 + ROWNUM, 4, '0'),
NULL,
'NO'
) language_id,
apex_item.hidden(4,null) ||
apex_item.select_list_from_query(5,null,'select name, id from proficiency',
'style="width:170px" ' ,
'YES',
'0',
'- Select Proficiency -',
'f5_' || LPAD (9900 + ROWNUM, 4, '0'),
NULL,
'NO'
||apex_item.hidden (6, null)
proficiency
from dual where :request = 'ADD_ROWS'
connect by level <= 2
And here is the code I use to generate the collection with your suggestive changes:
declare
la_cks wwv_flow_global.vc_arr2;
vchecked varchar2(1);
begin
if apex_application.g_fcs.count > 0 then
la_cks := apex_application.g_fcs;
else
la_cks := apex_application.g_f06;
end if;
apex_collecTion.create_or_truncate_collection('UPDATE_LANG');
apex_collecTion.create_or_truncate_collection('INSERT_LANG');
for i in 1..apex_application.g_f02.count
loop
vchecked := 'N';
if apex_application.g_f01(i) = apex_application.g_f02(i) then vchecked := 'Y';
end if;
if apex_application.g_f02(i) is not null then
apex_collection.add_member(
p_collection_name => 'UPDATE_LANG',
p_c001 => vchecked,
p_c002 => apex_application.g_f02(i),
p_c003 => apex_application.g_f03(i),
p_c004 => apex_application.g_f04(i),
p_c005 => apex_application.g_f05(i),
p_c006 => la_cks(i));
else
apex_collection.add_member(
p_collection_name => 'INSERT_LANG',
p_c001 => vchecked,
p_c002 => apex_application.g_f02(i),
p_c003 => apex_application.g_f03(i),
p_c004 => apex_application.g_f04(i),
p_c005 => apex_application.g_f05(i),
p_c006 => la_cks(i));
end if;
end loop; end;
Thanks for all of your help, Elizabeth

Similar Messages

  • Can not add members to a Group as Group Administrator

    Hi,
    My collegue has created a Group 'WE_PM_group' and added me to that Group with role 'Group Administrator'.
    But when I connect to the 'Create Group Or Add New Members' tool, then after SSO and acknowledging the 'read and understood Beehive Online Guidelines', it does not show the 'WE_PM_group' (it shows no Groups) and I can only Create a group.
    My question : how can I add members to the Group that my collegue created and for which I am Group Administrator ?
    Note : When I connect to the BeehiveOnline Administration Tool, I indeed see my e-mail address within the Group 'WE_PM_group' and with the correct role (Group Administrator)
    Thanks for your help,
    Peter

    If you go to the APEX app and have any group - like your Administrator - you will have a list of group - each of them is a hyperlink. Click on the group and the Group settings will be displayed - one of the fields is the Manager email. Get him/her to puit your email in that field, separated by a comma, and you are good to go.
    Phil

  • Add members to a collection

    Collection1:Test
    SELECT apex_item.checkbox(10,c001) order_id
                 , apex_item.display_and_save (12, c002) QTY
                 , apex_item.display_and_save (14, c003) UNIT_PRICE
            FROM   apex_collections
            WHERE  collection_name = 'Test'
    ....Collection2:
    SELECT * FROM (SELECT apex_item.checkbox(20,c001,'UNCHECKED') SELECT
                 , apex_item.display_and_save (22, c002) QTY
                 , apex_item.display_and_save (24, c003) UNIT_PRICE
            FROM   apex_collections
            WHERE  collection_name = 'source')
    ....The above query is used to generate a report.
    Requirement: I want to add records to the collection TEST (below javascript function and ondemand process created) from other collection (SOURCE) based on checked item (order id) value from another report which is based on another collection.
    function callprocess(){
    var arr_f20=new Array();
    var ajaxRequest=new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=test',0);
    arr_f11=document.getElementsByName('f20');
    for(i=0;i<arr_f20.length;i++){
      if(arr_f20.checked){
    ajaxRequest.addParam('f01',arr_f20[i].value)
    var ajaxResult=ajaxRequest.get(); alert(ajaxResult);
    ajaxRequest=null;
    BEGIN
      FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
      apex_collection.add_member (p_collection_name => 'Test', p_c001=> APEX_APPLICATION.G_F01(i));
      END LOOP;
    END;I am successfully being able to add 1 member (p_c001). But I am not being able to figure out how to add other members ie, p_c002,p_c003 to the collection TEST
    Thanks for the help!
    Regards,
    Ved

    Hi Ved,
    to add members to a collection you should use this command:
    apex_collection.add_member(
    p_collection_name => 'Test',
    p_c001 => APEX_APPLICATION.G_F01(i),
    p_c002 => APEX_APPLICATION.G_F02(i),
    p_c003 => APEX_APPLICATION.G_F03(i)
    Question
    - the column APEX_APPLICATION.G_F01, does it contain rownum or an ID of the primary key of the table?
    if pk then you have to change the code like this:
    apex_collection.add_member(
    p_collection_name => 'Test',
    p_c001 => APEX_APPLICATION.G_F01(i),
    p_c002 => APEX_APPLICATION.G_F02(APEX_APPLICATION.G_F01(i)),
    p_c003 => APEX_APPLICATION.G_F03(APEX_APPLICATION.G_F01(i))
    TIPP
    - you should use upper case names for your collection then you are not running into an error (not finding collection), because when you query your collection you would enter something like:
    SELECT c001 test1, c002 test2, c003 test3
    FROM APEX_collections
    WHERE collection_name = collection_name
    the name of your collection is always changes to upper case when creating the collection.
    so in any query for selecting rows of your collection you have to use the upper case of your collection_name,
    regards,
    Denise
    www.appsassociates.de

  • How can I add members to a role by script in the tabular model?

    How can I add members to a role by script in the tabular model?  I have the role set up, and I have a security table created that contains the domain/userid of all of the users that I'd like to add to that role.  Can this be done by script rather
    than manually?  

    <Name>ReadAllRole</Name>
    <Members>
    <Member>
    <Name>xxxxxxx\xxxxx</Name>
    <Sid>x-x-x-xx-xxxxxxxx-xxxxxxxxxx-xxxxxxxxx-xxxxx</Sid>
    </Member>
    </Members>
    Where would I find the Sid to add the members? 

  • Can not add members

    Good morning everyone,
    The thing is the link for add members doesn't works and I cannot add/remove members,
    Thank you in advance for your answers
    Best regards
    EDIT : title/message case changed

    If you go to the APEX app and have any group - like your Administrator - you will have a list of group - each of them is a hyperlink. Click on the group and the Group settings will be displayed - one of the fields is the Manager email. Get him/her to puit your email in that field, separated by a comma, and you are good to go.
    Phil

  • How can I add a 200 gig collection containing 1 corrupt song to iTunes...

    ...given that the program crashes if it encounters a corrupt file during the import process, and fails to save any of the songs it has imported so far?
    I seriously hope the answer is not "hold the software's hand as you import the albums one at a time, close the program, and reopen it to save your progress"

    I'm not sure if I clarified the situation enough.  The collection of music is already in the iTunes folder.  But iTunes itself only recognizes music once it's built a little database of what is in the iTunes folder. Normally you can do this by Add Folder To Library and selecting multiple folders, or even a folder containing all the music you want to add... and it would all go swimmingly except if it encounters a bad file at any point, it just chokes.  This itself could be worked around, but it'd be a rather tedious process, especially if it turns out there are multiple bad files.

  • Using a security group to add members to the collection question

    Hi,
    I have a collection created in SCCM 2007 that is using a security group for membership. So I added a computer to the security group in AD but when I go to SCCM and click on the collection I dont see the computer in the collection. Should it show here or
    because it is a security group based membership will it not show the members?
    THanks!

    Details from Active directory are added to SCCM database through discovery methods. Please ensure that AD security group discovery and AD system discovery are enabled in the primary site. If they are enabled, check the frequency set for these discovery
    methods. Once you added these computers to the AD group, you need to wait till the next discovery cycle before it appears in SCCM collections. Till that point, SCCM database will not have information about the group memberships of these computers

  • Can I add my existing, licensed apps to my list of 'Purchases' on the Mac App Store so I don't have to buy them twice?

    Hello,
    I was wondering if I could add my existing, licensed apps to the list of app 'Purchases' that I have on the Mac App Store.
    The reason for this is that I recently suffered the inevitable hard disk failure and I had to rebuild my MacBook Pro from scratch (with the help of Time Machine and Migration Assistant, etc.). As usual, I hadn't really maintained my MBP for quite a while and things sort of got away from me, in terms of data, apps, preferences, permissions, users (my personal account, my wife's account, my old work account...), etc.
    So I wanted to rebuild my MBP on a clean slate. I like having the ability to quickly download and install just the right apps that I "really" need from MAS safe in the knowledge that:
    they are there (assuming they're still available through MAS) with a full description of what they do and when I bought them, etc.
    they are going to be in the most up-to-date version,
    I'll be able to download and install them cleanly with no corruption from years of multiple user preference changes and permissions, etc.
    that they will be managed and maintained (updated) through the same mechanism,
    so much more.
    The benefits of having apps from MAS are easy to see when compared to going through my downloads folder and emails looking for the latest installers, working out what they're for in the first place, finding the license key in some forgotten e-mail, etc.
    I am aware that I can build a clean machine and then restore just the right apps in their most up-to-date version as I had them on my backups.  The one thing to say about that is that the apps may have been used and abused once too many times and their preferences, etc. may not be in the most desirable form. It's just not as elegant as the MAS solution.
    I realise that not all apps, app versions, or app vendors, are available through MAS. But I still have a fair few apps currently available on MAS that were bought prior to the existence of MAS, prior to them becoming available on MAS, or were bought directly for some other reason (by mistake).
    So I wondered if there was any way I could convert my legitimate licenses from simply a direct purchase to one through MAS and have those apps listed under my 'Purchases' list. It would reduce the amount of work I'd have to do, not only to rebuild my machine but also to maintain it.
    I cannot find any reference or way of having this work the way I would like it to. But I was hoping that some Apple guru would enlighten me.
    I have thought about the possible mechanisms something like this would need to work and I must admit I see some not insurmountable issues (not as much technical as legal or possibly logistical). I realise that MAS is a service in its own right and as such has its own Terms, Conditions and Licensing that may not be compatible with the licenses that I already have. I also realise that when I purchase an app from MAS that I'm paying for the entire service including updates and use on multiple machines that I may own, etc. Obviously I do not want to pay the full purchase cost again for the same app twice, but I am willing to pay a small conversion/upgrade fee to have it managed as part of my 'Purchases' on MAS.  Think of it in the same terms as iTunes works.  I can purchase music, etc. but I can also add my own CD collection and have it managed by iTunes and store it in the cloud should anything go wrong with my local machine, etc.
    So if this is currently not possible, then for the Apple MAS product managers out there, consider this as a suggestion/feedback.  I'd be happy to discuss my thoughts in more detail about not only how to achieve this for now but also for the future when you may add existing applications to MAS that people may have previously bought direct and would like to have managed through MAS going forward. The benefits to the users are hopefully clear, but from Apple's perspective I hope that you can see the advantages too, commercially, etc.
    PS: I apologise for the wordiness of my query and overuse of 'etc.', etc.

    Can I add my existing, licensed apps to my list of 'Purchases' on the Mac App Store so I don't have to buy them twice?
    No. Only apps purchased from the App Store can be re downloaded for free including updates.

  • Add repeating entry to collection

    Hi
    How can I add repeating entry to collection. For example by pressing button it add entry to collection with date column on 1st of month and with text "example" in column Text for 5 years so the collection will looks like this
    1/1/2014   example
    2/1/2014   example
    3/1/2014   example
    12/1/2018  example

    We do not currently support the list comprehension sort of construct that you describe. However, you can use the timer control to simulate iteration. Hopefully the following example will help you get started.
    Add a timer control to your canvas. Change its properties as follows:
    TimerEnd: UpdateContext({TStart:100});UpdateContext({TStart:0});UpdateContext({counter:counter+1})
    End: 2
    Start: TStart
    Text: "Timer: " & counter
    Now hit F5 to go to preview mode. Click the timer control. You will see it steadily increasing--you can speed up by setting Interval to 0.1 or something like that.
    What is happening is that the timer is going from 0 to 2. When it hits 2, the TimerEnd rule resets TStart to 100 and then to 0--the variable's value needs to change for data to flow. This will cause the timer to continue in a loop. We also increment
    counter--this value is displayed on the timer itself because of the Text rule above. What you now have is essentially a while loop and you can add Collect statements to the end of the TimerEnd rule to collect values of the counter.
    You can also set termination condition:
    TimerEnd: If(counter < 5, UpdateContext({TStart:100});UpdateContext({TStart:0});UpdateContext({counter:counter+1}), false)
    I hope that gets you started :-)

  • HT1589 Can I add apps in other family members library to mine?

    I have an iphone
    Daughter has an ipod
    - - both use the same itunes account for store/music purchases within each device.
    When using the Computer/iTunes
    - - for simplicity sake I want to make a new Library for my daughters iPod, she just needs to see her simple song collection, not my EXTENSIVE one.
    I would like her to be able to access my App library some how, since it is not as crazy/large.
    what is the BEST approach for this ?
    God Bless and Thanks in Advance !

    When I'm listening mi iTunes, I'm able to see other
    people libraries, and I wondering if its possible to
    add some of their songs to my library? If this is
    possible, how can I add it?
    No that would be stealing. You do not own the rights to that music.

  • How can i add songs to a family members ipod without erasing existing songs

    How can i add songs to a family members ipod without erasing her existing song list.

    For future reference, since I came here for the same reason, I'd like to add to the solution.  The link was not complete in explaining how to, but then again I'll just trying to attempt to fill in the gap.
    After opening iTunes, on the upper left hand side is a small icon with an arrow pointing down. Click on the arrow and a menu pops out.  Click on "Show Menu Bar."  On the new bar(Older iTunes File, Edit, View, Controls, etc. bar at the top).  Click on View and then Show Side Bar.  There you can just click and drag new songs into your iDevice without any problems... hopefully...
    Seriously, this helped me, so if Apple finds a way to not allow me to do this simple task of adding purchased songs into my idevices from another computer, I'll have to resort to other means.
    The one idevice that's having trouble with is my iShuffle(2nd). 

  • SCCM 2012 - Creating a Collection with Limiting memebers to 5 or 10 Computers even the Memebership Query can pull 1000 members

    Dear Brothers,
    I am deploying a huge application (requires 45 Minutes to Install, 3 to 5 Restarts), and I need to limit the deployment to 5 computers at a time. Limiting my Network Load and also the availability of the computers in operation as it requires a successive
    Restart.
    My aim is to "Create" a "Collection" to focus on deploying the software to
    5 computers at a time. The collection that limits to 5 computers can help our production environment to focus on the total deployment time without disturbing other computers.
    Regards,

    I would use powershell to do this. Create a Collection with all the computers that should get the application.
    Then in powershell - get all the members of that Collection into a variable. Use that variable as a basis for creating new Collection and create some logic that takes 5-10 machines and put those into a new Collection and then takes the next 5-10 machines
    and so on.
    I guess you could also do it using a combination of Query and Exclude Collections membership rules, but you would have to do it manually.

  • Can't add or remove members from an exchange 2010 distribution group

    Hello.
    i have exchange 2010 SP1. When i connect to the server with administrator login in the EMC, i can't add or remove members from distribution group. I don t understand why because i am admin. I have this error : "You
    do not have sufficient permissions. This operation can be performed by a group leader"
    how i can change this. I wan t only admin can edit members group
    hanks for help

    Hi,
    If you have checked the permission, I suggest you checking the Membership Approval configuration.
    1. Closed the option “owner approval is required to join the group”
    2. Open the option “anyone can leave this group without being approved by the group owners”
    To do this, follow the details at
    http://technet.microsoft.com/en-us/library/bb125178.aspx
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Can I add more then one mask item on the data collection ?

    Hi,
    I have a requirement, for example as follows.
    ex.
    Data collection: DC01
    Parameter 1: P1 and Type is text.
    P1 parameter just only allow two values, "AB" or "CD".
    Data collection's mask can do that?  If not, any good soultion can do that?
    thanks!

    Hi,
    There might be the case to use Formula to interpret the input value to one of 3 possible options.
    Though, you can consider the easier approach:
    - set the parameter type to Numeric;
    - set MIN = 1;
    - set MAX = 3;
    - set Mask = #.
    This implies that only 1, 2, or 3 can be entered.
    In Data Collection Prompt, you can decribe which number corresponds to which colour.
    Regards,
    Sergiy

  • HT1473 Can I add drama  I have 12 disk collection of a Lord of the Rings BBC dramatic series.

    Can I add drama cd's to my itunes music library?  Is there a separate category for cd's that are not simply music?  I have a 12 disk set of a Lord of the Rings dramatic series.

    You'll probably want to include these as "audiobooks". See Audiobooks on iPods for tips.
    tt2

Maybe you are looking for

  • Unable to Access Web Site (with same name) outside of Local Network

    Hi everyone, I have my web site (and some other services) hosted outside of my network by my hosting provider, but handle all other items using OS X Server on my network (i.e. Wiki and so forth). The problem is now that I am unable to access my websi

  • Envy dv6 notebook - Hard drive failure - How do I get windows 8 reloaded on my Notebook

    Hard drive failed in the notebook / laptop. How do I get windows 8 back on the new drive? Hp told me they will not send or sell me recovery disks. WHat kind of crap is that? Help!

  • WRT54G won't go online...

    I had to reformat my laptop because I had a rootkit virus.  I also reset my router & now it will not recognize my internet connection on either computer.  When I run the wizard, even tho my dsl modem says it's connected and the router is lit up as it

  • How can I create 3D visuals using existing artwork?

    I have designed some packaging artwork using Illustrator which looks fine although I would like to see the artwork as it would look when made up. The artwork will be used for pouches, bags and boxes. Is there a way of creating a generic 3D pouch, bag

  • Can you use ilife music on imovie videos to post on Facebook?

    I thought that it was safe to use the music/sounds that came with IMovie on videos and post them without copyright issues.  But when I tried to post one to Facebook they told me it was a copyright infringement, and are requiring me to dispute it.  Be