Get parent Collectionset in create Collection

Hi All,
     In Create Collection, How to get parent collectionset.
Thanks,
Dung

I think you want to post this in the Photoshop Lightroom forum (this is the Lightroom SDK forum, for plugin authors).
Or have I misunderstood the question? (collection:getParent() to get parent in lua code).
Or are you trying to call the catalog function to create a collection, but don't know what to use for parent collection set? If this is the case, then you will have to create a collection set if you can't find something suitable to act as parent (e.g. a selected collection set obtained from catalog:getActiveSources()). Reminder: parent parameter is optional - if omitted, then collection will be created in root of catalog (or publish service) - that's another option.
Most of my plugins that create collections create a collection set in the root, named after the plugin, and put all sub-collections/sets in it.

Similar Messages

  • Error While creating Collection Management role

    Hi
    We did a client copy and Iam getting the error "Database error UDM_PR_HEAD UDM_COLL_BUPA 5" whenever I tried to create collection management roles.
    Database error UDM_PR_HEAD UDM_COLL_BUPA 5
    Message no. UDM_WORK_LIST010
    Diagnosis
    Database instruction UDM_PR_HEAD was not successful.
    Procedure
    If you can reproduce the error message, contact SAP Support.
    Anyone knows anything about this error?
    Thanks

    Hi Ram,
    sorry for the inconvenience, can you provide the collections management(ecc6.0) configuration document.
    i am trying to learn that but i could not find any related document .
    Thanks,
    Ravi

  • How to get the Folders and subfolders collection in Project Manager

    Hi,
    I am trying to get the folders and subfolders collection in Project Manager, so that I will be able to loop through the collection and be able to create a project under the appropriate folder.
    Any suggestions?
    Thanks.
    Bhanu

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • Verity Unable to create collection

    For some reason, our Verity indexer will no longer create new
    collections.
    ColdFusion 7.0.2 standard on W2k3.
    If you attempt to create a collection you're greeted with the
    following error:
    Unable to create collection AHEC.
    Unable to create collection ahec.
    An error occurred while creating the collection:
    com.verity.api.administration.ConfigurationException: Fail to
    create the index. (-6220)
    Does not matter what you name the collection. All other
    Verity ops seem to be fine (search, index, optimize, etc).
    Any ideas?

    I am getting the same error. It seems to have something to do
    with the path. I can create collections on any local logical drive
    e.g. C:\mydirname. When I attempt to create the collection in my
    Solaris filer space I get the error you do. It does create the top
    level directory but then errors. Also, if I change the path to
    something that does not exist in that same space it does report
    that it cannot find directory. Have you had any success in finding
    the error code -6220?

  • Creating collection vs. materialized view - better performance?

    Hi, I am trying to improve the performance of our application and am looking at everything possible. I am wondering if the use of multiple, complex collections is slowing down our application. Would the use of materialized views, as opposed to collections improve things? thanks Karen

    to provide more info....
    here is the process which creates the list of species based on favorite species identified (and followed by the query to select from this collection)
    declare
    yes_are NUMBER;
    pCount NUMBER;
    l_seq_id NUMBER;
    yes_hms NUMBER;
    found_area NUMBER;
    found_unit NUMBER;
    unitmeasure VARCHAR2(2);
    pbCount NUMBER;
    pbPrice NUMBER;
    begin
    --create license collection so that if error on a submit the information retains
    if apex_collection.collection_exists('LICENSE_COLLECTION') then
    apex_collection.delete_collection('LICENSE_COLLECTION');
    end if;
    --create vessel collection so that if error on a submit the information retains
    if apex_collection.collection_exists('SUPVES_COLLECTION') then
    apex_collection.delete_collection('SUPVES_COLLECTION');
    end if;
    apex_collection.create_or_truncate_collection('FP_COLLECTION');
    --create collection to save landings
    apex_collection.create_or_truncate_collection('SPECIES_COLLECTION');
    --loop through the favorite species and populate with pre-existing data
    for rec IN (select *
    from frequent_species
    where permit_id = :G_PERMIT_ID
    order by fav_order)
    LOOP
    -- check to see if there is a priceboard entry for the favorite species
    select count(*) into pbCount
    from price_board
    where permit_id = :G_PERMIT_ID and
    species_itis = rec.species_itis and
    grade_code = rec.grade_code and
    market_code = rec.market_code and
    unit_of_measure = rec.unit_measure and
    price is not null;
    -- if there is a price board entry
    if pbCount = 1 then
    --get the default price for that species combination
    select price into pbPrice
    from price_board
    where permit_id = :G_PERMIT_ID and
    species_itis = rec.species_itis and
    grade_code = rec.grade_code and
    market_code = rec.market_code and
    unit_of_measure = rec.unit_measure and
    price is not null;
    --add landings row with price board data
    l_seq_id := apex_collection.add_member('SPECIES_COLLECTION',
    null,
    null,
    null,
    rec.species_itis,
    rec.grade_code,
    rec.market_code,
    rec.unit_measure,
    nvl(rec.disposition_code,:G_FIRST_DISPOSITION),
    0, null,pbPrice,null);
    -- no price board entry
    else
    -- add landings row without any priceboard data
    l_seq_id := apex_collection.add_member('SPECIES_COLLECTION',
    null,
    null,
    null,
    rec.species_itis,
    rec.grade_code,
    rec.market_code,
    rec.unit_measure,
    nvl(rec.disposition_code,:G_FIRST_DISPOSITION),
    0, null,null,null);
    end if;
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq => l_seq_id,
    p_attr_number =>14,
    p_attr_value => 'ERROR');
    --set first disposition
    :G_FIRST_DISPOSITION := nvl(rec.disposition_code,:G_FIRST_DISPOSITION);
    found_area:=0;
    -- All rows need to be checked to determine if additional info is needed based on partner_options table
    -- check if AREA will be needed
    select count(*) into found_area
    from partner_options
    where partner_id = :G_ISSUING_AGENCY and
    substr(species_itis,1,6) = rec.species_itis and
    option_type = 'ARE' and
    nvl(inactivate_option_date, sysdate) >= sysdate;
    -- landing row requires AREA data
    if found_area > 0 then
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq => l_seq_id,
    p_attr_number =>13,
    p_attr_value => 'Y');
    -- landing row does NOT require AREA data
    else
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq => l_seq_id,
    p_attr_number =>13,
    p_attr_value => 'N');
    end if;
    found_unit := 0;
    -- check if COUNT will be needed
    select count(*) into found_unit
    from partner_options
    where partner_id = :G_ISSUING_AGENCY and
    substr(species_itis,1,6) = rec.species_itis and
    option_type = 'LBC' and
    nvl(inactivate_option_date, sysdate) >= sysdate;
    -- landing row requires UNIT data
    if found_unit > 0 then
    select unit_measure into unitmeasure
    from partner_options
    where partner_id = :G_ISSUING_AGENCY and
    substr(species_itis,1,6) = rec.species_itis and
    option_type = 'LBC' and nvl(inactivate_option_date, sysdate) >= sysdate;
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq => l_seq_id,
    p_attr_number =>17,
    p_attr_value => 'Y');
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq => l_seq_id,
    p_attr_number =>19,
    p_attr_value => unitmeasure);
    --landing row does NOT require UNIT data
    else
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq => l_seq_id,
    p_attr_number =>17,
    p_attr_value => 'N');
    end if;
    -- check if HMS
    SELECT count(*) into yes_hms
    FROM HMSSpecies a
    where hmsspeciesitis = rec.species_itis;
    -- landing row requires HMS data
    if yes_hms > 0 and rec.grade_code = '10' then
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq=> l_seq_id,
    p_attr_number=>20,
    p_attr_value=>'Y');
    else
    -- landing row does NOT require HMS data
    apex_collection.update_member_attribute(p_collection_name=>'SPECIES_COLLECTION',
    p_seq=> l_seq_id,
    p_attr_number=>20,
    p_attr_value=>'N');
    end if;
    end loop;
    end;
    and the query for the region:
    SELECT
    apex_item.text(1,seq_id,'','','id="f01_#ROWNUM#"','','') "DeleteRow",
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(6,c008,'DISPOSITIONS','onchange="getAllDisposition(#ROWNUM#)"','YES','0',' -- Select Favorite -- ','f06_#ROWNUM#','') Disposition,
    apex_item.select_list_from_LOV(7,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus(#ROWNUM#);"onchange="getAllGears(#ROWNUM#)"','YES','0','-- Select Favorite --','f07_#ROWNUM#','') Gear,
    apex_item.text(8,TO_NUMBER(c010),5,null,'onchange="setTotal(#ROWNUM#)"','f08_#ROWNUM#','') Quantity,
    apex_item.text(9,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries(#ROWNUM#)"','f09_#ROWNUM#','') Price,
    apex_item.text(10, TO_NUMBER(c012),5,null, 'onchange="changePrice(#ROWNUM#)" onKeyPress="selectDollarsFocus(#ROWNUM#);"','f10_#ROWNUM#','') Dollars,
    apex_item.select_list_from_LOV_XL(11, c014,'AREAFISHED','style="background-color:#FBEC5D; "onchange="getAllAreaFished(#ROWNUM#)"','YES','ERROR','-- Select Area Fished --','f11_#ROWNUM#','') Area_Fished,
    apex_item.text(12, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity(#ROWNUM#)"','f12_#ROWNUM#','') UNIT_QUANTITY,
    apex_item.text(13, 'CN',3,null,'readOnly=readOnly','f13_#ROWNUM#','') UNIT_COUNT,
    apex_item.checkbox(14,'Y','id="f14_#ROWNUM#" style="background-color:#FBEC5D; " onClick="alterYes(#ROWNUM#);" onKeyPress="alterYes(#ROWNUM#);"',c021) FinsAttached,
    apex_item.checkbox(15,'N','id="f15_#ROWNUM#" style="background-color:#FBEC5D; " onClick="alterNo(#ROWNUM#);" onKeyPress="alterNo(#ROWNUM#);"',c022) FinsNotAttached,
    apex_item.checkbox(16,'U','id="f16_#ROWNUM#" style="background-color:#FBEC5D; " onClick="alterUnk(#ROWNUM#);" onKeyPress="alterUnk(#ROWNUM#);"',c023) FinsUnknown
    from apex_collections
    where collection_name = 'SPECIES_COLLECTION' order by seq_id
    /

  • Authorization maintenance - Create Collective Roles

    Hello.
    Two questions:
    1- I would like to know if it's possible to create a collective role based on four other normal roles. Then create a normal role using the option copy role through transaction PFCG, based on the collective role?
    2- Is the creation of the collective role trustworthy and a recommended procedure by SAP when the four normal roles are considered complex (having many objects and transactions)?
    When creating the collective role will there be object or transaction loss?
    Thanks!

    Hello Bruno,
    Here are the answers:
    1- I would like to know if it's possible to create a collective role based on four other normal roles. Then create a normal role using the option copy role through transaction PFCG, based on the collective role?
    Yes it is possible to create collective role based on four other normal roles. However you can not create a normal role as a copy of collective role. A collective role can be copied into a collective role. However if I understand correctly then what want is that the authorizations present in 4 normal roles should get merged into one single role. If that is case then do the following.
    Create a normal role, Go to change mode and then to menu. If you want to copy role menus of 4 normal roles then please use the option copy role menu from other roles. Even if you don't copy role menu the next step remains the same. Go to authorizations tab. Here goto menu bar: EditInsert AuthorizationsFrom profile. Now supply the profiles of the 4 normal roles one by one. You might find a lot of entires in red since organization level has to be maintained. You need to do that manually. Once done generate the role.
    2  Is the creation of the collective role trustworthy and a recommended procedure by SAP when the four normal roles are considered complex (having many objects and transactions)?
    When creating the collective role will there be object or transaction loss?
    Yes it is trustworthy. No data loss occurs.
    Regards.
    Ruchit.

  • Best place in publishServiceProvider to create collection sets on the server?

    I'm developing a LR publishing plugin that talks to a custom-built back-end.  Collections on the server are created as needed within the publishServiceProvider.processRenderedPhotos function, which is working fine.
    Looking towards supporting collection sets, I don't think it's a good approach to try to manage these on the server at publish-time. 
    I haven't found any examples on creating collection sets on the server.  Is the following function a better place to create the collection sets on the server?
    publishServiceProvider.updateCollectionSetSettings
    If so, would it work to talk to the server at this point, get the collection set id, and if that fails, to throw an error?  I'd hope that the collection set creation would then be aborted within LR.
    Any advice is greatly appreciated!

    I've gone ahead and handled the collection set creation and update at the server from within updateCollectionSetSettings, likewise for handling collection creation and updating within updateCollectionSettings.  Failure at the server is correctly aborting the adding/updating of the collection/set within Lightroom.  All is good.

  • How do i change birthday and get parent approval

    We created a account for our son but we used a different b-day. how do change is birthday and get parent approval. He is a minor.

    Hi mmitchell619,
    Welcome to the Apple Support Communities!
    I understand that you would like to edit the birth date for your son’s Apple ID. To change the birthday, please use the steps located in the following article. 
    Update the birth date associated with your Apple ID - Apple Support
    Best regards,
    Joe

  • Why is it so hard to get parent tabs to work?

    Searching this forum I found many questions concerning tabs and parent tabs. The application express users guide gives some explanation as how to use them but does not attribute to a basic conceptual understanding of the tab phenomenon. In my opinion Oracle can improve a lot on this feature.
    ------ I just don't get it ----------
    I have four pages 1,2,3,4
    I want to create two parent tabs P1 and P2
    P1 has two tabs S1 for page 1 and S2 for page 2
    P2 has two tabs S3 for page 3 and S4 for page 4
    Can someone provide the exact steps to follow to create such tabs?
    Furthermore, the relation between tabs and pages needs some explanation.
    thanks

    Hi,
    I completely agree with you!
    You can not create a tab without a page associated with it and you can not create a new parent tab when creating a page. Also, Tab Set and Parent Tab seem to refer to the same thing!
    What I do is:
    1 - Create a page with "No Tabs"
    2 - Go to Shared Components, Tabs
    3 - In the Manage Tabs view, I click on the "add" option that appears at the end of the line of parent tabs
    4 - During creation of the new parent tab, associate it with the new page
    5 - When the parent tab is created, you get an "Add" option on the standard tabs line
    6 - Click this to create a standard tab and also associate this with the new page
    7 - Go back to the new page and ensure that it is linked to the correct tabs (it should be but I always double-check!)
    As for relationships between them:
    1 - A parent tab must have one or more standard tabs and must point to a single page in the application (this is the "Tab Target" for the parent tab)
    2 - A standard tab must point to one or more pages in the application. The first page is the "Tab Page", any other pages are listed in the "Tab Also Current for Pages" setting
    3 - The Tab Target page for a parent tab should be the same as the "Tab Page" page for the first standard tab on the parent tab
    4 - The Tab Target and Tab Page must be available at all times to any one that has access to the tab
    So, in your example, the Tab Target for P1 should be "1" and for P2 it should be "3". If anyone has access to P1, they must have access to page 1.
    Regards
    Andy

  • Creating collective deliveries with VL10A

    Hi All,
    While creating collective deliveries from sales orders using VL10A, i am checking a condition which if fails should not allow to create the delivery and also should log the errors in V_SA.
    I am using the subroutine MESSAGE_HANDLING to log the errors. But here is strange scenario, if i create the delivery with VL01n then the error message is issued and delivery stops but if i create the delivery using VL10a then the error log is created but still the delivery is getting created. Now, my requirement is that in VL10a such delivery should not be created at all and VL10a should continue with creating other deliveries in the backlog.
    P.S - I am using the exit MV50AFZ1 and the user exit is 'save_document_prepare'
    Regards,
    N. Reddy
    Message was edited by:
            nageswara reddy bireddy

    Hi Tamas,
    I already tried this using MESSAGE E statement. If i use this the system jumps to form SHP_VL10_DELIVERY_CREATE. and here it issues an abend message.
    The problem with this abend message is that if i use the background process to create the set of deliveries the abend message terminates the process and all the pending deliveries are not created.
    Is there any way by which i can skip the creation of this particular delivery and continue with creating other deliveries in VL10a.
    Regards,
    Nageswara

  • Get entity as return of collection in entity framework

    how to get entity as return of collection in entity framework,,, i dont have any idea...
    when i select entity and then get column information then no column return .....

    The way the Oracle provider works right now requires that you use a cursor, even if you want to map it to an entity. To map it to an entity, that cursor needs to contain the necessary columns to form the entity (ie: it's returning data from the same table).
    Here's an example from one I have mapped:
    CREATE OR REPLACE PROCEDURE ENVMSTR.P_ORG_UNIT_R_BY_STAFF
    STAFF_ID_P IN NUMBER
    , RESULT_CURSOR_P OUT SYS_REFCURSOR
    ) AS
    BEGIN
    OPEN RESULT_CURSOR_P FOR
    select *
    from dept_organizational_unit d
    where deptorgunit_cd = (select deptorgunit_cd from staff where staff_id = STAFF_ID_P)
    or deptorgunit_cd in ( select deptorgunitrel_parent_cd from dept_org_unit_relation
    start with deptorgunitrel_child_cd = (select deptorgunit_cd from staff where staff_id = STAFF_ID_P)
    connect by prior deptorgunitrel_parent_cd = deptorgunitrel_child_cd);
    END P_ORG_UNIT_R_BY_STAFF;
    web.config:
    <add name="ENVMSTR.P_ORG_UNIT_R_BY_STAFF.RefCursor.RESULT_CURSOR_P" value="implicitRefCursor bindinfo='mode=Output'" />
    With those things set up, I'm able to import the function and map it to the entity that represents the dept_organizational_unit table (that entity is called OrgUnit in the model, but it doesn't really matter what you call it). The interesting thing I found is that in this situation I didn't actually have to add config file entries for each column in the cursor, probably because it maps perfectly to the entity. If I was trying to use a complex type instead then I probably would (and the configuration required to do that gets horrific in a hurry).

  • Getting Connection error while creating Substituion Rule in UWL

    Hi Everybody,
    Getting below error while creating Substitution Rules in UWL.
    "error for the u201Cconnectionu201D to SAP_R3_Finance ".
    Can be able to see all Work Items belongs to me. getting the errror while creating Substitution Rule only..
    Could anybody tell me what might be the Reason what steps i need to take to resolve this issue.
    Thanks,
    Naveen Kumar

    Hi Uds,
    are you running SOA Suite on a Linux server and not on your PC and just running JDeveloper on your PC?
    If so try creating the repository file specifying a directory on the Linux server.
    For example to:
    /tmp/sample_repository
    So Choose 'File' from drop down menu
    Enter /tmp/sample_repository
    Click on create button
    This should create the file called sample_repository in /tmp on the Linux server.
    Can you tell us what your environment is?
    Regards Cel

  • Problem with Jtree to xml tranform..how to set/get parent of a node?

    Hi,
    I am trying to develop xml import/export module.In import wizard, I am parsing the xml file and the display it in Jtree view using xml tree model which implements TreeModel and xml tree node.I am using jaxp api..
    It is workin fine.
    I got stuck with removal of selected node and save it as a new xml.
    I am not able to get parent node of selected node in remove process,itz throwing null.I think i missed to define parent when i load treemodel.Plz help me out..give some ideas to do it..
    thanks
    -bala
    Edited by: r_bala on May 9, 2008 4:44 AM

    there's no way anyone can help you without seeing your code.

  • Getting an error while creating a ERP Quotation from CRM Sales Web-UI.

    Hi Experts,
    I am getting an error while creating a ERP quotation from CRM Sales Web-UI. Here  I am enclosing the screen shot. Please give me the solution for this.Thank you in advance.
    Regards
    Kishor Kumar.

    Hi Kishore,
    Please refer to the link below -
    Entry of ERP Sales Documents in SAP CRM - Sales Quotation and Order Management - SAP Library
    Also, refer to the SAP note -
    1446253  - FAQ note: ERP documents in the CRM Web UI (lead-to-cash scenario)
    This note will give you the related topic and the configuration required through SAP help links.
    Hope this will be useful.
    Thanks and Regards
    DJ

  • In OBIEE 11G, how to get the special parameter created by JAVA?

    Hi Experts,
    In OBIEE 11G, how to get the special parameter created by JAVA?
    For example:
    In JAVA , it has set one parameter named 'test'.
    So how to get the parameter in filter area in OBIEE?

    Hi Kobe,
    No P2 holds the parameter name like PresentationTable.ColumnName, in your form you may go for complete name or just column name and before submitting the form you can define the Action url.
    I would suggest to read section 6.3.2.1.
    ex:
    <SCRIPT LANGUAGE="JavaScript">
    changeAction(url) {
    var TestVar = form.inputbox.value;
    document.this_form.action="saw.dll?Go&Path=/Shared/Test/SB2&Action=Navigate&P0=1&P1=like&P2=Customers.Region&P3="+TestVar;
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box: <BR>
    <INPUT TYPE="text" NAME="inputbox" VALUE=""><P>
    <INPUT TYPE="button" NAME="button" Value="Click" onClick="changeAction(this.value)">
    </FORM>
    If helps pls mark.
    Edited by: veeravalli on Oct 24, 2012 10:25 AM

Maybe you are looking for