Digging into the XFA data from AS in the form guide
So I'm delving into the wonderful and wacky world of making custom layouts for Form Guides in Flex Builder, and I've got a question that hopefully y'all can answer or point me in the right direction.
So I've taken the SampleRepeaterAccordion file from the SDK and I want to modify it so that the 'title' of each accordion pane is drawn from the one of the fields in the pane itself. These values get populated in the initialize event of the subform the repeater is built off of, and the values do not change.
So I see that the title is an Hbox with a label that pulls the name of the panel and adds the index after the name. I've been able to modify that statement to pull the item that the repeater instance is based off of using the currentItem property of the repeater. So I have something like:
label="{rpt.currentItem.Resource.value}"
(where 'Resource' is the name of the field in the subform that I want to pull the value from).
This puts "[object Object]" into the label of the HBox. I want the value itself, however. I tried .rawValue instead of .value, but that came out blank.
So how should I be going about fishing data from the XFA form in the action script of the form guide? Or am I headed entirely the wrong direction? I didn't see any docs on this sort of thing. If I missed them, I'd appreciate a pointer to them!
Thanks!
Hi Templeton,
Did you find any solution for it. Is there any way to tell in form guide that which field on the repeater I want to display in header.
I was also thinking of making it in flex a custom component to do that and also add filtering capabilities. do you know how can we filter records in repeater accordion or grid
Also can you send me your code if you don't mind
Thanks
Manoj
Similar Messages
-
How to get the forecast data from SCM into BW
Hello,
Is there a table or Function module in SCM F&R that can be used to transfer the forecast data from SCM F&R into BW? I dont see any Business content datasources that has the forecast data.
I would like to get the future forecast data. For ex, if there is a forecast for a material and Site for the next 52 weeks, I would like to retrieve
the same from SCM. I dont see any business content. The closest would be 0FRE_ANA_WEEKLY_1. But it has only the past data, not the future data.
Thanks,
SBS.Hi,
You would follow the same process as you would for getting data from a R3 system to BW, i.e generate datsources on the APO side and then set the extraction to flow from APO to BW. On the BW side, you'll need a source system for the APO, replicate datsources, set up update and transfer rules in the infosource and then load data to the data targets.
Cheers,
Kedar -
Upload data from Excel to the Planning Book
We are on APO 5.1. We have APO DP at the moment. I wanted to test upload of data from Excel to the planning book. I have tried several times. I have been unable to see any changed data in the planning. I do not get ANY errors during the upload. But I cannot see any changes that I made in the excel in the planning book. Please let me know what I am doing wrong. These are the step that I follow.
1. Go to planning book.
2. Short list only one key figure e.g Customer Forecast.
3. Go into Details All mode.
4. Download the file using the "Prepare File for Upload" option.
5. Open the saved Excel.
6. Change the values in the excel , save and close.
7. Upload the excel into the planning book using the upload file option.
I do not get any errors during all these steps. However, when I check to see if the values have been updated, the changes made in the excel are not updated in the planning book.Hello,
Instead of selecting one key figure in data view, please select all key figures of the planning book and then try all the steps which you have carried out.
please revert after you carry out this.
Regards,
Prafulla -
Not able to get the Qualification data from BAPI
Hi all,
I am using a BAPI (BAPI_JOBREQUIRE_GETLIST) to get the qualifiaction data for requirement profile. It's working fine earlier but I did not get the qualification data from this BAPI, although the data is there in DB against this requirement profile.
Can someone suggest me why I am getting this issue. I have looked into SDN and in BAPI documentation and found as below:
"You require authorization (structural authorization) to read the Requirements subprofile."
I am having the same User ID as I had before (when I getting back the correct data), so I don't think it should be authorization issue.
Can someone help me out in this issue please.
Thanks,
Sanket SethiHi Shiva,
It does not going to these includes at all. Message comes out with successfully done. The BApi is calling RHPP_COMMON_QUALI_READ inside, but this will not return any data. But if will call any qualification object ID, this BAPI will come up with data.
So the QP type LO profile will not come up with any kind of data, but if we pass the OTYPE as Q and pass any Qualification object ID then the data will be returned.
Is there any relationship or some other thing is missing? Any idea.
Thanks,
Sanket Sethi -
How to get the complete data from Webdynpro using a RFC
hi guys,
A form is created in the webdynpro, when that pdf form is called the user have to provide the key field ie the employee number in the form and then when he press the 'go' button a rfc is called and it gives all the details of the employee in the form. Then the user have to input some fields in the form and he have press the submit button. My problem is here, when the user is going to press the submit button that form will be converted to a stream (binary) of data and it is sent to one of the import parameter used in the RFC.
I have created a RFC and created a import parameter of data type XSTRING, since i want to see what exactly R3 is receiving from web dynpro i am writing this contant in the sever as a text file. When i saw that text file i cant see the complete data.
And when i searched in R3 the capacity of xstring is 1024 CHAR, so i dont know how to capture the entire data from webdynpro into my R3.
I give the code what i worte please tell me am i missing anything in my code, or is there any data type which can hold more than 500kb of data which is coming from webdynpro.
FUNCTION ZSEND_MAIL_ATTACHMENT.
""Local Interface:
*" IMPORTING
*" VALUE(OUT_PLACE_LEVEL) TYPE XSTRING OPTIONAL
*" VALUE(BIN_DATA) TYPE INDX_CLUST OPTIONAL
*" TABLES
*" IT_MESSAGE STRUCTURE SOLISTI1
Data Declaration
DATA: gd_cnt TYPE i,
gd_sent_all(1) TYPE c,
gd_error TYPE sy-subrc,
tab_lines LIKE sy-tabix.
Structure Declaration
DATA : BEGIN OF it_file OCCURS 0,
row(255),
END OF it_file.
DATA : BEGIN OF i_split OCCURS 0,
row(50),
END OF i_split.
Internal Table Declaration
data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
DATA : objbin LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE. "sOLIX
DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
data : wa_receiver like table of SOMLRECI1 with header line.
data : it_receiver like table of SOMLRECI1 with header line.
data : v_bin_data like SOLISTI1 occurs 0 with header line.
DATA : gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
*data bin_data1 like table of solix with header line.
REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
CLEAR : objbin, it_packing_list, wa_receiver, it_receivers.
DATA V_SUBJECT(255) VALUE 'HI'.
gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SENDFILE'.
gd_doc_data-obj_descr = v_subject.
gd_doc_data-sensitivty = 'O'.
APPEND GD_DOC_DATA.
Appending The Internal Table it_packing_list
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'RAW'.
it_packing_list-body_num = tab_lines.
APPEND it_packing_list.
*CALL FUNCTION 'GUI_UPLOAD'
*EXPORTING
*filename = V_FILE_PATH
*filetype = 'BIN'
*TABLES
*data_tab = BIN_DATA.
move bin_data to v_bin_data.
append v_bin_data.
*move soli to bin_data.
LOOP AT V_BIN_DATA into objbin.
MOVE v_bin_data TO objbin-line.
APPEND objbin.
ENDLOOP.
CLEAR it_packing_list.
DESCRIBE TABLE objbin LINES tab_lines.
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
it_packing_list-doc_type = 'PDF'.
it_packing_list-body_num = tab_lines.
it_packing_list-doc_size = tab_lines * 255.
APPEND it_packing_list.
data file(255) value '/tmp/bali.txt'.
*Appending The Internal Table it_receivers
close dataset '/tmp/bali.txt'.
open dataset '/tmp/bali.txt' for output in text mode encoding default.
if sy-subrc = 0.
loop at objbin.
transfer objbin to '/tmp/bali.txt'.
endloop.
else.
write 'hi'.
close dataset '/tmp/bali.txt'.
endif.
it_receiver-receiver = '[email protected]'.
it_receiver-rec_type = 'U'.
it_receiver-com_type = 'INT'.
APPEND wa_receiver.
move wa_receiver[] to it_receiver[].
append it_receiver.
*Move wa_receiver[] to it_receivers[].
Clear it_receivers.
if i_OUT_PLACE_LEVEL NE 0.
loop at it_receivers into wa_receiver.
loop at it_receivers into wa_receiver.
**Function Module To Post The Message To Externa Mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_packing_list
CONTENTS_TXT = objbin
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
clear wa_receiver.
ENDFUNCTION.You have to convert your long string to a table of shorter strings.
There may be other ways, but one possibility is to use a loop to process you string.
while (there is something left)
put the next e.g. 1024 characters in a new row of your table
endwhile
If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right -
Saving the data from two info path forms in to a single list in share point 2010
Hi ,
I have two info path forms are in share point page FM 1 and FM 2.
In FM 1 I am getting data from lists by using drop down and casket drop down and FM 2 i need to enter manually after entering
i want to save both forms information(FM 1 & FM 2 ) in to a single list of share point 2010
If any knows the solution please reply me
Thanking You,
Arun DarlyHi,
Based on your description, my understanding is that you want to save the data from two info path forms in to a single list in share point 2010.
We can't save the data from two info path forms in to a single list, but we can
save the data from two info path forms in to a single library.
Open the FM 1 and FM 2 in Infopath(you have save it Locally once).
Publish the FM 1 and FM 2 as content types named FM 1 and FM 2.
Add the content types FM 1 and FM 2 into a document library, Then you can save the data
from two info path forms in to a single library.
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support -
Transfer the response data from response field of a webservice.
Hi Experts,
I am working on Consuming the webservice in the Adobe Form,
My requirement is like i have to populate different set of fields from the responses i get from the webservice, based on the click of different buttons.
Say i have to populate Fields f1 & f2, if Button B1 is pressed, and f3 & f4 if Button B2 is pressed.
Hope i have made my requirement till now.
Now i have written the script to shift the data from the fields generated from WebService to the fields where i actually require the data i.e. f1 & f2 in the above case at teh "validate" event of the response fields from webservice.
but it always gives me some popup stating this field's validate failed, which should not be there.
So, any help from you that give me a solution that shifts the data immediately on the population of response fields wihout a popup, would be helpful and highly appreciated.
Thanks,
AmitaHi,
Consider that you have three fields "f1", "f2", "f3" and want to populate the data in the fields "f2" and "f3" based on the value entered in the field "f1" through webservice.
So write the JavaScript Coding in the "Change" Event of the field "f1" for eg.
var cURL = 'http://webservice';
var service = SOAP.connect(cURL);
xfa.connectionSet.DataConnectionName.execute(0);
and there itself after the above script write the other validations for fields "f2" and "f3" and populate the values to the respective fields.
For Binding to the respective fields: go to the field object pallete and in binding tab define the binding of webservice in the "Import/Export" binding at the Last.
And if you want to do any validations for the fields "f2" and "f3" then define two more fields like "hiddenf2" and "hiddenf3" and do make the presence of these fields to hidden and do specify the binding of webservice and after the JavaScript WebService call populate do the required validations and after that populate the values to the respective fields.
Regards
Pradeep Goli -
How to retrieve data from database to the structure(complicated)
Hello everyone:
I want to retrieve data from database to the structure. but the structure defined like this below:
TOLERANZOB LIKE QAMV-TOLERANZOB
TOLERANZOB1 LIKE QAMV-TOLERANZOB
so how can I retrieve the data from the database ? make sure that the two fields contain data both.
Thanks in advance .
Regards
NickHi Nick,
To retreive data for TOLERANZOB from QAMV,
If you know the key fields then use
SELECT SINGLE TOLERANZOB FROM QAMV INTO TOLERANZOB WHERE keyfields.
else, you can use
SELECT TOLERANZOB FROM QAMV UPTO ONE ROWS INTO TOLERANZOB WHERE....
Once you retreive the data using the select query, you can check if it is initial and if not move the data from TOLERANZOB to TOLERANZOB1.
<b>Reward points for helpful answers.</b>
Best Regards,
Ram. -
Removing all the hidden data from photos
If I export a photo to share, I often want to remove all the extra hidden stored data such as date taken exposures etc. Is this easy?
RodHi rod,
By accident I found that a little app I use (ImageWell) to add connotations and text to my screenshots also strips most if not all the EXIF data from an image that you drag out of the Image well.
I just checked it out again. I dragged an image into the well, changed the name of the image and dragged it out. The EXIF data was gone when I opened it with Preview and did Tools/Get info.
ImageWell -
How to get the current Date from the system?
How do I acquire the current date from the system? Also, if possible, can I assign the day, month and year separately into three variables and how? It would be thankful if some simple Example could be given. Thanx!
import java.util.*;
public class count {
public count() {
Calendar now = Calendar.getInstance();
int month = now.get(Calendar.MONTH);
int day = now.get(Calendar.DAY_OF_MONTH);
int dayyear = now.get(Calendar.DAY_OF_YEAR);
int year = now.get(Calendar.YEAR);
int a = 365;
int b = a - dayyear;
System.out.println("The day is the" + " " + day);
System.out.println("IT is the" + " " + month + " " + "month of the year");
System.out.println("The year is" + " " + year);
System.out.println("This many days till next year" + " " + b);
public static void main(String[] args) {
count cou = new count();
} -
Hi all,
Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
before to push that data to an sql server.
Any suggestion , book reference , link is acceptable
thanks in advance
CRISTINA& MICROSOFT ForumHi Cristina,
Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
http://henry-chong.com/2010/12/infopath-validation-gotcha/
Thanks
Daniel Yang
TechNet Community Support -
Report not displaying data from one of the infoproviders
Hi Experts,
Issue: Report not displaying data from one of the infoproviders
I have a report 'ReportA' which has multiprovider MP1 as the source.
MP1 has two Infocubes IC1, IC2 in its design.
Now, when i execute the report, data from IC1 is displayed. But no data from IC2 is displayed.
Is there a setting i need to enable in MP1 ? or is there anything else that needs to be enabled ?
Please reply.
Regards,
Suraj S NairHi All,
When i display data directly from the multi provider, without any restrictions, i cannot view the data from infocube IC2.
I feel its not an issue with the Query. It must be a problem with the setting in the Multiprovider MP1.
Infocube IC2 is a copy of Infocube IC1. Multiprovider MP1 first only had IC1 in its design. It was recently IC2 was also included.
I checked the Characteristics, all of them are assigned corectly.
Now, this issue sure has something to do wiht the setting of Multiprovider or please correct me if wrong.
Regards,
Suraj S Nair -
How can I restore the game data from an old ipod touch to a new one?
How can I restore the game data from an old ipod touch to a new one?
Restore it from the backup of the old ipod.
-
I use since 1 year iTunes match. Do I get a mail from apple to renew my subscription or do I have to renew my subscription for my own? I don't know the exactly date from the end of lifetime?
Kind best regards - sunshine34778The subscription will renew automatically (unless you have disabled that) and you will get an email approximately one month before renewal.
-
Multiple reads of the same data from Multiprovider by Query (Bex)
Hello, guys!
We're having issue with performance of a query built on Multiprivider. During our investigation, we've found out that within one run of a Query, it several times refers to InfoProvider for the same data (see image attached).
Do you have ideas what can be a reason for multiply reads of the same data from Multipvovider?Hello Nikita,
By "copy of a query" i meant something like this as shown below :
*Kindly click on the screenshot for a better view.
1) See the highlighted portions below in the screenshot . See Query 2 highlighted and name of the BEx query highlighted.
2) See the highlighted portions . See Query 3 highlighted and name of the BEx query highlighted.
As you can see from the above screenshots i have used the same BEx query 2 times by the name of Query 2 & Query 3 . Infact i have not attached the complete screenhsot . In that i have used it 6 times.
I have to analyze this a bit in detail but what i am guessing is that when this WEBi is called the single BEx is also called multiple times. And hence it hits the Info Provider multiple times resulting in a decreased performance.
But this does not mean that this is wrong approach. There are various areas where you can improve for example :
1) Either improve your BEx query if possible or use aggregates or something like that .
2) Use the Query stripping setting in WEBi so that unused dimensions and measures are not pulled resulting in an improved performance. It's switched on by default.
Thanks!!
Regards,
Ashutosh Singh
Maybe you are looking for
-
INF-200017 Unexpected error TERMINATED_WITH_ERROR
Am having the above error message popping out each time i want to run a report. When i run the report from report builder, i dun face any problem as am able to generate the output. Please provide assistance. At the report server am getting error Term
-
Agent Logs under agent names shows no information in CSD
I have 1 supervisor and that supervisor needs to see the agent logs under each individual agent name but for some reason there is nothing being reported there. If an agent takes a call or makes a call, inbound or outbound will appear under the agent
-
After Effects CS5 causing Mac to crash during render
I am currently experiencing problems with my Mac Pro crashing while I am trying to output a final render. Here are the current specs for my compositions and computer: Composition: -5,760 pixels wide x 2,160 pixels high (The video is going to be used
-
How do you get around keynote crashing when trying to open up a large PC powerpoint file?
Please Help?
-
Quicksliver or Launchbar and Photoshop/other Adobe CS Apps
I'd like to hear how you use Launchbar or Quicksliver together with Ps or other CS applications. I've tried out QS over the last weeks and haven't decided what to with PS yet. For example you could have a Mouse/Pen gesture for New Layer or a Trigger