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.


Messages - alan

Pages: 1 2 3 [4]
46
Web Server - Ask For Help / how to enable/disable buttons ?
« on: August 14, 2013, 06:06:08 PM »
Bruce,

I have a tabbed form and I would like to disable the NextButton until the user clicks a checkbox.  The buttonset appears to be jquery .  Does NT provide a way to conditionally set the CSS on these buttons to enable/disable them? I assume there's a way to do this since the PreviousButton is only disabled on the first tab. 

I could probably figure out which nt classes to switch if I knew how to switch them.

Thanks


47
Web Server - Ask For Help / Re: call an update form without a browse
« on: August 13, 2013, 01:12:13 AM »
Woohoo!! - it's so easy - after two days of looking

For the benefit of anyone else trying to figure this out:

1.  On the advanced tab, set Default Form Action to Change

2.  On the same tab, set the key field value(s) to the names of the field(s) in the key (in my case, Key field 1 Value is  act:sysid   )

3.  In the first embed after the Code statement, set the value of the key field (in my case -  act:sysid = p_web.GSV('act:sysid')  )

Thanks Bruce

48
Web Server - Ask For Help / Re: call an update form without a browse
« on: August 12, 2013, 07:12:58 PM »
Bruce,

I previously found the setting for default form action and had it set to "Change".  I also tried setting the unique key after the form was opened.  In fact, I tried setting it in almost every embed in the form.

Now, here's something interesting.  I have 3 forms I am calling directly from the menu.  I embedded a message in the embed immediately after the Code statement on all three forms, as well as on a browse and on a form being called by the browse.

All three of the forms being called from the menu are being called constantly.  That is, when the app first opens and anytime any item on the menu is clicked - all three forms are called with p_stage = 524288.  Neither browses nor forms being called by browses have this behavior.

I have no idea if that's what is causing my problem, but it does seem odd.

One more thing - the error I'm getting when calling the forms directly from the menu (with form action set to Change and the unique key primed) is -  record not found: (-2) Error 30: Entry Not Found from key act:sysIdKey

I can't find in the form where the record is being read.  If you can tell me where that is, I can try setting the key immediately before the fetch.

49
Web Server - Ask For Help / Re: IfExistsSessionValue
« on: August 12, 2013, 08:13:08 AM »
problem solved: If I assign the returnvalue for GSV to a string, and then check the string, it works as expected.

This doesn't work: (the value is always copied)
if p_web.GSV('act:conatactemail') = ''
  p_web.SSV('act:contactemail',p_web.GSV('act:attorneyemail'))
end

This works: (the value only copies if act:contactemail = '')
loc:tempstring = p_web.GSV('act:contactemail')
if loc:tempstring = ''
  p_web.SSV('act:contactemail',p_web.GSV('act:attorneyemail'))
end

50
Web Server - Ask For Help / call an update form without a browse
« on: August 12, 2013, 07:47:40 AM »
At login, I'm fetching the user's account record and using SSV to store the user's sysid.

I have a menu item for the user to edit their account information.  When selected, I want to directly call the update form in update mode with the user's account record loaded (using the unique sysidkey)

I can't figure out what code to embed into the update form to make this happen. (or, can I set a parameter when calling the update form from the menu?)

Help would be appreciated.

51
Web Server - Ask For Help / Re: IfExistsSessionValue
« on: August 09, 2013, 08:51:19 AM »
I have Client-side on attorneyEmail set to reset contactEmail.  The embed code is on contactEmail 4 Value Routine.


52
Web Server - Ask For Help / Re: IfExistsSessionValue
« on: August 09, 2013, 06:58:30 AM »
Thanks Peter,

But......with that change I still bet the same result.  When a value is first entered for attorneyEmail, it is in fact defaulted into and displayed in contactEmail.

But. when I go back and change the value in attorneyEmail, I would expect contactEmail to be unchanged since it now has a value.  Instead, contactEmail continues to be updated to reflect changes in attorneyEmail.

It seems that SSV is not "permanently" changing contactEmail - it's just displaying the value without actually writing it into the sessionqueue.  I remain confused.....

Alan

53
Web Server - Ask For Help / IfExistsSessionValue
« on: August 09, 2013, 02:46:35 AM »
I have a form using two columns (act:attorneyEmail and act:contactEmail) from a table names Accounts.

As the user accepts act:attorneyEmail, I want to default contactEmail to the same value, if contactEmail doesn't already have a value.

I found that p_web.SetSessionValue('act:contactemail',act:attorneyemail) will set the value correctly, but I can't get this to operate conditionally.  Here's what I tried (among many other things):

if p_web.IfExistsSessionValue('act:ContactEmail') = 0
  p_web.SetSessionValue('act:contactemail',act:attorneyemail)
end

In this code, the contactEmail is ALWAYS updated to equal attorneyEmail.  I found IfExistsSessionValue is always returning "1", even when I haven't yet touched contactEmail.

Obviously there's something very basic I don't yet understand.  Help would be appreciated.

Alan

54
Web Server - Ask For Help / Re: $ReferenceError: $ is not defined
« on: July 31, 2013, 07:58:39 AM »
Ok, it happened again and this time I figured out the cause.

My redirection (.red) file was set with ".exe = runtime".  So, the app was being generated in the app\runtime folder so it was not able to find the \web folder where my custom .css file was stored.

Solution - make sure the .red file is not causing your .exe to be generated in a folder that is not the parent to the \web folder.

55
Web Server - Ask For Help / using Artisteer templates
« on: July 29, 2013, 04:06:58 AM »
Hi All,
I read a post from Niels Larsen with information about using Artisteer templates in a NetTalk webapp.  That post seemed to indicate there was a way to export a design/layout template from Artisteer into NetTalk. I got Artisteer and created a nice design.

Now, can someone give me some guidance on how to import that design into my NetTalk app?

thanks

Alan

56
Web Server - Ask For Help / Re: $ReferenceError: $ is not defined
« on: July 25, 2013, 04:51:20 AM »
Bruce,

Problem solved - I did a new install of C8,  NT7.17 and StringTheory into a new folder.  Now I'm compiling and running my first webapp.

Alan

57
Web Server - Ask For Help / Re: $ReferenceError: $ is not defined
« on: July 23, 2013, 03:39:43 AM »
Bruce,

I tried the prior suggestions with no success.  The batch files look ok and they ran ok and I moved zlibwapi.dll to the app folder.   I'm waiting for a new installation key to reinstall everything.

I noticed your path is C:\Clarion8\...........

I installed in C:\Softvelocity\Clarion8 and C:\Softvelocity\Capesoft\NetTalk.....

Could this be causing a problem with the batch files or Clarion's .red file.  If so, let me know the expected directory structure and I'll make it so.

Alan

58
Web Server - Ask For Help / $ReferenceError: $ is not defined
« on: July 19, 2013, 11:10:11 AM »
NT 7.16

I installed NT 7.16 and now anything I generate reports a javascript error.  In firebug I see  "$ReferenceError: $ is  not defined"  and the menu doesn't display correctly.  See the attached screenshot.

I deleted the menu extension and I still get the error:

ReferenceError: $ is not defined
     $(document).ready( function(){versionCheck('7.16');

I tried opening and compiling an example app HotDates (12) and got the same problem.  I also tried reinstalling NT 7.16.

Any suggestions?

[attachment deleted by admin]

Pages: 1 2 3 [4]