Results 1 to 5 of 5

Thread: DF4WP - Can't show single view

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Adelaide, South Australia
    Posts
    477

    Default DF4WP - Can't show single view

    I've installed DF4WP in accordance with Mike's excellent instructions and am able to show and use the 18.2 WebOrder Example with shortcode of:
    Code:
    <div style="padding:2em">
     [df4wp-webapp height="800"]
    </div>
    Then I created a page to show only one view with:
    Code:
    <div style="padding:2em">
     [df4wp-webapp view="oCustomer" height="800"]
    </div>
    Here is the declaration line for oCustomer
    Code:
    Object oCustomer is a cWPWebView
    When I go to the page for the Customer view, it still shows the Orders page which is the default view for the whole App. I know the correct shortcode is being executed because if I change the height this page responds. What am I missing here?

    Ian
    The most important leg on a three legged stool is the one that's missing.
    Murphy's Law (2)

  2. #2
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: DF4WP - Can't show single view

    Ian

    You can only do clever stuff like showing a single view if:


    1. The DF application has been modified to use the cWPxxxxxxx classes (for the WebApp, the views and ideally any modal dialogs)
    2. You have set the psWPEncryptSecret to whatever the plugin has for that in its settings page


    So if you are just using the unmodified Order Entry sample (or any other unmodified program), displaying the whole program is the only option, since the plugin can't communicate with the DataFlex program to tell it to do anything else. You can't just modify the class for one view, because the rest of the DF4WP DataFlex-side functionality (which is mostly in cWPWebApp BTW) isn't there to support it.

    If you modify the oWebApp to be based on cWPWebApp and just one view to be based on cWPWebView - and set the psWPEncryptSecret of the oWebApp - it will probably work, but that is not recommended and your lookup lists will probably go wonky (a technical term, known to but a few ). Best to get the entire app "DF4WP-ised" - it really only takes a few minutes and should not change any functionality outside of WorsPress.

    Mike

  3. #3
    Join Date
    Mar 2009
    Location
    Adelaide, South Australia
    Posts
    477

    Default Re: DF4WP - Can't show single view

    Thanks Mike,
    I've done most of that but I suspect not setting the psWPEncrypt. I'll check that later. That would explain why there is nothing coming through in GetWPInfo (I've been doing a bit of debugging). This is the first step in getting DF to work in conjunction with our own php/angularjs web-site rather than for using Wordpress. You are to be congratulated on the great job you have done on this and I think the information we need is in df4wp-page.php. I'll let you know how we go.
    Ian
    The most important leg on a three legged stool is the one that's missing.
    Murphy's Law (2)

  4. #4
    Join Date
    Mar 2009
    Location
    Adelaide, South Australia
    Posts
    477

    Default Re: DF4WP - Can't show single view

    Thanks Mike,
    It was in fact because we hadn't set psWPEncryptSecret. Now that's done Views work fine and all the WPinfo data comes through.

    Ian
    The most important leg on a three legged stool is the one that's missing.
    Murphy's Law (2)

  5. #5
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: DF4WP - Can't show single view

    Ian

    Glad to hear it!

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •