NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Pauly 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
-
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.
-
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
-
Hi Pauly,
copy this into the tagging example folder.
Cheers,
Kevin
[attachment deleted by admin]
-
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
-
Hi Pauly,
Which Clarion version are you using?
Best regards
Jeffrey
-
G'day Jeffery,
Todays! :-) (Version 8.8973)
Pauly
-
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]
-
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
-
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
-
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
-
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
-
Have you tried it as a popup?
-
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?