cancel
Showing results for 
Search instead for 
Did you mean: 

Context binding - offline scenario

Former Member
0 Kudos

Hi everyone,

I have a scenario in which the user downloads a PDF-template, fills in that form, uploads it back to WD for further processing.

Now I have the following problem:

- The context bindings between the different views in WD are mapped. But when the user uploads the form and then views it, the context

fields are not filled with the data the user had entered in the form. But when he changes a field in WD (after upload) the context field is filled.

According to the upload/download tutorial this should happen automatically, which it doesn't.

Can anyone give me some advice so I could move on?

Thank you,

Wesley

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

R u checked the mode of interactive form. It must be " Usedpdf "

Regards,

Gurprit Bhatia

Former Member
0 Kudos

Yes,

The interactive element is set to usePdf

Answers (3)

Answers (3)

amolgupta
Active Contributor
0 Kudos

FIRST

Check if in your case, there needs to approprite context mapping between views...Component controller etc...

SECOND

depending on your case...

check if view->edit->properties->lifespan is "framework controlled" and not "when visible"

when it is "when visible", context is lost on navigation.

regards,

-Amol Gupta

Former Member
0 Kudos

Hi,

So check the binding between controller context and model.

You might be mistake in that....

Like....here i explain example.....

Controller context Model

Bapi............Input() Bapi...........................Input()

.firststrucure()

.Output()

firststructure();

So u should be mapped with first one.

Regards,

Gurprit Bhatia

Former Member
0 Kudos

At this point, there is still no model involved.

I just need the filled fields (offline) in the form to be reacheable after the upload.

Normally this would be the case in the context fields.

Thank you

Former Member
0 Kudos

Hi Wesley,

Can you send your project then and then i will suggest what is the problem with that.

Beacuse i told you all clues regarding that.

Regards,

Gurprit Bhatia

Former Member
0 Kudos

Hi Gurprit Bhatia,

Thank you for your time, I really appreciate it. I've sent the project to your gmail-account.

I've added the filled in Adobe PDF which is needed for the uploading process.

After I have uploaded the PDF the context fields arent filled.

Greetz,

Wesley

Former Member
0 Kudos

Hi,

So can u biefly tell me your context over here.....

So your code should be like that for upload...

At Form doinit().........where u declare upload ui element,

wdContext.getNodeInfo().getAttribute("pdfobject").getModifiableSimpleType();

At action.....code should be like that,,,

wdThis.wdGetTravelReqCompController()

.wdGetContext().currentContextElement()

.setPdfobject(wdContext.currentContextElement()

.getPdfobject());

And your pdfobject of form should be binded with pdfobject of controller.

Please check it......

Regards,

Gurprit Bhatia

Former Member
0 Kudos

Yes, this is true and it is already defined in the way that the FormView pdfSource is binded with the pdfSource of the component Controller.

The pdf is shown correctly after the upload. But the context fields are still empty.

The context is :

- DataSource :

- Adress (string)

- Name (string)

- Phone (string)

- Salutation (string)

-PdfSource (binary)

Thank you for your quick replies.

Former Member
0 Kudos

The context description may confuse you:

-Node DataSource

  • Name

  • Adress

  • Phone

  • Salutation

*PdfSource (seperately)