Get Parent Item of AdvancedDataGrid selectedItem

I have an AdvancedDataGrid (ADG) where the top level items
are instances of my custom valueObject Class "State". The second
level items are instances of another custom valueObject Class -
"City". When I select an "City" item in the ADG, I want to find the
parent item in the DataProvider for that City. I'm using
HierarchicalData as my DataProvider. FYI, I'm not looking for how
to capture the event, I'm wanting to find out if there is some
function or utility for finding out the Class of an Object.

Sorry I tried this, trying help from the macscripter site too.
Thanks
set openPanel to current application's NSOpenPanel's openPanel()
openPanel's setMessage:"Please select images:"
openPanel's setShowsHiddenFiles:false
openPanel's setAllowsMultipleSelection:true
set returnCode to openPanel's runModal() as integer
if returnCode = (current application's NSFileHandlingPanelOKButton) as integer then
   set firstFile to openPanel's URLs()'s firstObject()'s |path|()
   set resultFilesFolder to firstFile's stringByDeletingLastPathComponent() as text
end if

Similar Messages

  • 57F4 challan print - getting parent item no and po number for child item

    Hi ,
    In 57F4 challan, Subcontract components - i.e Child items are used for creating the challans.
    However while printing needs the parent item no with the purchase order number for that child item number.
    It is getting stored in RM07M structure.
    Any inputs / suggestions how to retrive parent item number and purchase order number for child item i.e for subcontract items?
    Thank you .
    Prasad.

    Thank you for the reply. I checked the table RSEG table for material document and PO details, however the RSEG gets populated when there is credit or debit entries.
    In this 57F4 challan there is no credit or debit enteries hence would not get in RSEG table.
    Appreciate your inputs for any other alternative.
    OR is there any table or Function Module to get the enteries of the struture of RM07M .

  • How to add an item object as a child for a specified parent node in AdvancedDataGrid in Flex?

    Hi all,
              This is the code, to add a object as a child into a specified parent node in AdvancedDataGrid in flex.
    <?xml version="1.0" encoding="utf-8"?><mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()" width="100%" height="100%">
    <mx:Script><![CDATA[
    importmx.controls.Alert; 
    importmx.collections.IHierarchicalCollectionViewCursor; 
    importmx.collections.IHierarchicalCollectionView;  
    importmx.collections.ArrayCollection; [
    Bindable]private var objectAC:ArrayCollection = newArrayCollection(); 
    //This method is used to construct the ArrayCollection 'flatData' 
    private function onCreationComplete():void{
    var objOne:Object = newObject(); objOne.name =
    "Rani"; objOne.city =
    "Chennai";objectAC.addItem(objOne);
    var objTwo:Object = newObject(); objTwo.name =
    "Rani"objTwo.city =
    "Bangalore";objectAC.addItem(objTwo);
    var objThree:Object = newObject(); objThree.name =
    "Raja"; objThree.city =
    "Mumbai";objectAC.addItem(objThree);
    //This method is used to add one object as a child item for the parent node 'Rani' 
    private function addChildItem():void{
    var dp:IHierarchicalCollectionView = groupedADG.dataProvider asIHierarchicalCollectionView;  
    varcurent:IHierarchicalCollectionViewCursor = groupedADG.dataProvider.createCursor();  
    var dummyParentNode:Object = {name:"Rani", city:"New Delhi"};  
    var obj:Object = null; 
    while(curent.current){
    // To get the current node objectobj = curent.current;
    // Add Child item, when depth = 1 and Node name should be "Rani" 
    if (curent.currentDepth == 1 && obj["GroupLabel"] == "Rani"){
    dp.addChild(curent.current, dummyParentNode);
    curent.moveNext();
    groupedADG.dataProvider = dp;
    groupedADG.validateNow();
    groupedADG.dataProvider.refresh();
    ]]>
    </mx:Script> 
    <mx:AdvancedDataGrid id="groupedADG" x="10" y="15" designViewDataType="tree" defaultLeafIcon="{null}" sortExpertMode="true" width="305" > 
    <mx:dataProvider> 
    <mx:GroupingCollection id="gc" source="{objectAC}"> 
    <mx:grouping> 
    <mx:Grouping> 
    <mx:GroupingField name="name"/> 
    </mx:Grouping> 
    </mx:grouping> 
    </mx:GroupingCollection> 
    </mx:dataProvider> 
    <mx:columns> 
    <mx:AdvancedDataGridColumn headerText="Name" dataField="name"/> 
    <mx:AdvancedDataGridColumn headerText="City" dataField="city"/> 
    </mx:columns> 
    </mx:AdvancedDataGrid> 
    <mx:Button x="10" y="179" label="Open the folder 'Rani'. Then Click this Button" width="305" click="addChildItem()" /> 
    </mx:Application> 

    Hi,
    It's not possible to 'append' a StringItem or a TextField (or any other lcdui.Item object) to a Canvas or GameCanvas. You can only draw lines, draw images, draw text, etc etc, on a Canvas screen. So, you can only 'simulate' the look and feel of a TextField (on a Canvas) by painting it and adding source code for command handling (like key presses). However, this will be quite some work!!
    lcdui.Item objects can only be 'appended' to a Form-like Displayable.
    Cheers for now,
    Jasper

  • How to get all items under a parent item in a tree control

    Hello,
    I have 2 questions regarding a tree control:
    1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
    2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
    Any ideas?
    Attachments:
    Tree example.vi ‏6 KB

    Mentos wrote:
    1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
     Did you try a search? There's no direct way of doing this. You have to navigate the tree and build up an array. You can find an example here: http://forums.ni.com/t5/LabVIEW/get-all-children-o​f-a-parent-in-tree/td-p/729548
    2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
    No. (It's called ActiveCell, not ActiveCells) Presumably you are trying to perform an operation on multiple items. Unfortunately, you need to use a loop. You should defer panel updates if you're doing this a lot.

  • Parent Item/Componenet requirements not getting reflected in MRP

    Hi,
    I have attached a configurable parent item to Project Activity. It is having Bill of material.
    I have put some requirement for this parent item through Project Builder and also i have exploded the Bom for this parent Item.
    Now in MRP (MD02/MD04) it is showing requirements only for child items.But requirements for parent item are not visible in Planning.
    Can anyone guide as why is this happening ?
    Thanks and regards,
    Nitin Lavhe

    Hi,
    Please sit with your PP Consultant.
    Muzamil

  • Sales bom - parent item

    when i create a sales bom, all the components display as independent items on the picklist. why? and it also does not display the parent item. the picker needs to see this information! how can i make that show up on the picklist? any ideas?

    Hi Gordon,
    I appreciate your mature reply to my critical posting.
    Do you know what the Sales BOM is supposed to be used for? I am not sure how in any possible context can the below make sense:
    1. Currently B1 will deliver components only of a Sales BOM at zero cost
    2. Given sales orders can "expire" (in the sense they can have a cut-off date - typically 30 days by default I think), surely if one doesn't receive the remaining components in time, this would lead to a very awkward situation! What if the remaining component(s) is/are non-purchased item(s)?
    If the above was registered as a program error, fair enough. But they won't register it. any ideas why?
    Although with each version (see below), everything works "as designed" - they keep changing it:
    In 2004A, Sales BOMs were working "as designed" - but P&P manager couldn't be used (parent item was lost when making delivery note)
    In 2005A, Sales BOMs were working "as designed" - same as above - but Assembly BOMs (essentially the same thing) were improved would print off a separate component picking list.
    In 2007A, Sales BOMs are working "as designed" - note, this hasn't officially changed yet - but we now get the parent item in the delivery via P&P
    Our SAP partner was just as surprised at the functionality as we were when we moved ahead with the install a few years ago.
    Please understand, my only issue is the lack of willingness from SAP to recognise the problem at all - and the standard answer of "as designed" even when it is clear there is a problem. If you can help myself and perhaps Prem improve our understanding of the design (especially points 1 and 2 above) I would genuinely be grateful.
    Thanks,
    Raj
    Edited by: Rajiv Agarwalla on Dec 12, 2008 2:24 AM
    Edited by: Rajiv Agarwalla on Dec 12, 2008 2:25 AM

  • How to create child part from Parent Item - BLOW UP Master - Automatically

    Hi to All,
    Have any one defined this process?
    To create child part from Parent Item - BLOW UP Master - Automatically ie. we receive FG from customer which we need to blow up to its child part. In that case, FG should be consumed & child parts should be generated in stock.
    We tried with recursive, but the stock of FG was again generating with recursive.
    Ex. FG after receiving from customer in stock 1
    Child parts (with offtake 1) X1, X2, X3 in stock zero.
    After processing, FG stock should be zero & X1, X2, X3 = 1.
    Regards
    Nitin

    Create a BOM for one of the "child" parts that has the "FG from customer" as a component and all the other child parts are negative quantity components (by products).
    To make it simple have all the components backflushed and auto goods receipt the child in the BOM header.  Create a production order, then process the confirmation (this will auto goods receipt the 1st child, consume by backflush the "FG from customer" and put the other child parts into stock as by products.
    You will need to get your material prices correct first so that there is minimal variance in the production order.

  • Get Parent Control

    I have a tab folder with several tabs, and in one of the tabs I have another tab folder. When I start the test I can reach all tab items from the parent tab folder. I have the following code:
    get-tab-folder | get-tab-item "Übersicht" | click
    get-tab-folder | get-tab-item "Benutzer Vertretung" | click
    with [get-tab-item Dokumente] {
    click
    get-tab-folder | get-tab-item Arbeitsplatz | click
    get-tab-folder | get-tab-item "Übersicht" | click
    The parent folder has the tab items: "Übersicht", "Benutzer Vertretung" und "Dokumente".
    In the tab item "Dokuemente there is another tabfolder with tab item "Arbeitsplat".
    When I do the click in this tab item
    "get-tab-folder | get-tab-item "Arbeitsplat" | click" I can't select any tab items from the parent folder.
    This means, the last code line gives an error.
    But the first line is ok, but they are equal.
    I think this is, because "get-tab-folder" has the wrong parent control. But I don't know to set the right parent control.
    I have a screenshot of the app attached.
    Has anyone an idea?

    Hi Mario,
    Could you please try to define a parent like:
    get-eclipse-window | get-tab-folder | get-tab-item "Übersicht" | click
    or
    with [get-tab-item Dokumente] {
    click
    get-tab-folder | get-tab-item Arbeitsplatz | click
    get-eclipse-window | get-tab-folder | get-tab-item "Übersicht" | click
    if it doesn't help, could you please try to play with indexes, like:
    get-tab-folder -index 0 ...
    get-tab-folder -index 1 ...
    Kind regards,
    Ulyana.

  • Available qty of parent item

    Hi experts,
    On the print spec of the production order I am looking to insert the ''Available" qty of the parent item.\
    This available qty appears on the item master data in the "inventory data" tab in the Available field....
    How can I get this field of the parent item to show on the print layout?
    Much appreciated.
    Alex

    Hi,
    Thanks for the reply, but I need the Available qty of the parent item and not the available qty that displays on the production order itself.
    That available qty of the parent item is a system variable.
    Regards,

  • Checking of parent item

    Experts,
    If I fetch items from OITM table, how to check if the item is having a parent item or not in BOM? Then again tht parent item is having parent or not...etc

    While @Next<=ISNULL((select COUNT (Father) from @temp), 0)
              Begin
              select @fathercode = Father from @temp where (select ROW_NUMBER() over (order by Father)from @temp = @Next)
                   select T1.Father , T1.Code  from ITT1 T1 where T1.Code=@fathercode
                   set @Next = @Next + 1
                   End
                   insert into @temp select T1.Father from ITT1 T1 where T1.Code = @fathercode
    select @fathercode = Father from @temp where (select ROW_NUMBER() over (order by Father)from @temp = @Next)
    this line gives error...How can we get the row id in SQL server and put it in a condition?
    plz help

  • Requirement to show parent item on Pick Slip report

    rdf file of pick slip is not giving parent item in the output. I added a sql query to get the parent item details from oe_order_lines_all. Since the query is at a different level, I could not show parent item and its related child items in sequence.
    does any one have similar problem......please let me know how u have fixed it

    actual query gives the items which are picked from wsh_delivery_details wdd, oe_orders_lines_all oola....
    <G_PICK_SLIP_NUMBER>
    <SOURCE_LINE_NUMBER>1.1</SOURCE_LINE_NUMBER>
    <ORDERED_ITEM>SS</ORDERED_ITEM>
    </G_PICK_SLIP_NUMBER>
    <G_PICK_SLIP_NUMBER>
    <SOURCE_LINE_NUMBER>2.1..1</SOURCE_LINE_NUMBER>
    <ORDERED_ITEM>XX1</ORDERED_ITEM>
    </G_PICK_SLIP_NUMBER>
    <G_PICK_SLIP_NUMBER>
    <SOURCE_LINE_NUMBER>2.1..2</SOURCE_LINE_NUMBER>
    <ORDERED_ITEM>XX2</ORDERED_ITEM>
    </G_PICK_SLIP_NUMBER>
    i added a query to get the parent item, which I can get only from oola since the parent item did not have the record in wdd
    <G_SOURCE_HEADER_ID4>
    <SOURCE_LINE_NUMBER1>2.1</SOURCE_LINE_NUMBER1>
    <ORDERED_ITEM4>XX</ORDERED_ITEM4>
    </G_SOURCE_HEADER_ID4>
    in the template i am using the following xml tag
    <?for-each:G_PICK_SLIP_NUMBER?><?sort:SOURCE_LINE_NUMBER;'ascending';data-type='text'?>
    which gives
    1.1 ss
    2.1.1 xx1
    2.1.2 xx2
    where as i am looking for the following output
    1.1 ss
    2.1 xx
    2.1.1 xx1
    2.1.2 xx2
    i hope this explains my issue. Thanks
    zoom_ride
    zoom_ride

  • CheckBox Group Get Selected Items

    Hi, I have a problem with a CheckBox Group.
    I have different items in the CheckBox Group, and I get the items that are selected.
    When I do the checkboxgroup.getselected () returns the selected items, but I do not know how to get the values separately.
    I tried to do:
    ArrayList array = new ArrayList ();
    array. add (checkboxgroup.getSelected ());
    but in the array.get (0) add all the values. And I need:
    array.get (0) -> first value selected checkboxgroup
    array.get (1) -> second value selected checkboxgroup
    array.get (2) -> third value selected checkboxgroup
    Thank's !
    Edited by: henrynxd_08 on Jul 16, 2009 4:55 AM

    Never mind..I got it.
    it as simple as that:
    Alert.show (lst.selectedItem.fieldname);
    ;)

  • Update Parent Items Prices Globally Problem

    I am trying to run the Update Parent Item Prices Globally but keep getting an error.
    No Parent Item prices to be updated found [message 65020-3]
    This is running on 2007A SP:00 PL:06
    When I look at the BOM I can see that the total of the components is different than the parents price.  If I click the arrow it updates fine.  But I need to be able to run the global update as there are hundreds of parents.

    See if I am doing it right?
    I have 200 parent parts with price list BOM loaded as the price list in their parent records. I have another 1200 parts with Purchased Price loaded as the price list in their records.
    When I run the global update for the  Purchased Price parts it runs and gives me a list of those parts it is going to update.
    When I run the global update for the BOM parts I get the message No Parent Item prices to be updated found message 65020-3.
    I know that a number of these parts need to be updated.  When I look at the Bill of Material I can see that the sum of the component prices is different than the parents price.  If I click on the arrow on the display it updates the price. However due to the volume of parts thie manual process is not an option.

  • 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.

  • Report / Table for getting Datewise item cost

    Friends,
    Can u help me know MM Report / Table for getting Datewise item cost in a plant.

    hi,
    try table S031...Movement of stocks....
    THis shd help you..
    Regards
    Priyanka.P

Maybe you are looking for

  • Question? Best Workflow HD/HDV and Reframing/Scaling to Export to both HD and SD when working in an HD Timeline?

    Just wondering, what is the best method for working with HD Footage both HDV 1440x1080 and HD 1920x1080 Not long been using Adobe Premiere Pro CC, just switched over from Grass Valley EDIUS 6.08 and atempting my first Stage Show Multi Camera. Source

  • Is there a way to limit Facebook use on iPhone and iPad?

    I use "Stayfocused" on my Macbook, but it's a Google Chrome extension and Chrome isn't supported for mobile platforms. Likewise with "Leechblock", a Firefox extension. Good for Macbook, but apparently not supported for iPad/ iPhone. I can't find any

  • Use ACE to redirect or insert a WWW in a client request

    I am using ACE 4710s running 4.1 to load balance web traffic across our web server farms.  Redirection is configured to redirect http to https.  There is a new requirement to redirect a request that does not include the "www" in the URL to include th

  • Object XMP lost on PDF export

    Hi there, our workflow relies on the fact that XMP metadata from individual layout objects in InDesign CS5.5 documents will be exported to PDF >= 1.4 (no flattening, live transparency). We found that application of certain effects to placed images in

  • Working With HD Template in FCP 6

    Hey All, I just started messing around with the HD templates in FCP 6 and they are very cool. However, they seem to take a very long time to render. A 23 seconds is taking roughly 10 minutes. Does that seem right? Any suggestions on how to cut the re