NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - charl99

Pages: 1 [2] 3
16
Web Server - Ask For Help / Radio Button (Required Attribute)
« on: October 04, 2012, 09:34:52 PM »
Hi Bruce,

Is there a reason why there is no 'Required' Attribute on Radio Buttons?

I mean, when I go into the Form and there is Radio Buttons, I either have to Prime them or when OK button is pressed I have to check that something was actually selected, which feels like it should be unnecessary.

Thanks
Charl

17
Web Server - Ask For Help / Refresh whole Browse after Server Code Runs
« on: September 17, 2012, 05:26:19 AM »
Hi all,

I've noticed something odd.

I have a Browse that calls a pop-up Memory Form and on this Form I have conditions which will result in the data either being modified, changed, etc. Upon returning on 'Save' I have the 'Refresh the whole Browse after Server Code Runs' tick box on.

Problem is,

(a) when I was testing this "slowly" behaviour was as expected. When I try it like a typical user would do, ie running, one item after the other in "fast" mode.
It seems as if the "Browse" has not refreshed yet by the time I press the Action button (on the Browse row),
resulting in the wrong RowID being sent to the server mucking things up.

or (b) When I press the Button without selecting the row it contains the wrong RowID. The button is an 'Other' Button on the Browse Row that include RowID. I checked the box send new value to server but I do not have any code in there.

or (c) a combination of the above

Please, how can I solve this?

Thanks a lot.
Charl

c8.8973 and NT6.38

18
Web Server - Ask For Help / Multiple Selections
« on: August 20, 2012, 07:24:02 AM »
I checked some of the postings regarding this and would really like to see an example if anybody actually has one!

My situation slightly different though. I am on a Browse, and then I want to press a Button that goes to a Browse showing what is available and selected. 

A bit difficult to describe, let my try again. I have an insurance policy, and I can select certain Sections. Once selected from the Sections file, I copy these to the Policy Sections file. So I never go to a Form to Select the Sections.

(Please see attachment. I basically want that Window Select Browse 2nd pic to be called from the left side of the 1st pic.)

So obviously I have to do a Select Sections Browse in NetTalk, and call it from a Browse.  I just don't know if it is possible, how to call it, etc.  I do not even need to know what is already selected, just the Browse to Select from should be cool.

Any ideas anybody, Bruce?

Thanks
Charl


[attachment deleted by admin]

19
Web Server - Ask For Help / Tablets
« on: August 20, 2012, 05:17:01 AM »
Hi guys,

I find that when I use an iPad I want to see less rows in a Browse, like only 5 where as on a desktop with a mouse I'd rather see 15 rows.

So I do the following:

 if instring('IPAD',UPPER(p_web._UserAgent),1,1)
    p_web.ssv('PageRows',5)
.

The question I have is simple, what other things must I check, ie I don't know what other devices act the same.  Can anybody please post here a list of tablet things?

Thanks
Charl

20
Web Server - Ask For Help / Memory Form - loc:act?
« on: August 14, 2012, 08:14:51 AM »
Hi all,

I know a Memory Form is always in Change mode (loc:act = Net:ChangeRecord).  However, is there a way to trap whether the user pressed Insert, Change, Delete or Copy on the Browse that go to the Memory Form (I do not want to use in row buttons)?

I really like Memory Forms for stuff where there are a lot of related files.

Thanks
Charl

21
Hi Bruce,

I note these new methods for build 6.36.

Are these things anything like FileToSessionQueue, ie can I use them to my benefit anywhere and it what situation?

Another thing, in our Desktop app we use a lot of Views where different tables are joined to make the
View. My understanding is I cannot use Views in NetTalk, so I'll make the View and populate a Memory Table to achieve the same goal. Is this correct?

Thanks
Charl

22
Web Server - Ask For Help / Memory Form - Another Tip
« on: July 03, 2012, 02:45:55 AM »
This is, without a shadow of doubt, the best trick I've learned in all my non-existent NetTalk days.

All my file structures and stuff is pretty complicated.  Almost nothing is a simple update or insert, although I tried that with limited success.

So now I put a Button on the Browse row, and use the Memory Form, In the Pre Update -> End Routine I do something like the following:

do openfiles
get all the related files
p_web.FiletoSessionQueue(all the files)
do closefiles

NetTalk handles the forms and stuff, easily.

and in the ValidateAll Routine

do openfiles
p_web.SessionQueuetoFile(all the files)
Do Inserts, updates, deletes, whatever based on a Session variable on the Form
do closefiles

And on the Browse with the Button that calls the Form, just turn on the Refresh whole Browse after server code runs.

I would have saved myself massive head aches if I knew this before.  I can’t wait for my next complicated task…

Hopefully it will help somebody out there!

Cheers
Charl

23
Web Server - Ask For Help / The Magical F10 key
« on: July 03, 2012, 02:28:59 AM »
I can't help myself, but I think this should be shared.

In my Clarion career which this year turns 21, this is the best tip anybody ever gave me, thanks Bruce (of course).

Most probably know this, but for the odd one that does not, when you get to these places in the template where you have to put in a filter, or put in an expression to say it is Read Only IF, etc, press F10,  A big screen pops up and you can see the whole damn entire filter and not just that stupid subset I've been stuck with ever since I can remember.

Finaly, the guessing stops.

Cheers

Charl

24
Hi,

I tried to figure this out (by looking at the PreCopy Routines and stuff), I simply don't understand it :).

I am updating a record, with lots and lots of tabs and fields on it.  Almost every tab or field is dependent on the values of fields in related files (Hide/Unhide, Read Only).

Now I know I can open these files and then p_web.SSV() all the fields one by one in the Pre-Routine, and then in the Post-Routine go and set all of them to be blank again just to make sure they have no impact somewhere else.  But I know someday I will forget to keep this list updated.

So my question (or wish if you like), is there a simple way of setting a _whole_ record to Session Values and then to Clear it again at a later stage.

Thanks

Charl

25
Web Server - Ask For Help / Synchronise message from WebPage
« on: December 05, 2011, 01:54:05 AM »
I cannot seem to synchronise the message from the webpage and the message that appears on top of the screen in red.

Please see attachment, these 2 fields only have 'Required' ticked on.  

The same thing happens when I check in my code to make sure one of the contact no's is filled out and there is still a required field not filled in, 2 different messages. This also means I do not jump to the the right field to fix (orraait, there is always 2 possibilities).
This is a MemoryForm that writes to a file and my code is in Validate All, Start.

Thanks
Charl

C9.056, NT5.43




[attachment deleted by admin]

26
Web Server - Ask For Help / Function thing - threads
« on: November 16, 2011, 05:31:45 AM »
Hi,

My understanding is that if I read a record to memory, and I call a function that modify this record, it won't affect other users (or other records) called by other users?

To clarify, because Bruce never understand my questions ;)

ie, I want to call a function and I want 3 parameters to be passed back, C_UWYear, C_InceptionDate and C_RenewalDate.  As I cannot get 3 parameters back unless I put them in a string, is it good enough to load the record, pass the information like Policy Number and Date of Loss to my function, where I then set these values and it will be changed when I get back from my function to NetTalk.

Thanks

Charl

27
Web Server - Ask For Help / View Only Form with Browse
« on: May 11, 2011, 06:24:56 AM »
Bruce,

If you have a Form and it is in View Only mode, but there is a Browse on the Form, if you press insert on the Browse and return to the form the Form is not in View only mode anymore.

I'll make an example if you wish.

Thanks
Charl

28
Web Server - Ask For Help / Browse (Refresh?)
« on: May 11, 2011, 02:58:44 AM »
I have a Browse, with a filter, status, Quote, Approved, Declined, Activated..  (See attachment.)

When I select the Approved status, I can Activate the Thing.  When I Activate it, the status change, so I set the session value for the filter status to 'Activated' and after Activating it returns to the Activated Tab.

The problem is I need to do a 'Refresh' so I can see the Thing I just Activated but I have no idea how to do that.

Any suggestions?

Thanks
Charl

[attachment deleted by admin]

29
Web Server - Ask For Help / NT 5.23 (Pre-Releae maybe)
« on: April 21, 2011, 01:56:53 AM »
Hi Bruce,

If NT5.23 is not ready yet, is it possible to get a pre-release?  I am not really using pop-ups but would very much like the other stuff asap.

Thanks
Charl

30
Web Server - Ask For Help / Report with Parameters
« on: April 19, 2011, 03:30:54 AM »
Hi,

For the life of me, I cannot seem to get this figured out.

What would be the prototype of the following parameters, if they are indeed correct?

(<NetWebServerWorker p_web>, <string l:dispose>, long l:clientno=0)

I tried (<NetWebServerWorker p_web>, <string>, long) and a few other combinations, but I cannot figure it out from the book or the examples.

The compiler just hangs when I get there.  Clarion 6.3 9054 NT 5.22, Report to PDF with the NetTalk extension.  When wil 5.23 come out?

Thanks
Charl


Pages: 1 [2] 3