Getting nested data in the datagrid
If my xml is in the form of multiple nested "nodes?" then how
can i go about serilizing them and retrieving them properly?
Example, if my xml looked like this:
<data>
<value>value1</value>
<value>value2</value>
<value>value3</value>
</data>
then displaying the value would be easy to do in my Datagrid,
i would just say use "myHTTPservice.lastResult.data.value" and it
would display in the grid but if my data is more complex like this:
<data>
<heading>
<name>name1</name>
</heading>
<heading>
<name>name2</name>
</heading>
<heading>
<name>name\3</name>
</heading>
</data>
How would I in theory go about serializing the say "name"
into an array my datagrid could use? if i say the dataprovider is
"myHTTPservice.lastResult.heading.name then i dont get an array,
how do say i want all the names found in the heading to be put in
an array? do have to do this manually on result from my HTTPservice
and if so any pointers would be good! thank you!
I believe you can do: lastResult..name to make an XMLList of
the <name> nodes (note 2 dots).
But if your dataProvider is an XMLList of <heading>
items, then your DataGridColumn dataField="name" should work since
to retrieve the name value from any item is: item.name. Peter Ent
Senior Flex Product Support Engineer
http://weblogs.macromedia.com/pent
Similar Messages
-
I have a tableView displaying a list of contacts from a Cloud Database. After selecting a contact, I push to a programmatically created MKMapView. Then I display the initial region (the view) that includes the users current location (starting point) and their selected destination (end point).
Now I want to display annotations (as described in the Location Awareness Programming Guide) that displays polylines which will represent the turn-by-turn navigation IN MY OWN APPLICATION, and not in the Map App currently used in IOS6.
Due to licensing and its becoming depricated in IOS 6, I do not want to get routing data from the Google Maps API. How do I get routing data from the IOS 6 Map App (powered by TomTom) so I can display the point-to-point annotations (turn-by-turn navigation) without leaving my own application?
I checked out Stack Overflow and other forums which basically left me with the impression that this is not possible. I also checked out the TomTom iPhone Mobile SDK User Guide from the TomTom Developer Portal and am still confused. It must be possible to retrieve routes, since the Map App can display turn-by-turn directions. How can I retrieve turn-by-turn data that I may display as a route within my own application?Thanks Michael. Apologies for the slow reply I was away for a bit (holiday blitz at work and visiting family madness etc.etc.) back now, I set both options you requested to "never " and retried the CMS software with no change.
I do have progress of a sort though, as a test I took a separate test PC and put a clean install of Win7 on and loaded up the CMS software (it worked perfectly) and then took the version of ole32.dll off that machine and put it onto the computer I had built
for her (using Linux) and...
got a new error code. Darn I was so sure I had found a clever solution this time lol.
Anyway now when the CMS fails it gives me a similar error but the offending module is "ntdll.dll" sooo... I tried taking the "working" version of ntdll.dll from the test box and moving it over (making sure to back up the existing ones
first so I could put them back if needed) to her new PC and the PC would not boot.
It seems to want the original versions of a few Dynamic Link Libraries and if I could somehow give it those while not breaking Win7 it should theoretically work seeing as it no longer errors with ole32.dll.
ntdll.dll however seems necessary for Win7 to boot.
So what I am wondering now is:
Is there some way to have both versions of the DLL file in the system32 folder (bypassing the "cannot have two files with the exact same name in the same folder" thing) or rename the original DLL's something else and somehow make the CMS look for
the new named versions so the system has the updated DLL's it needs to boot/run and the CMS has the old ones it wants to run or is there someway to have a self contained install of the CMS, say on a USB flash drive and give it it's own E:/windows/system32/needed
dll's path to the files it needs?
Willing to try any other options or settings you may have come up with as well.
Thanks again for your reply and my apologies for not answering sooner. -
How to get last date of the week
hi,
how to get last date of the week like FM WEEK_GET_FIRST_DAY gives the date of the first day of the week i need the date of the last day of the week..
thnxdata : p_week type KWEEK,
p_Date type SYDATUM.
p_week = <incoming value in week of year>
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
EXPORTING
week = p_week
IMPORTING
DATE = p_date
EXCEPTIONS
WEEK_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To get the last day of the week.
p_date = p_date + 6.
You can find the available fm in the system from se37 transaction code. -
Getting all data from a datagrid
Is there a way to get all the data from a datagrid?
I have a datagrid where I can drop data from a second
datagrid.
I would like to send all objects from the datagrid to a web
service function
<mx:DataGrid id="myDataGrid" dropEnabled="true">
<mx:columns>
<mx:DataGridColumn dataField="fieldOne"/>
<mx:DataGridColumn dataField="fieldTwo"/>
</mx:columns>
</mx:DataGrid>
<mx:Button id="myButton" lable="Send"
click="ws.sendGridData(myDataGrid.dataProvider" />
When I click on the button only the first row is sent to the
service.
Is there a way to send all rows?
Thanks.
d.You can accomplish it this way:
Set you dataProvider array as a public variable. Then all you
have to do is set the dataProvider of the second DataGrid equal to
your public array variable.
For example:
public var dp:Array= ([{label:"First", data:"25"},
{label:"Second", data:"50"}]);
public function initApp():void
testGridOne.dataProvider = dp;
testGridTwo.dataProvider = [];
<mx:Button label="Button"
click="testGridTwo.dataProvider=dp"/>
Hope that helps -
How do you get deleted data from the app Tote M'Notes back on iPad ????
How do I get deleted data from app Tote M'Notes back???...Not displaying in my notebook anymore...also how do i retrieve data from apps stored in Icloud?
Why don't you use the fully-qualified-domain-name (FQDN) of your GW and perform a re-direct to this ?
This should be known (and everytime the same), addtionally you won't have any problems if there's any load balancer in between or in fron of the GWs.
Secondly you'll have problems to get the IP -address if there's any proxy server involved.
/ulf -
Getting junk data in the output file in UNIX server due to UNICODE error.
Hi All,
I am working on an Upgradation project from 4.7 to mySAP ERP 2005.
IN 4.7 we are using
OPEN DATASET lv_filename FOR OUTPUT IN BINARY MODE. and getting the file as required.
In ECC 6.0 for the same OPEN DATASET statement ,the output file in unix server has the junk data having the characters like #<##d9{y#+G9###T>j(##^# #K## #q### #####.
Pls help me in this issue to proceed further .
Thanks,
Chakradhar.Hi Markus,
Below are the files data in both environments.
In ECC 6.0
001B2274001802007051 0 20070519CTLMEA RPTIME00043900 #
###9##;c_5####Tj#y#.##'###u###<#<##d9{y#+##G9###T>j(###^###K####q##########C##dA4####ձ###x##
R[#!#J##ڢw###u#-C#'Qho#箐}j##w%##/#'ZhW##s###nи#ڻ>-J#####Ж#tP}##Hu#}Q7###Sh_###C4<3nqk##i l#
####{############Qns###;####p##{si##y##@##ϰ0####C###,###2ύ#j̾########Q#f####;)k>lO#5#n###ܼ#
####M##S##IM#z0#o##ԭ####!#V#9###ں#?s##[#####V&#˴s#��[#l#s##뷢:#Զ{Ȥ��M-##v@#########v#߲###s##
9Q##!#d#####`#############Lc####J#######%?######E#HV3#(#N####Wl####}S#O######zA[##m####u/7#T
##2#s##Q#umF]##Z###}##݂###a######z1#`#####됞-###Q#o#####Q###x#######7Z[##?#V#e##nI####O1=u[#
##p##Kj#####]#####/5#20{####Ӝ##x##A#?###xa##/<^#Rj䅥#######xI#+j#%###$##$######p=##V#Ԋ
#######k#K##yI#yI#!/)#y#z##-y######"/#eڵ##/############*###"/_##-##+##/#y9#####5#9/#yI#A#
###################J/yih=####u4i#K##t####ܞ######=##AX###J##z#####KC믔## /###G{#K#####
In 4.7
001B2274001802007051 0 20070519CTLMEA RPTIME00043900
ãÔ?®zåÖ#Iï-_Î-ør7##*Ódöã ²äÐÁSjòä`ëÏ©"yÿï¾E#[µºEW#g#2éu##a±¸u~#ZäTéR¯F&o#C·¼åÈÝÁ%½ß´y6+##¿
íE#z!#â#ùG#>{#éJæ##jÅSM<±òxwÆüI¾jâ#µ#ù
íQ ÕÈ###dÝ#/«#ycãA¼#ø#7#¿#¼#íxãý#y«#o#â¡ùéËÖ_C¼½À4ðÀó#Ð8?qÊ#O½Î¿_##b#xjÛÓ#OÜ#×gÌ#×ós##
í¡ùh¿~ëÊÓü#ò#'¡#Á#â©#<áoú#'Ô®ü#»L»þ#y)hà#ç#Z[¡#'®Uy1?YC<Ýú#iÇÇ###Íç'Ô#§#Ù#O§#f<###B{#§##ñ
#0H}¬#^##6¨7V¨7VÚX#M9&#A#øG º'õxOù§ø #W¨Å+Ðb#ÉÇ7#SôRXß\u00A7à#wE"#mê#óÀd# ¼##gn###:ô#E<#######ú
ûJ¦H}#·¦Y½â>ºbò#xSSÿÿÕ«óG#ï#6²f´Ú¾fyqèhJÖçCOr´#Ý#S?##KËÄ×mâë¶x)º×ªh2Åw8&í####7 `Ùo#ö»#òöw$
½##Gê#ì#»#La)ì##Ý÷#{7í´éã»##ãî]¾[##{O#¾C##£¶G#û¼Eû#dL#ª:#PÉEÉ>Ó##ª:G#éaR^·BEµÏ+¹###y#N##ȱ
DÕ##5#"9Ní>#íFo##kp#ÂðÆè5¿ð½F®¯M##þð1#îi##Z #Z #Z#ô-¾#§èH»û¹ö9é#Ôä#001B2274001802007051
èÁ##<(#ÿ#¢²ÿ#è#éc#z¾vçÌá#¹#ý#x%ìÜ#çÌ##ùÍÙ#¹{ǯepmâí#¸Ö##¸=ÝÙ½¹uë·,ù#þ¼øl###£åg#,##-`q#ÿøæï
viÁ#]3#.O#þÊöèR##=##L#LÊk###¤à##ó#'V052 øé]+####ã!ÁC#s#q###åLj##Á¯Æ4#.àíT#¸Þ¹µ·¶É)ç#Ïå#<#/ð
Thanks,
Chakradhar. -
Get Current Data of the playing media
Hi,
I want to make a visualization for my Media Player.
I programmed some but these are at the moment no real visualizations, because I need Data from the Player or Processor to make a visualization.
My question:
How can I get for example current frequency or any other data to make a visualization?
thx, thomasAnyone fond a way to do this?
Please remember to accept any solutions and give kudos, Thanks
LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7 -
How can I get a date without the hour from sql server 2000 ?
hellou!
I have a JTable, and one of it's columns has to show a date. This date i have to show is specified as datetime on the Sql Server 2000 database where I have to take the data.
the query of the dataset attached to the JTable is something like "select * from Table".
The problem is that the JTable column that displays the date shows the date and the hour, for example:
7/10/04 0:00:00
and I need to show the date without the hour, only the 7/10/04. Can anyone tell me how to do that?
thank you very much! : )The easiest way to format a date is with java.text.SimpleDateFormat. When creating it you pass a format string which can be used to parse or format date objects.
SimpleDateFormat formater = new SimpleDateFormat( "MM/dd/yyyy" );
// Get date objects directly from sql
Date foundDate = result.getDate( 1 ); //where result is the ResultSet and 1 is the date column
String formatedDate = formater.format( foundDate );Now the JTable's table model can be adjusted to store a formated String instead of a Date. If for some reason it is required to store the value as a Date overload the table model to return the formated string when getValueAt is called. -
Loading xml data into the datagrid
Hi all,
I'm trying to learn Flex. I have a small doubt in loading the datagrid from the xml response (from php script)
mxml code:
<mx:DataGrid id="dataGrid" x="69" y="250">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="name"/>
<mx:DataGridColumn headerText="Age" dataField="age"/>
<mx:DataGridColumn headerText="Location" dataField="location"/>
</mx:columns>
</mx:DataGrid>
<mx:HTTPService resultFormat="e4x" result="getDataCallback(event)" id="getDataHttp" url="http://localhost/test/getData.php" method="POST"></mx:HTTPService>
<mx:Button click="getDataHttp.send();" label="Load Data" x="379" y="268"></mx:Button>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
[Bindable] public var mydata:XMLList = new XMLList();
function getDataCallback(event:ResultEvent):void{
trace(event.result.data.info);
mydata = event.result.data.info;
dataGrid.dataProvider = mydata;
]]>
</mx:Script>
PHP Script
<?php
$xml = "<?xml version=\"1.0\" ?><data>";
$xml .= "<info><name>name1</name><age>26</age><location>location1</location></info>";
$xml .= "<info><name>name2</name><age>27</age><location>location2</location></info>";
$xml .= "</data>";
header("content-type:text/xml");
echo $xml;
But the data is not being loaded into the datagrid. Please anyone help me out ..
Thanks in advance
-Pavan... and I doubt you are using the word "doubt" in its correct sense.
-
I need to know how do i get a date on the printed paper it always did but then i had my pc upgraded
Please can you tell me how does one get a date printed will printing a document
Please read this post then provide some details. What printer model? What operating system? What program are you printing from?
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
How to get --Last date of the Last value .
Dear All,
I have a report like
Material Country Current Price
1112----- Singapore -
100
1112----- Japan -
120
1112----- Malesia -
99
Here current price is Last Value of the particular Material on particular Date.
This I can get based on Key figure Aggregation ( Last Value and reference Character 0CALDAY ), It is giving the last Value of the Particular Material.
Now my user wants to see Last date of the value ( Date of the Value )
Example :-
Material Country Date --Current Price
1112----- Singapore -
01/04/2008 -- 100
1112----- Japan -
04/05/2008 -- 120
1112----- Malesia -
05/05/2008 -- 99
If I drill down the date in my report it is showing all dates , my user wants to see only last date .
Hope some one has solved this issue , please help me to solve this issue.
Regards,
SHAIK.I have created a keyfigure with date as a data type.
In aggregation tab, I selected aggregation Maximum.
Upto DSO, data is Loaded perfect. Ok.
I added the same key figure in cube , When I am trying to Activate the Transformation,
It is giving Error message.
Rule 17 is invalid and is being deleted. The reason for this is that a field or InfoObject that is used in rule 17 has been deleted in the source or target of the transformation ODSO ZPL_DSO1 -> CUBE ZPLATT_C (0GH6MHANQ2J79LXZBLGIJ9ZK9LWHK6RS)
Plz Advice.
Regards,
SHAIK
Edited by: shaik on May 7, 2008 5:46 PM -
Not getting 'actual data' in the planning query
Hi all,
I am debug other's query. This cube stores 'actual' and 'plan' data and I loaded 'actual' and can see it in the cube. But I cannot see 'actual data' when I run the planning query.
I checked all restrictions in the KFs and CHARs and fliters in the query. There are only 'value type 10', 'fiscal year variant Z1', and 'currency CAD' restricted and actual data does contain those values in all line items.
Can someone point it out what it could be the issue? Thank you.
R.Hi,
if you enter some data (plan data) you cannot see it again. Is that correct?
are you using the same query to enter and to see plan data?
Because if you are entering data in an aggregate level and you are executing your query over the infocube you will not see the data from the yellow request. If you execute query over the aggregate you should be able to see all data in the cube (yellow and green requests).
Also check if your query is defined as per note 1136163.
I hope this helps.
Lucimar -
Get modified date inside the File content of CM
hi,
In CM I have uploaded a file and have set the permission to modify the file to a group of users.Now when each and every time any user modifies the file content I want to have the modified date inside the updated file.
How can i achieve this?.....
Please help.....
Thanks in advance,
shami.Hi All,
@Parvathy:There is no such property on your files, you should create one in your filter and depending on this custom property your filter should decide if a document update is required or not.
As already said follow this:
You have a content filter which can do updates to these files:
-- Content filter sets a custom property new_modifieddate on each resource after updating resource. (new_modifieddate==cm_modified of resource)
-- It compares new_modifieddate with cm_modified of resource to determine if it should update the resource with cm_modified.
@Shami: Use some logging in your Filter code, so that you can make sure your code is being executed. One more way is to dubug you code by setting break points in NWDS (Ofcourse the server should be in debug mode for this option).
logging :
http://help.sap.com/saphelp_nw2004s/helpdata/en/a0/58db515b95b64181ef0552dc1f5c50/frameset.htm
debug:
http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/31e540b1278631e10000000a1550b0/frameset.htm
Greetings,
Praveen Gudapati -
FM to get first date of the month
hi,
any FM to get first day of the month , lets say based on input 24.11.2008 , the FM would return 01.11.2008Do search in such case(Easy findings).
https://www.sdn.sap.com/irj/scn/advancedsearch?query=fmtogetfirstdayofthemonth&cat=sdn_all -
How to get pixel data in the format I want
I'm writing a format plug-in and am having some difficulty getting the pixel data from photoshop in the format I want. From what I gather from the documentation in the SDK I need to specify the following to tell photoshop what format to deliver my pixels in:
theRect
loPlane
hiPlane
data
colBytes
rowBytes
planeBytes
planeMap
I specify all of these appropriately for a 32 bit rgba8888 uncompresssed image and it works just fine... but ONLY if the image I load in the first place matches the format I am requesting. If the image I load is some other format, like a 256 color image with a palette, gFormatRecord->advanceState() just fails with a nebulous -30500 error code (formatBadParameters) instead of delivering pixel data.
So my big question is this: Is Photoshop capable of doing the conversion and delivering the pixels to my format plug-in in my requested format? If it CAN do it, what might I be doing wrong? Please help! Thanks!!You noticed you can use the planeMap[] array to permute the channels. It's not so obvious that Photoshop should offer generalised bit depth/colour space/palette processing. It can be argued that's the role of the plugin itself: to mediate between Photoshop's native image data (which it does offer conveniently) and whatever arbitrary image format the user requires. At least, that's what most of
my plugins do.
Sure, there are a few obvious conversions, but you have to stop somewhere... Sooner or later you'll be implementing stuff on the Photoshop side that
should be in a plugin. I don't have a big problem with the line drawn in the current API.
Maybe you are looking for
-
I accidentally clicked "restore" when I meant to "back up" on my iphone 5, is there anyway I can undo that and get back to what I had?
-
I don't know why the battery life has just become so poor. I can listen to 1 song and lose 1/2% battery life. I had all the settings the same as before updating to ISO6 and now it just goes. I did drop it around the same time but I have a stong case
-
Function module to get adress in line items
Dear All I am using a function module ADDR_GET which is giving me the data in a specific format of addr_val1, Now the requirement is to display the data in a script , so that the address comes as address line 1 ,line 2 and likewise.... Kindly let me
-
'Cannot read or create the font (font name) error message for Acrobat 9 Pro
Hi Im new here so i dont know if this topic has been handled already. First the base info: Im on a iMac G5 running 10.5.4. And Im using Acrobat 9 pro. Im trying to convert Quarkxpress 7.31 eps files to PDFs. The particular font in question is called
-
Looking for some help on emailing results using the drop down Label instead of the value
DWMX / SQL / ASP I have a very simple form... 4 fields 1 - Textbox to enter name 2 - Drop downs to select location and type of issue 1 - Comment box to describe in more detail the issue.... I have notification setup to email the results to the approp