cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to retrive Node Data

Former Member
0 Kudos

Hi all,

I have a node structure like the following

vaSample (1:1)

-vaInput

I have set the value for vaInput in form using coding like

xfa.datasets.data.dataDescription.vaSample.vaInput.rawValue="Hello";

and when i was able to display the same in the form using the

xfa.host.messageBox(""+xfa.datasets.data.dataDescription.vaSample.vaInput.rawValue);

This displays Hello perfectly.

But when i acces the same in WD Java , i was not able to get the message "Hello"

But the same works well if the input was through a input text field.

My doubt is

"Will we able to get the data from a context if the values for the attributes are set using scripts in form?"

Thanks

Gopal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gopal,

Yes you will be able to get values in the context that are set using scripts. Check the binding of the fiels and if it is fine then there may be some ActiveX issue.

Do reward points if found helpful.

Regards,

Arafat

vivekananthan_sellavel
Active Participant
0 Kudos

Hi Arafat,

Where does the binding comes in this scenario, we are setting the values for a attribute in script then why should we bind the same to a field?

With Regards,

Vivek

Former Member
0 Kudos

Hi,

Binding..? what do you mean by ActiveX Problem regarding to this scenario, am using SAP Native Submit button.

Thanks

Gopal

Former Member
0 Kudos

Hey,

I got it wrongly..... I thought you are trying to put value in an input field and thats not going to context.... sorry for the confusion...

Regards,

Arafat

Former Member
0 Kudos

Hi

No Probs... So once again my question... "Will we able to get the data from a context if the values for the attributes are set using scripts in form?"

Is it possible???

Thanks

Gopal

Former Member
0 Kudos

Hi Gopal,

The description of your problem is not sufficient. You need to provide more details like where is the Text Field (in the WD view or on the PDF form). What are your interactions?

The integration of PDF forms and Web Dynpro does not know if the data value is set via a form field (on the PDF form) or script inside the PDF form.

You have to check the following:

  • Bind a simple text field to your data node and see if this works (on the PDF form). So that you provide the data value via user input and not via script.

  • Check if the PDF form is mapped to the web dynpro context as intended

  • Is there somewhere a submit for the PDF form or on the Web Dynpro view that surrounds the PDF form? This triggers an update of the WD-Conext. Usually not every change on the PDF form triggers an update of the WD context because of performance reasons.

  • This is one of the reasons why you also usually find a u201Csubmitu201D button on a PDF form/Web Dynpro view.

  • You need to understand that a server roundtrip is needed to update the Web Dynpro context. Check the design/structure of your Web Dynpro app.

Regards,

Juergen

Former Member
0 Kudos

Hi Juergen ,

Thanks for your helpful answer

Thanks,

Gopal.