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 Cochran

Pages: 1 2 3 [4]
46
Hi Bruce,

That worked!

Thank you...
Alan

47
I need to be able to set a session value when a button is pressed on a page before calling a browse.  Which embed point do I use to for me to be able to set this value? I currently have two buttons on a page that call the same NetBrowse procedure but based on a SessionValue, I need it to hide either the Change or Insert button based on the SessionValue.  I know I could just create a second NetBrowse procedure but I would like to use just this Browse procedure.

Any help is appreciated.

Thanks...
Alan

48
Web Server - Share Knowledge / Capitalize Input
« on: July 27, 2007, 06:55:54 AM »
Hi All,

To capitalize the first letter in each word of an input, do the following:

1)  Create or modify your custom js file and place the following function in it. (Be sure that the js file has been added in the scripts section of the NetTalk or NetSimple Object extension template under WebServer procedure).

function capitalize(obj) {
   var val = obj.value.toLowerCase();
   if(!val) return;
   val=val.replace(/\b([a-z]+)\b/ig,function(w){
      return w.charAt(0).toUpperCase()+w.substring(1);
   });
   obj.value=val;;
}

2) Create global variable -   js:capitalize STRING('capitalize(this);')

3) In the entry field properties, client tab put that variable (no quotes) in the javascript hand-code entry filed (the onchange group).  Be sure to check the Field check box under the Hand Code Support option.  Also, under the Reset Other fields, add the field you are wanting to Capitalize with the Value checked.

The field will be made Capitalize when the user tabs off it.

Alan


49
Web Server - Ask For Help / Re: Capitalize Javascript Function
« on: July 27, 2007, 06:52:53 AM »
Hi All,

I have figured out on how to call a javascript function to Capitalize an input field. I want to thank Chris Laurie's message (Uppercase Input) in guiding me in the right direction.

Here are the steps to do it:

1)  Create or modify your custom js file and place the following function in it. (Be sure that the js file has been added in the scripts section of the NetTalk or NetSimple Object extension template under WebServer procedure).

function capitalize(obj) {
   var val = obj.value.toLowerCase();
   if(!val) return;
   val=val.replace(/\b([a-z]+)\b/ig,function(w){
      return w.charAt(0).toUpperCase()+w.substring(1);
   });
   obj.value=val;;
}

2) Create global variable -   js:capitalize STRING('capitalize(this);')

3) In the entry field properties, client tab put that variable (no quotes) in the javascript hand-code entry filed (the onchange group).  Be sure to check the Field check box under the Hand Code Support option.  Also, under the Reset Other fields, add the field you are wanting to Capitalize with the Value checked.

The field will be made Capitalize when the user tabs off it.

Alan


50
Web Server - Ask For Help / Capitalize Javascript Function
« on: July 25, 2007, 07:42:29 PM »
Hi All,

Has anybody had any luck with calling a Capitalize Javascript function via an input field?  I am able to run an UPPERCASE and LOWERCASE functions with no problem based on Chris Laurie's example but having problems with a Capitalize function.  I would like to make sure certain fields have the Mixed case capability in different forms. So it would be nice to have one function to accomplish this.

Currently, I have created a JS file with the following:

function capitalize(obj) {
   var val = obj.value.toLowerCase();
   if(!val) return;
   val=val.replace(/\b([a-z]+)\b/ig,function(w){
      return w.charAt(0).toUpperCase()+w.substring(1);
   });
   obj.value=val;;
}


In the Client-Side tab under the Fields option I have in the "When Field Accepted in Browse (onChange)" Javascript HandCode field -  'capitalize(this)'  for the field that I want to call this function.  This is probably my problem since I believe I am not calling this function correctly.  I would appreciate any help on this. I have several forms that I need to make this function call.

Thanks for any help or suggestions on this.
Alan

51
Web Server - Ask For Help / Re: Hiding Child Browse
« on: July 24, 2007, 08:29:58 PM »
Alan,

Thanks for the reply.  I will look into this.

Alan

52
Web Server - Ask For Help / Hiding Child Browse
« on: July 23, 2007, 08:12:43 PM »
Hi All,

I have a NetWebBrowse procedure with a Child Browse on the right side of the page.  I am wanting to hide the child browse when a record on the parent browse has a specific value instead of  the "No Record Found" on the child browse.  Which embed in the Parent Browse procedure do I use to place the command to hide the children browse when I highlight the record?

Another problem that I am having is which embed to use prior to selecting, changing, etc. before calling the form, another browse, etc.  Is there any documentation on helping me to determine which embeds to use? 

Thanks...
Alan

53
Web Server - Ask For Help / Re: File Hyperlink on a Browse
« on: July 06, 2007, 04:19:58 AM »
Hi Bruce.

Is 4.27 available yet?

Alan

54
Hi All,

I have a form that when I click the Save button, I want to run a report with the "_blank" target before returning back to the Browse procedure.   In the URL on Save, I have the browse that called the form with the "_self" target.

I have the following in the "Routines|ValidateAll|Start" embed but it doesn't work:

loc:formname = 'GenFinalBill_frm'
loc:formaction = 'RptFinalBill'
loc:formactiontarget= '_blank'
packet = clip(packet) & '<form input type="submit" name="'&clip(loc:formname)&'" action="'&clip(loc:formaction)&'" method="post" target="'&clip(loc:formactiontarget)&'" onsubmit="{{document.'&clip(loc:formname)&'.action='''&clip(loc:formaction)&''';}"><13,10>'
do SendPacket
packet = clip(packet) & '</form><13,10>'
do SendPacket

I probably have entered incorrect syntax but hopefully what I want to do can be done.

Any help is appreciated.

Thanks...
Alan

55
Web Server - Ask For Help / File Hyperlink on a Browse
« on: July 05, 2007, 07:35:15 PM »
I am wanting to have a hyperlink on a Browse to launch a PDF file.  I noticed there is an checkbox option "Field contains File Name" but it is disabled.  If this feature not available in version 4.26 yet?  If not, is there a workaround to allow for this?

Thanks...
Alan

56
Web Server - Ask For Help / Re: Right Justify a Dollar Amt Issue
« on: July 04, 2007, 05:27:49 AM »
In a form.

Alan

57
Web Server - Ask For Help / Right Justify a Dollar Amt Issue
« on: July 03, 2007, 12:53:20 PM »
Bruce,

I don't know if this is by design or not.

When I right justify a dollar amount that has a negative amount in a entry field on a form, instead of $-50.00 it shows 50.00-$.  But if it is a positive amount, then it amount show okay of $50.00.  The picture field that I have is '@n$-10.2'.  To correct the issue for the time being, I have the picture as '@n10.2-$'.  This will format correctly if right justified. 

Using NetTalk4 version 4.26 and C6 v9056.

Thanks...
Alan

58
Your Views and Comments / Re: Left justify text
« on: June 25, 2007, 09:17:25 AM »
Thanks John for fixing this issue with IE7.

Alan

59
Web Server - Ask For Help / Re: Session Variable Question
« on: June 25, 2007, 08:23:25 AM »
All,

Since using a global variable in the dictionary for File Names doesn't work in the NetTalk web environment (ie !GLO:FileName_CUS), what should I put in the dictionary to handle changing to a different dataset?

TIA,
Alan

60
Web Server - Ask For Help / Re: Session Variable Question
« on: June 22, 2007, 10:31:03 AM »
Chris,

Do you have sample code that you can send me on how this is done?

Thanks...
Alan

Pages: 1 2 3 [4]