Add member to a collection !

Hello!
I have a report region based on a content of a collection, the report item that display one of the members of the collection is a popkey lov item that I create using : htmldb_item.popupkey_from_lov
my problem is : when I add a member to a collection, the report is not refreshing !
I dont't now if the member is not added or another thing !
But if I make the report item a simple text field, all is correct ?
Any help ?

jina--
when talking about web pages, the term "element" generally refers to a single form element. for example...
<input type="TEXT" name="myformelement" size="20" maxlength="20" />
...is a single form element. a report region like this...
select ename, htmldb_item.checkbox(1,empno,null) c from emp
...would render one form element for each row in EMP. anyhow, now we've cleared that. please take a look at the example i posted for "chris" at...
Re: radiogroup keep set: more problem
...i just took that example and replaced the queries for regions 2 and 3 with...
select htmldb_item.popupkey_from_query(1,null,'select ename, empno from emp') c from dual union all
select htmldb_item.popupkey_from_query(1,null,'select ename, empno from emp') c from dual union all
select htmldb_item.popupkey_from_query(1,null,'select ename, empno from emp') c from dual union all
select htmldb_item.popupkey_from_query(1,null,'select ename, empno from emp') c from dual
...and...
select ename, htmldb_item.popupkey_from_query(1,c001,'select ename, empno from emp') c
from htmldb_collections c , emp e
where nvl(collection_name,'TRAPPED_VALS') = 'TRAPPED_VALS'
and empno = c001
union all
select null ename, htmldb_item.popupkey_from_query(1,null,'select ename, empno from emp') c from dual union all
select null ename, htmldb_item.popupkey_from_query(1,null,'select ename, empno from emp') c from dual union all
select null ename, htmldb_item.popupkey_from_query(1,null,'select ename, empno from emp') c from dual
...respectively. with only that change to the example, the page seemed to work exactly as you've attempted to describe your requirement.
--raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Button to add member to collection

    Hi,
    I created the following collection in the before-header page process and also created an updatable report region. How can I create a "ADD ROW" button in that region in order to add a member to the collection. That is, I want to be able to click the "ADD ROW" button so that it will call the PL/SQL to do wwv_flow_collection.add_member().
    Here is the collection:
    -- reset collection
    if apex_collection.collection_exists(p_collection_name => 'FUND') then
    apex_collection.delete_collection(p_collection_name => 'FUND');
    end if;
    -- populate collection
    apex_collection.create_collection_from_query(
    p_collection_name => 'FUND',
    p_query => 'select
    f.hr_form3_funding_pk,
    f.hr_vacancy_pk,
    f.budgeted_class,
    f.index_code,
    f.position_control_no,
    f.sub_fund,
    f.budget_program,
    f.project_code,
    f.grant_code,
    f.funding_percent
    from hr_form3_funding_new f
    where hr_vacancy_pk = 14448');

    Hi,
    I know this post is over a year old, however I am running into the same situation and was wondering if you were able to resolve adding a row to your collection.
    I have a similar create collection before header and have created an updateable sql report from the collection. I used the wizard to create an add row button without success and have also tried calling the following pl/sql process from a button on the report thinking that it would insert a row into the collection and would appear on the report when re-queried however this also does not work.
    APEX_COLLECTION.ADD_MEMBER (
    P_COLLECTION_NAME => 'AGMT_TMK',
    P_C001 => :P594_AGENCY_ID,
    P_C002 => :P594_AGMT_DOC_NO,
    P_C003 => null,
    P_C004 => null);
    Any pointers would be greatly appreciated.
    Thanks,
    Mike

  • 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

  • Add-Member Value help

    I'm building an array and wanted to add the below property:
    $TEMPARRAY | Add-Member -Type NoteProperty -Name TEST -Value "$($item.Member[0].Address)"+":"+"$($item.Member[$i].Port)"
    PS complains about not specifying a secondary value.  I had to create a new variable for the desired value, and then set value to the new variable.  Is there any way to do this without the extra variable?
    $NEWVAR = "$($item.Member[0].Address)"+":"+"$($item.Member[$i].Port)"
    $TEMPARRAY | Add-Member -Type NoteProperty -Name TEST -Value $NEWVAR

    You use the += operator to add an element to an array.
    Alternatively, you can create your array using ArrayList and use the Add method:
    http://msdn.microsoft.com/en-us/library/system.collections.arraylist%28v=vs.100%29.aspx
    http://technet.microsoft.com/en-us/library/ee692802.aspx
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Can we add member directly in to dataforms with out editing dataform layout

    Hi All,
    i have a query regarding dataform can we add member in to dataform with out editing dataform layout .
    Member is already in dimension hirerachy . but in my scenario user want to add member directly to dataform with out editing its layout
    is it possible ? if its possible how please let know how it is possible.
    Thanks in advance please help me out
    Regards,
    SM

    You can add row/column layout you can select: Allow users to dynamically add rows.
    It will "Enable users who have write access to the data form to dynamically change and refresh the data form’s definition by adding rows. Selected members that they can access display on the data form. You cannot simultaneously select Allow Users to Dynamically Add Rows and Suppress Missing Data. "
    Enabling Users to Add Rows:
    http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch06s03s15.html
    Cheers..!!!
    PS: I can see that you have asked 8 questions are all of them are unresolved, its a good practice to mark the answers as correct or helpful, if you think they helped you and close the thread once your got your answers.
    Here are few Ex:
    hyperion planning
    hyperion planning workforce &capex
    Edited by: RahulS on Aug 17, 2011 6:09 PM

  • Ways to add photos to a collection?

    When editing images (meaning, performing selects/rejects) I like to use collections. Is there (or can there be) a better way to add images to a specific collection other than dragging & dropping? It might be beneficial to have a contextual menu to send selected photos to an existing collection. As it stands, there's an option to add to a Quick Collection or to find what collections a particular image currently resides in. I don't like using Quick Collections, especially if I have several collections that one image might go into, so it would just double my work to go from Quick Collection and then into the collections I really wanted in the first place.
    Is what I'm looking for possible? If not, is that something anyone else here would find useful? What's the method of requesting features from Adobe?

    You can press "B" to add to a quick collection for temporary use and then move the entire quick collection to a permanent collection later if you needed to.
    edit sorry i missed the OP.  Disregard

  • Add member in Distribution List from Sql file or Sql Server

    Hi 
    I want to add member in Distribution List in MS Exchange 2010 using MS Sql Database file
    How to create connectivity between MS SQL file and MS Exchange 2010 ?
    and manage DL also add and remove member from DL?

    The answer to your question depends on the version of SQL Server and Exchange you are running.  If you have Exchange 2007 or higher, and if you have SQL Server 2010 or higher, you can load support for both in a PowerShell session.  Otherwise, you
    will need to write an application to join the two.  It may be simplest to schedule a flat-file dump from your SQL Server database, and use that to pull DL membership into Exchange - I know several third party corporations that have done this for their
    Exchange 2003 (and earlier) management add-ons.
    And before you ask, it would take too much time for me to explain how you would need to connect to and interact with the SQL Server database using PowerShell (or how to dump a flat-file from it, for that matter) for me to do it here.  I suggest you
    search the web for SQL Server PowerShell or SQL Server export
    for that information.
    Once you have the information from SQL Server, it's a simple task to run Add-DistributionGroupMember to add members and Remove-DistributionGroupMember for DL membership management.  I'll caution you, though - if you are going to do massive updates to
    a large distribution group, it would probably be faster to use DL management in AD.  The reason for this is that you can add or remove several group members at once using the AD toolset, but you can only work with individual members with the above Exchange
    commands.  And working with individual members means enumerating the entire group membership for each update - and with large groups, this takes a lot of time.

  • How to add books to a Collection directly

    The way the software seems to work, you add books to the library, then add them to a collection.
    This will not work for me, as I have thousands of books, all neatly sorted in directories. If I add them all, I will have to manually figure out which collection to put them in.
    Is there a way to add books directly to a collection?

    The following article gives instructions on how to create and add to collections on your Sony Reader:
    http://www.kb.sony.com/selfservice/micr ... 0226098574
    There currently is no method for converting a computer's folder structure to create collections on your Reader automatically, you will need to transfer the files first and then add them to collections.

  • Add member at runtime

    How can I do to create or add member to an instance of a class at runtime?

    I'll be surprised to learn that's possible (in any reasonable way).It's easy to understand that I am a beginner. :o(
    Do I understand correctly that you want to dynamically define classes? Yes! But I see that's not possible.
    If so, why?I've an abstract class that execute some SQL operations defined in the extended classes, so
    I'd hope that defining properly the attribute on an external file (XML, properties...) and parsing it, that'll be possible..
    Tnx

  • SCCM 2012 Security to allow users to add resource to a collection

    Hi,
    I need to permission IT Support staff so they are able to add computers to certain collections in SCCM 2012. I created a new Role and assigned the following permissions under "Collection"
    Read, Modify, Modify Resource, delete resource, read resource, Modify Collection setting, read AMT.
    Also allowed read at site level.
    Users are still unable to add computers to a collection ? Any ideas why ?
    I did read a previous post which said something about also having to permission users to the limiting collection but this doesnt make sense, and sounds insecure.
    Thanks

    Here is a solution that should work for you. Perform this on a test account with only the security role you are going to change for your users in question.
    Create a new collection that is a copy of your collection limiting collection mentioned above.
    Set the limiting collection of this new collection to something other than the limiting collection it defaults to, which is the copied collection.
    Select the collections to which you wish to grant Add Resource permissions to and set their limiting collection to this new collection.
    Within your Administrative user or group properties, specify this new limiting collection and the collections you wish to allow Add Resource permissions under the "Associate assigned security roles with specific security scopes and collections - don't forget
    to add your security scope.
    Apply the changes and test - don't forget to restart the console of your test account.
    This does a couple things - it allows the Add Resource function to the specific collections you wish for the specific Administrative user/group you wish.  It does NOT allow modify on the limiting collection. And it separates the specific collections
    you tag as being modifiable by the specified group.
    We had the same issue in our environment - need a specific group to be able to Add Resource to a single specific collection which was being limited by the All Workstations collection.  Allowing modify to the All Workstations collection allowed modifications
    to any collection limited by All Workstations. So I came up with the solution above, tested against my test accounts and it works as I needed.
    Hopefully this will solve your issue and give you some options going forward.

  • Working with Export-CSV and add-member

    Hello, I am working on a powershell script that allows for a list of IP addresses to be stored in a file. This file is then imported into the powershell script. Then while these IP addresses are there, there are certain things that i am wanting to retrieve
    from each IP address such as Operating System Type. 
    My code is as follows so far:
    # Checks the file IPAddresses.txt for a list of IpAddresses to run against.
    #$computerlist= Get-Content c:\IpAddresses.txt
    #declare an array to cllect our results objects
    $resultsarry = @()
    $computer = $ComputerListA
    # checks each item inside of the IpAddresses.txt file.
    Foreach ($IpAddress in (Get-Content c:\IpAddresses.txt))
    # Gets the IpAddress of the Computer that we are checking against.
    $IpAddress = Get-WmiObject Win32_NetworkAdapterConfiguration -ComputerName $IpAddress | Select-Object IpAddress
    # Gets the Type of operating system from the computer we are checking against.
    $OperatingSystemType = Get-WmiObject Win32_OperatingSystem -ComputerName $IpAddress | Select-Object Caption
    #Writes to the host the output received in previous commands.
    write-host "IpAddress is $computerlist"
    write-host "Operating System = $OperatingSystemType"
    # Creates a new custom object to hold our result.
    $OutputObj = new-object PSObject
    $OutputObj| add-member -membertype NoteProperty -name "IpAddress" -Value $IpAddress
    $OutputObj| add-member -membertype NoteProperty -name "Operating System" -Value $OperatingSystemType
    # Adds our new Object into the array.
    $resultsarray += $OutputObj
    # exports the results of the script to this csv file below.
    $resultsarray | Format-Table -AutoSize
    $resultsarray | Export-Csv -NoTypeInformation -Path C:\OperatingSystems.csv
    write-host "Script complete reached end of file and out of IP Addresses to search against."
    write host "Results were sent to C:\OperatingSystems.csv"
    When running the code I am receiving the follow errors:
    IpAddress is
    Operating System =
    Method invocation failed because [System.Management.Automation.PSObject] doesn't contain a method named 'op_Addition'.
    At C:\Users\cos04\Desktop\ram.ps1:36 char:5
    + $resultsarray += $OutputObj
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

    Looks like a simple typo.
    $resultsarry = @()
    should be
    $resultsarray = @()
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • 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 :-)

  • How do I add photos from another collection to my saved Book?

    Hi,
    In my lightroom library I have created a collection set called "Wedding". As I have 1000 photos from my wedding, within this Collection Set I have created 10 or more Collections to organise these photos (Ceremony, Reception, First Dance, etc.).
    I have created a new 'Book' which as expected, has created a new Collection within my 'Wedding' collection set.
    When I first create the book (before saving it) it seems like I can click on a page, then browse my Collections and add the photo that I desire to the page.
    After I have saved the book, I can't so this. I want to work on my book later, and use my existing organisation of photos, and add photos to my books from these collections.
    I know I am missing something basic (I am new to lightroom). I don't understand why I can't add a photo to my book after I have saved it.
    Each time I click on one of my other collections, a new unsaved book appears in the main project window.
    I have worked out that if I copy all my wedding photos into the new "Book" collection, then my photos are available for use - but this defeats the purpose of organising my photos into separate collections, and it doesn't seem like you can create a sub-collection within the Book project.
    I also can't seem to find any documentation to explain this properly.
    Any help would be apreciated - or if I coud be pointed to a good resource.
    Cheers,
    Mandy.

    Thanks for the response.
    I saw these discussions previously, but not of them seem to answer my question (nor confirm that what I am trying to do cannot be done).
    If I want to create a "Wedding Album" book, do I have to firstly use the Library module to drag ALL the photos I may want to use into my "Wedding Album" collection (saved book) ?
    This seems annoying as I have already categorisied my 1000+ wedding photos into separate Collections using the Library (so that I can find the one I want easier).
    It seems as though the Book module would function much better if you could create a book, choose a page that you want to add a photo to, then browse through your pre-configured collection sets & collections, and add photos to the book from the navigation panel on the left when you have the "Book" module open. (Rather than having to copy the photo first into the "Book" 's Collection, then adding it to the page that you want)
    Mandy.

  • How do I add books to a collection in iBooks 3.2?

    I have made a collection, but I don't see how I add specific books to it.
    Any help would be appreciated.

    Select Edit on the right hand side, tap on the book/s, select Move, then you can either put it in another Collection or create a new one.
    ps: I'm using 5.1.1 so it could be different.

  • Cannot add images to existing collection

    I cannot add images to an existing collection. When I am in the Library/navigator modus, and I grab one or more images, I can not drag them to an existing library. I do can however, drag an entire collection to a collection set, but that is not what I want.
    Anyone any idea?
    Lightroom 3.4.1 & windows 7
    gr,
    René

    René,
    I can think of three possibilities:
    --You can't drag images to smart collections. Only regular collections.
    --You can't drag an image to a collection set.
    --You have to drag by the image, not the border.
    Hal

Maybe you are looking for

  • Af:table rollup row background color change

    Hi All i got below sql view object SELECT DEPARTMENT_ID,JOB_ID,COUNT(*) FROM EMPLOYEES GROUP BY DEPARTMENT_ID,ROLLUP(JOB_ID) By using this i will get each department_id, jobid's and total employes count in each department and i will get rollup for ea

  • How to Align Message Check Box in OAF .

    Dear Friends , I have a two check box created under "Message Component Layout " region , but by default it's get created at left side of the page , but i would like to align it to center of the page . I have tried setting up the vertical alignment in

  • Can you create links in Muse for downloading files?

    I would like to create links within my website to certain documents, so that users can download them.  For example, I'd like users to be able to download several .pdf files.  Is this possible? How is it done?

  • Seq File Post Step Runtime Error and Failure

    Hi, I am using  SequenceFilePostStepRuntimeError   &    SequenceFilePostStepFailure  in my seq file to handle  both.  the issue at hand is that,  once there is error the  execution runs to  runtime-error (SequenceFilePostStepRuntimeError) thats fine 

  • QT32 Server needs to be shut down prior to updating

    Does anyone in the world know how to fix the annoying qt32 server fiasco on my mac Snow Leopard current release? I need to supposibly shut down the qt32 server mac before I finish the updates for CS5 production Premiere which is not possible. I know