Skip to Content
author's profile photo Former Member
Former Member

Context binding - offline scenario

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2007 at 11:59 AM

    Hi,

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

    Regards,

    Gurprit Bhatia

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2007 at 12:10 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2007 at 12:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • Posted on Dec 26, 2007 at 10:16 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.