NetTalk Central

Author Topic: Bug? - Refreshing values on a page when one changes  (Read 6990 times)

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Bug? - Refreshing values on a page when one changes
« on: March 27, 2012, 12:39:37 AM »
 ???
HI

I have a page (memory form) setup that contains numerous check boxes, date pickers, and a browse. In nettalk five, checking on one check box, unchecks the others.. Picking a new date , changes the values in some of the check boxes etc.. In short - changing one value revalidates and redisplays all the others .

Since Nettalk 6 this has not worked and though I've tried I've had zero success.

Does anyone have a simple example of a memory form with (say) 3 check boxes on it, where checking one, unchecks the others? That (I think) would allow me to solve my problem.

Thanks
Pauly
« Last Edit: April 05, 2012, 04:21:35 AM by Pauly »

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Refreshing values on a page when one changes
« Reply #1 on: March 27, 2012, 04:03:13 AM »
should work the same as NT5. What version of NT6 are you on? I vaguely remember a similar post to your post coming up before and Bruce doing a fix.

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Refreshing values on a page when one changes
« Reply #2 on: March 27, 2012, 04:25:58 PM »
Hi Kevin,

Thanks for the reply - I'm on the latest version, so that won't be it unfortunately. I've only got the one CW PC too so cannot revert back to 5 to make a 'before' and 'After' example as I'm sure to break something else!

If I just has an example that wasn't cluttered up with a whole lot of other stuff I'm confident I could get it working. Hopefully, maybe someone will come up with something :-)

Pauly

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Refreshing values on a page when one changes
« Reply #3 on: March 27, 2012, 09:59:49 PM »
Hi Pauly,

copy this into the tagging example folder.

Cheers,

Kevin

[attachment deleted by admin]

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Refreshing values on a page when one changes
« Reply #4 on: March 28, 2012, 02:45:32 AM »
Hi Again Kevin,

Thanks for that - I copied, compiled and ran your example and it worked great.. so I went about comparing the techniques used in my problem procedure.. identical.. So I added a couple of check boxes to it.. added them to the fields.. did the code.. and didn't work!...
I'm resigned to rewriting the whole module as there's something mysterious and evil going on there. At this stage I've done some of it (in a new procedure) and everything is working fine.
Bloody Gremlins.
Thanks again for your help
Pauly

Jeffrey Kuijt

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Email
Re: Refreshing values on a page when one changes
« Reply #5 on: March 28, 2012, 03:08:01 AM »
Hi Pauly,

Which Clarion version are you using?

Best regards
Jeffrey

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Refreshing values on a page when one changes
« Reply #6 on: March 29, 2012, 01:58:26 AM »
G'day Jeffery,

Todays! :-) (Version 8.8973)

Pauly

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Refreshing values on a page when one changes
« Reply #7 on: April 05, 2012, 01:44:11 AM »
Aha!

Suddenly - the form stopped updating fields again..and I've figured out why - Because I'm including it as a procedure in another form!

So...
Menu
   |_FormA
...works fine.

Menu
   |_FormB
         |_FormA
...and fields in the page no longer update as they should

I'm attaching an example - Copy into the tagging example. To see the behaviour -
1/ Unzip Pauly1.zip into the Tagging (48) directory
2/ Load and gen/compile
3/ Run and open browser window - see the 2 menu items 'Mem Form', and 'Memform Inside a form'.
4/ Click on Memform. WHen you see the three check boxes, click on the first one - RESULT - the other two are checked as well.
5/ CLick on the 'Memform inside a form'. WHen you see 3 check boxes, click on the first one. RESULT - Frustration.

Observation - Inserting the memory form 'Memform' into the procedure 'MemformContainer' changes its refresh behavior.

Finally!.. after all this time.. I'm NOT crazy.
No.. really ;-)

Can someone please confirm this is an issue?

Thanks again
Pauly
 


[attachment deleted by admin]
« Last Edit: April 05, 2012, 01:45:50 AM by Pauly »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Bug? - Refreshing values on a page when one changes
« Reply #8 on: April 05, 2012, 05:35:01 AM »
Hi Pauly,

I don't think you're allowed to include one form inside another. Or let me put it another way;

you're not allowed to embed one form inside another. A form is built around the html <form> tag, and html doesn't allow for nested/embedded <forms>.

so the short answer is - while it _may_ sorta do what you want in some very narrow circumstances - it's not a supported layout.

cheers
Bruce



Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Bug? - Refreshing values on a page when one changes
« Reply #9 on: April 05, 2012, 08:47:41 AM »
Thanks Bruce & welcome back.

You've probably already guessed that what I'm doing here is making a procedure that builds a bunch of parameters that can be put together to form a filter.. Dates, droplists etc. The thinking is (well... was) that I could create all the controls on a form and drop it into other forms that may contain a browse or a report - thereby giving a consistent interface when desired.
Is there a way I can code this once, and use many?
Thanks again
Pauly

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Bug? - Refreshing values on a page when one changes
« Reply #10 on: April 05, 2012, 09:24:43 PM »
Hi Pauly,

usually I have the browse on that specific form as well, but yes, in that sense it's not reusable.

No obvious way of doing it (so that the form can be used over and over) springs to mind...

sorry.

cheers
Bruce

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Bug? - Refreshing values on a page when one changes
« Reply #11 on: April 06, 2012, 04:33:06 AM »
G'day Bruce,

Well there you go - Never Mind, I'll just do it all for each form the filters need to be built on. Next time you're bored, look at a way of integrating a 'bunch o stuff' into reusable objects so I can be lazy will you? ;-)

Thanks for answering.
Pauly

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Bug? - Refreshing values on a page when one changes
« Reply #12 on: April 09, 2012, 06:37:29 PM »
Have you tried it as a popup?

Pauly

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Bug? - Refreshing values on a page when one changes
« Reply #13 on: April 17, 2012, 02:27:42 AM »
HI again,

Well I created a button on a webform, which calls a popup form. on which the user can enter dates and select drop lists from where I SSV the values (to build a filter).

On the calling form (Lets call it form 1) I have a few display only fields and the button. The button is clicked, it pops up the form the user selects items on thet form and cloises it, and the chosen values show on the first form.

BUT

Once I got that working, I put a browse (well a netrweb year) onto the first form.. this is to display the records, filtered according to what the user selected before.

RESULT.. clicking on the button now does nothing. If I remove the browse, it works again (IE click the button.. up pops the form). If I add the browse to the page.. It stops working again.

Will this _ever_ work?

Has anyone ever got a browse to filter records based on a users input?