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
Similar Messages
-
Need detailed procedure on how to add an item with Item Style Check Box in
Need detailed procedure on how to add an item with Item Style Check Box in Framework.
The view instance should be the same as the view instance (view object) specified for your region.
If the View Attribute already that you need already exists in the View Object then you can use it.
Otherwise you have to extend the View Object and add the new attribute to it.
--Prasanna -
Urjent-how to add line items in tcode-FBL3N
Hi Experts,
How to add line items customer, customer name, vendor and vendor name in FBL3N.
Thanks in advance.
mahe
Moderator message - Please do not use words like "urjent". Please ask a specific question. Please search the forum. This question has been asked and answered before. Post locked
Edited by: Rob Burbank on Apr 29, 2009 11:27 AM
Edited by: Rob Burbank on Apr 29, 2009 11:28 AMHi,
Check the BTE's:
00001020 POST DOCUMENT: Prior to final checks SAMPLE_INTERFACE_00001020
00001025 POST DOCUMENT: Final checks completed SAMPLE_INTERFACE_00001025
00001030 POST DOCUMENT: Posting of standard data SAMPLE_INTERFACE_00001030
00001050 POST DOCUMENT: Accounting interface SAMPLE_INTERFACE_00001050
Thanks & Regards,
Harish -
How to add Excise item with out chapter id
Dear all,
How to add Excise item with out chapter id?
Chapter id of purchae items will be known only after receiving Invoice/gate pass/delivery chalan from supplier/vendor
To send a purchase order we need to create that particular item in the master, but with out assigning chapter id system is not allowing to save without chapter id.
How to solve this?
I am with SAP 8.8 and PL 10
Thanks in advance
regards,
KumarHi Kumar,
Refer the book of chapter ID or find out on internet you will get the chapter ID.
Still if you not able to get the chapter id then consult with excise advisory.
But you can add Excise PO until you have the excise details in Item master.
Regards,
Datta Kharat -
How to add an item into the Newsstand
How to add an item into the Newsstand. Please do NOT reply using "tech-language." Use standard- normal everyday English. Thanks,
Don Otlin
Franklin Square, NYOpen Newsstand. Tap on the "Store" button in the upper right. Any newspaper or magazine you download from the store will appear in Newsstand.
-
How to add a container object in a station globals
Hi,
How to add a container object in a station globalsHi radlou,
This might be what you're looking for:
NewSubProperty Method
Syntax
PropertyObject.NewSubProperty ( lookupString, ValueType, asArray, typeNameParam, options)
Purpose
Creates a new subproperty with the name the lookupString parameter specifies.
Parameters
lookupString As String
[In] Pass the lookup string for the new subproperty to be created. If you pass a lookup string with multiple levels (such as "x.y.z"), this method creates all of the necessary intermediate container objects. Refer to lookup string for more information about the strings you can use.
ValueType As PropertyValueTypes
[In] Pass the type of value you want the new subproperty to store.
asArray As Boolean
[In] Pass True to make the new subproperty an array whose elements are of the type you specify in valueType.
typeNameParam As String
[In] Pass the name of an existing type if you want to create the new subproperty as an instance of a named type. Otherwise, pass an empty string. If you pass a type name, you must pass PropValType_NamedType for the ValueType parameter. Refer to NamedPropertyTypes for a list of built-in named types.
options As Long
[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options. You do not need to pass the InsertIfMissing option to create the new subproperty. Pass DoNothingIfExists if you want the method to not report an error if the subproperty already exists. -
How to add new item in more options dialog box
Hi all,
Can anyone tell me how to add new item in more options dialog box(site actions -> more options). I want to add new item there to the new page layout which I created but I didn't find any way to do it. can anyone assist me for this.Good point, in order to add a Page into that area, you will need to define a Custom Action. You can learn more about creating Custom Actions here:
http://msdn.microsoft.com/en-us/library/hh500259(v=office.14).aspx
As an example, Microsoft uses the following Custom Action to add the "Publishing Page" to that Create Silverlight control when enabling the Publishing features:
<CustomAction
Id="CreatePublishingPage"
GroupId="WebPages"
Location="Microsoft.SharePoint.Create"
Sequence="100"
Title="$Resources:cmscore,Create_WebPages_PublishedPage;"
Description="$Resources:cmscore,Create_WebPages_PublishedPage_Description;"
ImageUrl="/_layouts/images/ltpp.png">
<UrlAction Url="_Layouts/CreatePage.aspx" />
</CustomAction>
Dimitri Ayrapetov (MCSE: SharePoint) -
How to add a item to shopping cart in iProcurement by java codes.
I have encountered a problem in the development of iProcurement, I don't know how to add a item into the shopping cart. Please help me.
This is the Configurator forum, your question is probably better posed in the Procurement forum (Procurement
-
How to add a ChartOfAccounts object into the database.
how to add a ChartOfAccounts object into the database. please shows sample code
thanksDim CoA As SAPbobsCOM.ChartOfAccounts
CoA = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)
CoA.Code = 11223344
CoA.ExternalCode = "a1234"
CoA.ForeignName = "f Test Account"
CoA.Name = "Test Account"
CoA.AccountType = SAPbobsCOM.BoAccountTypes.at_Other
CoA.ActiveAccount = SAPbobsCOM.BoYesNoEnum.tYES
CoA.FatherAccountKey = 100001
If CoA.Add <> 0 Then
MessageBox.Show(oCompany.GetLastErrorDescription)
Else
MessageBox.Show("Added Account")
End If
Remember the father account key must be a valid account number in the company where you are trying to add the new account. (The G/L Account code seen in the SBO client) -
i am using numbers in the new iWork. Just bought it 10 days back. I am not able to figure out how to add serial umbers from 1 to 100( for example) also i need to freeze the top header like in windows so that we can browse down without the heading going off. Can some one help?
Hi Jay,
Be aware that "Freeze Header Rows" and "Freeze Header Columns" apply only to rows and columns that are Header rows or Header columns. You can have up to five Header rows, Five Header Columns (and five Footer rows) on a Numbers Table.
"Header rows" is a special designation. Besides being able to be frozen, Header and Footer rows are not included in formulas referencing whole columns, making it possible to place formulas such as =SUM(B) at the top (or bottom) of column B without causing a self-reference error, These designated rows are also not included in sorts of the rows in a table.
Regards,
Barry -
How to add a nvidia ge force video card for a pavilion g6 which has a intel hd 3000?
How to add nvidia ge force 525 video card for this laptop?
Hi,
The answer is no way you can add a video card on your laptop. Actually nearly all laptops including many which have dedicated video cards.
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
How to add the "Voltage Calibration"in the DCpower for IVI drive??
How to add the "Voltage Calibration"in the DCpower for IVI drive??
To gather more information concerning the use of IVI there is a very comprehensive page of Class Specifications for IVI Class Instruments:
www.ivifoundation.org
This resource covers all IVI calls for each class of instruments and should provide you wiht valuable information. For an additional overview of IVI and its relationship to NI products, you can also visit our Resource Library:
ni.com>>Resource Library>>Instrument Drivers
Best Regards,
Chris D
Applications Engineer
National Instruments -
How to pass apex item value into custom xml for chart or guage?
Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
Which was not answered.
Roel - Thanks. Its working - but in a semi quotes in the custom XML
<pointers>
<pointer value= '&P5_RUNNING_TOTAL.'
<label enabled="true">
<position placement_mode="ByPoint" x="50" y="15" />
<format>{%Value}{numDecimals:1}</format>
<background enabled="false" />
</label>
</pointer>
</pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
(Re: AnyChart - set Dial axis intervals dynamically?
Edited by: P.Ranish on Dec 13, 2012 6:23 AMP.Ranish wrote:
Is there any update for this question ???
Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
Roel wrote:
Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX -
How to see all users who are allowed permissions for the specified entity ?
How to see all users who are allowed permissions for the specified entity ?
And change user permissions for the current entity
from Moscow with moneyVincent,
... and how to change entity permissions for some users?
from Moscow with money -
How to add a field object to group header section in crystal report document?
Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName, CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject(); fieldObject.DataSourceName = dbField.Name; fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai
Hi Jaikumar
As per the SCN Rules of engagement, one question per thread please.
Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
Also, consult the Developer Help Files:
Report Application Server .NET SDK Developer Guide
Report Application Server .NET API Guide
Re. your second question, please create a new discussion.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Maybe you are looking for
-
I created an iTunes ago several years ago under this email: At this time I did not own an Apple product. All songs purchased and downloaded were in my lap top. When I purchased my first iPhone...another iTunes account was created under the iPhone ID:
-
The requested object is locked by another transaction
Hi All, I got a problem while loading data from an ODS to another ODS, it shows 450 records but request is red, it says 'The requested object is locked by another transaction' Message no. MC602 Diagnosis A lock requested by calling an ENQUEUE functio
-
No photo stream on Photos for Mac?
I upgraded to Photos for Mac and loving the new look. I also have the latest iPad and the iPhone 6 both running iOS 8.3. I loved the photo stream feature when all my photos, or at least the most current, would appear automatically on my 2 other devic
-
Head Start for Oracle Applications
Has anyone heard of upgrade of headstart for Oracle Apps for latest Designer version version 6.0, any updates would be appreciated Ajit Apte null
-
T.code for list of invoices
Dear gurus please provide me T.code for list of invoices for date wise. Regards