Grouping items from query for xml creation

Hello,
I am working on a new photo gallery that uses categories.
Each category is stored in a category xml element. then the images
are stored in the category element. I am having trouble figuring
out how to create this on the fly. With only one category it works
fine but I am having diffuculty seperating it into groups. The db
schema is like this imagePath, imageTitle, imageDesc, category. I
will post the code i am currently using to create the xml now and
show where i need the categories to loop. Thanks in advance. I am
posting a second approach with the code where the query is put in a
array and then I statacially add in what to look for in the array.
This approach would be fine if i could make it dynamic and grab the
Exteriors and Interiors from the catList variable. Thanks again for
any insight on solving this problem.
Justin
Justin

...i would use a XMLListCollection filterFunction for that...
that generates a special view of your collection
r.F.

Similar Messages

  • How to reference all service item from Contract for PO creation

    In standard SAP cannot reference the contract service to PO automatically,
    I'm trying to develop the BADI or user exit,
    The problem is where to set_data for service tab data in  BADI ME_PROCESS_PO_CUST
    In if_services_mm only has method get_srv_data, no set_srv_data

    IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
      SELECT * FROM ML_ESLL APPENDING TABLE SERVICE
                          WHERE EBELN = l_item-konnr
                          AND   DEL    EQ SPACE.
      lr_po_item_handle ?= im_item.
      LOOP AT SERVICE INTO l_service.
        set the service numbers and  and other fields in the contract to l_item. 
      ENDLOOP.

  • Need to pull ranked item from query into new query

    Hi,
    I have a parent query in which I assign a rank to characteristic values based on a key figure, in dollars. I need to pull the top 4 items from that parent query into 4 seperate child queries (i.e. child query 1 is written based on ranked item 1, child query 2 is written based on ranked item 2, etc.) Does anyone have any ideas how to achieve this?
    Thanks
    CM

    Here's what I ended up doing to resolve this...
    Created a Parent_Query that pulled all the results. No conditions or replacement path variable.
    Created a Parent_Query_Top_4 with a condition "Top N: 4". Since I am using a Structure in my rows, I had to create a formula in the structure called "All" to get the condition to work. So in the condition, I selected my Key Figure "Cost", the Structure element "All" " (if you are using a structure in a condition, you're forced to select one of the structure elements), the condition "Top N" and the number "4". I also had to go to the Characteristic Assignment tab and select "Individual Chars and Char Combinations" with my "Code Group" characteristic selected, since I am only interested in seeing the Top 4 Code Groups and didn't want my query to consider any of the other characteristics.
    Created Child_Query_Top_2. Restricted my Code Group characteristic to a replacement path by query variable. I replaced it with the results from Parent_Query. I then placed a condition on this query for Key Figure "Cost", the Structure element "All" the condition "Top N" and the number "2"; "Individual Chars and Char Combinations" with my "Code Group" characteristic selected.
    Created Child_Query_Top_3. Restricted my Code Group characteristic to a replacement path by query variable. I replaced it with the results from Parent_Query. I then placed a condition on this query for Key Figure "Cost", the Structure element "All" the condition "Top N" and the number "3"; "Individual Chars and Char Combinations" with my "Code Group" characteristic selected.
    Created Child_Query_1. This will find the #1 highest Code Group. Restricted my Code Group characteristic to a replacement path by query variable. I replaced it with the results from Parent_Query. I then placed a condition on this query for Key Figure "Cost", the Structure element "All" the condition "Top N" and the number "1"; "Individual Chars and Char Combinations" with my "Code Group" characteristic selected.
    Created Child_Query_2. This will find the #2 highest Code Group. Restricted my Code Group characteristic to a replacement path by query variable. I replaced it with the results from Child_Query_Top_2. I then placed a condition on this query for Key Figure "Cost", the Structure element "All" the condition "Bottom N" and the number "1" (to get #2 item in the top 2); "Individual Chars and Char Combinations" with my "Code Group" characteristic selected.
    Created Child_Query_3. This will find the #3 highest Code Group. Restricted my Code Group characteristic to a replacement path by query variable. I replaced it with the results from Child_Query_Top_3. I then placed a condition on this query for Key Figure "Cost", the Structure element "All" the condition "Bottom N" and the number "1" (to get #3 item in the top 3); "Individual Chars and Char Combinations" with my "Code Group" characteristic selected.
    Created Child_Query_4. This will find the #4 highest Code Group. Restricted my Code Group characteristic to a replacement path by query variable. I replaced it with the results from Parent_Query_Top_4. I then placed a condition on this query for Key Figure "Cost", the Structure element "All" the condition "Bottom N" and the number "1" (to get #4 item in the top 4); "Individual Chars and Char Combinations" with my "Code Group" characteristic selected.
    Very roundabout, but fulfills the request for these very dynamic reports. And once one is done, all you really need to do is copy that one and keep changing the conditions and/or replacement path variables. Now I'll stick it all in a workbook and VOILA!
    Hope this can help someone sometime...
    C

  • In VL10C,Unselected Line items are copied for delivery creation in VL01N

    Hello,
    I am trying to create outbound deliveries for an sales order using t.code VL10C. when I execute VL10C,it takes me to next screen with all sales order line items where i am selecting some line items & select Dialog button for delivery creation. In this case all line items of the sales order get copied into VL01N screen instead of copying only the selected line items.
    What may be the issue? Is this standard functionality of VL10C transaction? my requirement is  to create delivery for selected line items using VL10C transaction.
    Regards
    Goutham

    hi All,
    It's a standard SAP process... See OSS note 453947...
    For me it's a bug, not for SAP....
    But create deliveries for only selected item work in backgroung process ! According to user role parameter "selected items"
    Source code :
        SET PARAMETER ID 'VST' FIELD <cs_postab>-vstel.
        SET PARAMETER ID 'AUF' FIELD <cs_postab>-vbelv.                       -
    > only order number (not item)
        SET PARAMETER ID 'ALT' FIELD SPACE.                       "n_810897
        EXPORT lv50c-datbi FROM lf_datbi TO MEMORY ID 'LEDAT'.
        EXPORT d_tcode     FROM sy-tcode
               enque       FROM cx_list_profil-enque              "n_602290
               TO MEMORY ID 'CALLING_TCODE'.
        CALL TRANSACTION 'VL01N'  AND SKIP FIRST SCREEN.
    regards.

  • Remove Powershell Pinned Item from taskbar for all users in 2008 R2 RDS server

    Im trying to remove the Powershell Pinned Item from the taskbar on a 2008 RDS server. I have setup a mandatory porfile from a 2008 SP2 server (because you cannot do this in R2 any more), Check the default user pinned items folder, check the registry for powershell.exe, loaded up the NTUSER.DAT file for default to see if any thing obious was there, tried some logon scripts that are suppose to remove pinned items and posted on several forums. This has to be one of the simplest dumb things i have ever worked on , and its been about a week. So how do i remove it?
    P.S.
    having the user click un pinn is not a solution
    yes i have checked C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

    Hi Jeramy,
    The default pinned items are created the first time a user logs in. Modifying the default user profile won’t help here.
    The easiest option is to set the “Remove pinned programs from the Taskbar” to disable taskbar pinned items altogether. The default pinned items won’t show up, but the user won’t be able to pin anything else either.
    If you don't want to disable pinning altogether the solution is a little more complicated. One option is to remove the shortcuts “Accessories\Windows PowerShell\Windows PowerShell.lnk” and “Administrative Tools\Server Manager.lnk” from the common start menu folder. These shortcuts are copied to create the pinned items. If they aren’t present they can’t be pinned. This is not a supported option but it may work.
    Another option is to use IStartMenuPinnedList::RemoveFromList in a first run script to remove the pinned items. Not sure how reliable this would be due to the timing of when the default items are added compared to when the script would run.
    One other option is to use shell scripting to invoke the pin & unpin verbs on items:
    http://blogs.technet.com/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx
    This would need to be done when the user first logs in (since unpinning default items in the default user profile won't affect each new user account), but it also need to be timed after Explorer sets up the default pinned items as explained above.
    Hope one of these options work for you!
    ~Olga

  • Generate script from SQL for database creation

    Hi,
    as we have DBMS_METADATA to get scripts for constraints , is there any way by which we can get scripts used for database creation from existing databases
    Thanks
    kedar

    Thanks for the ODB tool. I'm trying to connect with SYS but ODB tool replied :
    Unable to make connection : connection to sys should be sysdba or sysoper
    How do I tell it to connect "as sysdba" ? I tried putting that in "User Name" field but it didn't work.
    Also, when I create a new connection and try to save it, it will prompt me to :
    Setup user preferences for this instance
    and then popped up the window for "Set Options and Preferences"
    My question is, after I saved this connection, how do I go back into this window to edit it ? I don't see any button for it.
    Thanks again

  • Query for xml:id fails

    Hello,
    I have a problem querying for the id-Attribute. I guess the solution is simple but I just don't get it %). Could someone give me a hint on that?
    Xml-Snippet
    &lt;s xml:id="s100" n="s99"/&gt;
    I can successfully query the document for the sentence //s&#091;@xml:id="s100"&#093;
    I can also query for the n-Attribute: //s/@n
    But when I want to query for the xml:id attribute I get no results (and no error): //s/@xml:id
    //s/@id does not work either.
    What am I doing wrong?
    Best wishes,
    Peter
    Edited by: user524194 on Nov 17, 2009 1:10 AM
    Edited by: user524194 on Nov 17, 2009 1:11 AM

    Hi Peter,
    I'm afraid I'm not sure what's going on. You'll need to answer a few more questions:
    1) What indexes do you have?
    2) What storage and indexing model are you using (document or node)?
    3) What is the full query that you're using?
    4) What's the query plan for your query?
    5) Can you reproduce the problem with a minimal data set via the DB XML shell?
    John

  • ATG - Loading all the items from dcs_product for feed generation

    Hi,
    I need to create  different feeds out of the product items for all the products in the product catalog.
    I would like to know the performance degradation if any in loading the entire product items from the product table.
    And also looking forward for other options to handle these scenarios.
    Thanks,
    Arun

    If the old account still exists, switch to the French store by: Settings > iTunes and App Stores > Apple ID > View Apple ID > enter password > Coutnry/Region.
    If you have a different Apple ID in the French store, at the View Apple ID step you will have to sign out and then sign in with the French Apple ID, and then continue to change the country/region.

  • Data modeler: Having Maintainable Query for View Creation

    Hi,
    I am using SQL Developer 4 and the data modeler. I typically create a view in SQL developer (from a SQL select statement). I then drag and drop the view to the data modeler in order to have it stored for the next time I regererate the database schema from the data modeler. This works and I can see the query for my view when I click Properties on the view in the data modeler. However, the query I see there is logically equivalent (and very similar) but it is hard to read for a programmer as carrier returns are added, the various elements of my where clause are not in the same order as I programmed them, comments (starting with '--') where not transfered with the drag and drop.
    I feel I cannot only rely on the version of the view stored in the data modeler to keep my DDL code that creates the view. Maintenance of that code would be too difficult. I feel I will need to keep a separate SQL script (in a separate version control tool) containing the select statement of my view. I would then always need to make my modifications in this select statement, update my view in the database and then drag and drop the result back in the data modeler. This is cumbersome.
    Do you have any solution for me? Thanks!

    Hi Jeff would you be able to help me in creating a data model  cause im really stuck with this one .Basically if been asked to create a survey application in oracle apex that use to excel based . So the info i was given was in a form of  excel sheet which looks like this
    USER'S                                                                                                                                                                    VENDORS                                                                                                                                  TOPICS
    NAME
    E-MAIL
    TSSA
    ORACLE
    HP
    IBM
    MS
    SAP
    INTERGRAPH
    CISCO
    Relationship
    Contracting
    Performance
    Architecture
    Supplier Feedback
    Comment
    jjjjjnn Bixxxxxff
    [email protected]
    Yes
    Yes
    Yes
    Yes
    x
    Added as requested by Sanet Mulder
    itha CCCniah
    [email protected]
    Yes
    Yes
    Yes
    x
    x
    Elliot dan
    [email protected]
    Yes
    x
    x
    x
    Ger que
    [email protected]
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    x
    x
    x
    isha Per
    [email protected]
    Yes
    x
    John Rato
    [email protected]
    Yes
    x
    x
    So where it says yes thous are the vendors that people associated with them have to asses and where there's an X thous are the topics that the vendors have to be rated on . So if for example the first guy on the list  jjjjjnn Bixxxxxff will asses TSSA , ORACLE , HP , IBM , MS , SAP  on the topic of Architecture and if you look at the second user itha CCCniah he would rate TSSA , ORACLE , INTERGRAPH on the topics of Relationship and performance  . Any idea how i could data model this to get my table structures right .so that features like completion status could be displayed to the user through APEX which can only be done by a correct data-model i have tried normalization but  i did go anywhere becauce there are so many variations any idea on how you would go about data modeling this would be greatly appreciated thank you     If you would like a better copy of the table my email is    [email protected]    

  • SCCM 2007 SQL Query for Advertisement Creation Date

    I have been asked if I can create a Query to list all advertisements that have been created in a 60 day period and the User that created them.
    I have tried a couple of SQL codes but I cant quite get the syntax to work.
    Here is what I have so far, but I still don't know if any of it is usable:
    v_Advertisement.AdvertisementName AS ‘Advertisement Name’,
    v_Advertisement.AdvertisementID AS ‘Advertisement ID’
    FROM v_Advertisement
    INNER JOIN v_Package ON v_Advertisement.PackageID = v_Package.PackageID
    INNER JOIN v_Collection ON v_Advertisement.CollectionID = v_Collection.CollectionID
    INNER JOIN v_ClientAdvertisementStatus ON v_Advertisement.AdvertisementID = v_ClientAdvertisementStatus.AdvertisementID
    AND v_Advertisement.AdvertisementID in(SELECT advertisementid FROM V_advertisement WHERE DATEDIFF(D, V_advertisement.presenttime,GETDATE())<=365)
    ORDER BY v_Advertisement.AdvertisementName
    Any help with this would be greatly appreciated.
    Regards
    AntonSK

    I saw you're missing select statement.
    Also, you need to know which table & column for these:
    - Advertisement Creation date?
    - User that created the Advertisement
    a sample of working query as below, but it's still missing the 2 items above
    select
    Adv.AdvertisementName as 'Advertisement Name',
    Adv.AdvertisementID as 'Advertisement ID'
    from
    v_Advertisement as Adv
    inner join v_Package as Pkg on Adv.PackageID = Pkg.PackageID
    inner join v_Collection as Col on Adv.CollectionID = Col.CollectionID
    inner join v_ClientAdvertisementStatus as AdsStatus on Adv.AdvertisementID = AdsStatus.AdvertisementID
    and Adv.AdvertisementID in(select Adv.AdvertisementID from v_Advertisement where datediff(d, Adv.PresentTime, getdate())<=365)
    order by 'Advertisement Name'
    ---Pat

  • Grouping items from parts of an XMLListCollection?

    I have made grouping collections before.  This is an odd case, though.
    I have an XMLListCollection called menuListCollection. Each member is something like this
    <?xml version="1.0" encoding="utf-8"?>
    <recipe course="starters">
    <title>Bacon-Wrapped Ginger Soy Scallops</title>
    <recipeLink>http://www.finecooking.com/recipes/bacon-wrapped-ginger-soy-scallops.aspx </recipeLink>
    <ingredients>
    <item qty=".25" units="cup" caption="soy sauce" desc="soy sauce" section="Other Groceries" />
    <item qty="1" units="Tbs." caption="dark brown sugar" desc="dark brown sugar" section="Pantry Staples" />
    </ingredients>
    <schedule>
    <time label="1h"><instructions><![CDATA[none]]></instructions></time>
    <time label="45m"><instructions><![CDATA[Heat oven to 450°F for the Bacon-Wrapped Scallops.]]></instructions></time>
    <time label="30m"><instructions><![CDATA[Bake the Bacon-Wrapped Scallops and serve to guests to nibble while you make the final dinner preparations.]]></instructions></time>
    </schedule>
    </recipe>
    I need to work with these 3 bits: Title, RecipeLink, and Time -- grouped by label.  My goal is to easily have a listing of the instructions for all recipes grouped by time labels; that is, all the one hour instructions, all the 45 minute instructions, etc.
    Such as:
    1 Hour Before Dinner
      - instruction for recipe 1 that has this label
      - instruction for recipe 2 that has this label
    for each (var x:XML in menuListCollection){
    trace("title="+x.title);
    trace("link="+x.recipeLink);
    trace("30 minutes="+x..time.(@label=="30m").instructions.text());
    gives me
    title=Bacon-Wrapped Ginger Soy Scallops
    link=http://www.finecooking.com/recipes/bacon-wrapped-ginger-soy-scallops.aspx
    30 minutes=Bake the Bacon-Wrapped Scallops and serve to guests to nibble while you make the final dinner preparations.
    title=Beet Salad with Oregano, Pecans, and Goat Cheese
    link=http://www.finecooking.com/recipes/beet-salad-oregano-pecans-goat-cheese.aspx
    30 minutes=Finish assembling the Beet Salad.
    Is there an easy way to do this, or do I have to loop each item and make separate arrays?  I'd rather be able to use a grouping collection somehow.

    ...i would use a XMLListCollection filterFunction for that...
    that generates a special view of your collection
    r.F.

  • How to query for XML-attribute with XPATH

    Hi,
    Isn't there somebody, who can tell me how to query an Attribut of an XML-element correctly ?
    All my trials lead to empty rows. What's worng in my XPATH-expresion ?
    XML-file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xmlexport>
    <itsystem guid="e51b91d1-ab0f-11db-2cd7-001641105333">
    <field fieldidentifier="currentVersion" />
    <field fieldidentifier="marketdatacosts">0</field>
    I can query fine the elements and sub-elements, but not attribute 'guid' of /xmlexport/itsystem. Here some trials, all lead
    SELECT t.* FROM CORIA."xmlexport156_TAB", xmltable ('/xmlexport/itsystem ' passing object_value COLUMNS
    GUID     VARCHAR2(1000) path '[@guid=*]') t
    various versions for Xpath:
    path '[@guid="*"]'
    path '/[@guid=*]'
    path '[@guid=*]'
    xmltable ('/xmlexport' ...
    path '/itsystem/[@guid=*]'
    ... combinations of part 1 and 2
    thanks for any hint, LaoDe

    You can either get them directly, or fetch the attribute in your xquery and put them in returning xml fragment, then get them like normal element.
    Method #1:
    path '@guid'
    Method #2:
    xmltable(
    let $is := /xmlexport/itsystem
    return <r><guid>{$is/@guid}</guid></r>
    passing object_value
    columns guid varchar2(1000) path '/r/guid')

  • How can I select items from Bridge for a web gallery in CS4

    I have installed the plug-in for Photoshop in order to create a web gallery. In the past, I have been able to choose items selected from Bridge, but now that function is greyed out and I can only choose a folder. Is there something I should download for Bridge in order to activate this option?

    Thats right, they have to go to:
    /Library/Application Support/Adobe/Startup Scripts CS4/Adobe Photoshop/
    Maybe you copied the files by mistake to the
    /Library/Application Support/Adobe/Startup Scripts CS4/Adobe Bridge/
    or maybe you copied to the Library folder in your Home directory (User) instead, as you mentioned, you had to make the directory your self.
    You could make a fast check by hitting  «Command+Shift+G» shortcut from your desktop and paste the first link from this reply, then you should see something like this:
    and if you can't recognize the structure above, you have located the problem.

  • MIGO Print label WEE1 for non stock items from GR for PO

    Hi,
    I added logic to print new label into printing program MZ07DETI which is printing labels for stock items. My label is for non stock items. The problem is that for non stock items printing process is not triggered. I created PO with Account Assign. Category F, P or K no material number and no storage location. For this type of PO no print possible during GR posting. Is any set up available in IMG to make it work. I appreciate any response.

    Hi,
    Please check up if there is any default value at the plant level;in case of such default,the system will post to the GL Account defaulted,not with standing the "standard item category".Better checkup if any cost center /order has been assigned.
    The GL item is defaulted thro'the item category.If both the goods and services have been defaulted to the same GL  Account,then not with standing the type [ie] whether goods or services,the system will post tot he same GL Acct.
    Hope this helps.
    Regards.
    Ramesh

  • Exporting Purchased items from itunes for windows

    I have recently converted to mac and bought a macbook, and have imported the majority of my albums into itunes on the macbook, however i do have some albums purchased through the itunes store which are downloaded to my windows pc, and I want to transfer these also. Unfortunately my windows pc does not have a CD burner.
    Can anyone tell me how I can "export" these files to my mac itunes - I have tried to do this using a flash drive but am unsure how to do it.
    Any help would be greatly appreciated.
    Thanks.

    iTunes: How to copy purchases between authorized computers
    Though it refers to items purchased from the iTunes Store, it applies to all your tracks and videos. And if you happen to also own an iPod:
    How to use your iPod to move your music to a new computer
    If you have tracks that you purchased from the iTunes Music Store on your old system and you won't be using that system once you move the tracks, don't forget to deauthorize the system before you dispose of it.

Maybe you are looking for

  • [iPhone] How to create subdirectories in an .app file?

    In examining an .app file it looks like a completely flat filesystem, despite the way Xcode can display resources in different groups and subgroups. I am having some name collision issues for some art resources. Is there a way to tell xcode to build

  • Missing features in Audition CS5.5

    Ok, I have been playing around intensively with Audition CS5.5 for a few weeks now. Aside from the thing that SES to SESX import did not work natively (thanks Todd, for giving me the link, although I do think that it should have been included in the

  • Add File Name to Output

    Is it possbile to add the file name variable to topics after they are created without having to manually insert the variable? Upon inserting the variable, format is thus: <variable name=file x-format=default x-value=0001.htm>0001.htm</variable> The x

  • Imac and canopus advc110 can you out put to a monitor

    I am new to this apple stuff and have after some pro advice settled for a canopus advc110 to go with my imac, i am now struggling with the settings to output to a monitor please help!!!!!

  • Corrupted quicktime components?

    since the lastest upgrade of FCP 6 several things have happened. Flip4mac Pro HD no longer works on any AVI file. I cannot digitize video from my camera via firewire. Exporting my edited movies from FCP results in one still or freeze frame. Do i need