on 12-20-2007 11:02 AM
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
Hi,
R u checked the mode of interactive form. It must be " Usedpdf "
Regards,
Gurprit Bhatia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.