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.
271
Web Server - Ask For Help / Global values
« on: February 20, 2012, 12:58:45 AM »
Hi Guys,
From other discussions I gathered that it is not good practice to use global variables for global values.
I do have some values that should be available to all procedures (web and non-web).
Can I use global variables for these?
What are the do's and don'ts re global-variables?
Regards
Rupert
From other discussions I gathered that it is not good practice to use global variables for global values.
I do have some values that should be available to all procedures (web and non-web).
Can I use global variables for these?
What are the do's and don'ts re global-variables?
Regards
Rupert
272
Web Server - Ask For Help / Re: Run code from Server Side
« on: February 17, 2012, 01:19:12 AM »
Hi Bruce,
Is it possible to put a "timer event" on the server side procedure to monitor for a trigger?
How do I pass a value from a session variable to the server side "timer event" to trigger the event?
Is it possible to put a "timer event" on the server side procedure to monitor for a trigger?
How do I pass a value from a session variable to the server side "timer event" to trigger the event?
273
Web Server - Ask For Help / Re: Run code from Server Side
« on: February 16, 2012, 12:40:29 AM »
Hi Bruce,
I think the best way is to code the "trigger" in the post-insert, start embed of the form.
Thus, when the record is inserted, it will action the code on the server-side.
Regards
Rupert
I think the best way is to code the "trigger" in the post-insert, start embed of the form.
Thus, when the record is inserted, it will action the code on the server-side.
Regards
Rupert
274
Web Server - Ask For Help / Run code from Server Side
« on: February 15, 2012, 11:23:33 PM »
Hi Guys,
There is some code that I'd like to add to the server-side window of my web-server app.
Thus, adding it to the web-server procedure.
How do I built-in a trigger from the web-page to 'action' the code inserted in the web-server procedure?
There is some code that I'd like to add to the server-side window of my web-server app.
Thus, adding it to the web-server procedure.
How do I built-in a trigger from the web-page to 'action' the code inserted in the web-server procedure?
275
Web Server - Ask For Help / Re: Linking to credit card API
« on: February 10, 2012, 05:24:17 AM »
Thanks Bruce,
The problem was that I was redirecting to another page and need to save the record values, before redirecting.
My problem was caused by "URL ON SAVE" bypassing the Validation Routine.
The problem was that I was redirecting to another page and need to save the record values, before redirecting.
My problem was caused by "URL ON SAVE" bypassing the Validation Routine.
276
Web Server - Ask For Help / Re: Linking to credit card API
« on: February 09, 2012, 04:29:33 AM »
Hi Bruce,
>> 1. Which is the best embed to use "after completing the form-wizard" to do any record inserts / updates and call the NetWebClient procedure for the CC API auth?
ValidateRecord routine
I have added some code in the "ValidateRecord" routine,
BEFORE p_web.DeleteSessionValue('fWizard_ChainTo') in the embeditor
The code however is NOT executed when the wizard FINISH button is clicked, not sure what I am missing here ...
>> 3. I am not too sure how to handle the response coming-back from the CC-API.
in .PageReceived method in your Webclient procedure.
>> ThisClient.SetValue('P1',CLIP(LOC:TerminalID)
>> ThisClient.SetValue('P2',CLIP(LOC:CCTrReferenceNo)
>> ThisClient.SetValue('P3',CLIP(LOC:Description)
they don't have fields P1, P2, P3. so wy are you setting these values?
Their documentation indicate field names P1 .. P12
For example: P1 = Terminal ID.
So I guess I have to set these values:
ThisClient.SetValue('P1',CLIP(LOC:TerminalID) ... before posting?
Regards
Rupert
>> 1. Which is the best embed to use "after completing the form-wizard" to do any record inserts / updates and call the NetWebClient procedure for the CC API auth?
ValidateRecord routine
I have added some code in the "ValidateRecord" routine,
BEFORE p_web.DeleteSessionValue('fWizard_ChainTo') in the embeditor
The code however is NOT executed when the wizard FINISH button is clicked, not sure what I am missing here ...
>> 3. I am not too sure how to handle the response coming-back from the CC-API.
in .PageReceived method in your Webclient procedure.
>> ThisClient.SetValue('P1',CLIP(LOC:TerminalID)
>> ThisClient.SetValue('P2',CLIP(LOC:CCTrReferenceNo)
>> ThisClient.SetValue('P3',CLIP(LOC:Description)
they don't have fields P1, P2, P3. so wy are you setting these values?
Their documentation indicate field names P1 .. P12
For example: P1 = Terminal ID.
So I guess I have to set these values:
ThisClient.SetValue('P1',CLIP(LOC:TerminalID) ... before posting?
Regards
Rupert
277
Web Server - Ask For Help / Linking to credit card API
« on: February 07, 2012, 05:06:52 AM »
Hi Guys,
Following my previous post re "linking to credit card API";
I want to be able to communicate from my server to the CC API transparently.
And receive the CC API response back into my database.
I have a NetWebForm(Wizard), collecting data from the user.
And a NetWebClient() procedure in the same app.
The post to the CC API should look like this, as an example:
<form method="POST" action="https://their_url/ccform.asp">
<input type="hidden" name="p1" value="a">
<input type="hidden" name="Budget" value="n">
<input type="hidden" name="NextOccurDate" value="o">
<input type="hidden" name="m_10" value="z">
<input type="submit" value="Proceed to Payment">
</form>
I watched the Webinar on NetWebClient() and inserted the following lines of code:
RequestNumber = 1
ThisClient = FreeFieldsQueue()
ThisClient.SetValue('P1',CLIP(LOC:TerminalID)
ThisClient.SetValue('P2',CLIP(LOC:CCTrReferenceNo)
ThisClient.SetValue('P3',CLIP(LOC:Description)
ThisClient.ContentType='application/x-www-form-urlencoded'
ThisClient.POST('https://their_url/ccform.asp','')
* I did not specific any .SSLCertificateOptions, as it is not required by the API.
Back to my procedures:
My NetWebForm(Wizard) procedure, is memory-based and does not automatically insert / update the record. When the user clicks "Finish" in the wizard, I'd like to insert / update the record and call the NetWebClient procedure.
1. Which is the best embed to use "after completing the form-wizard" to do any record inserts / updates and call the NetWebClient procedure for the CC API auth?
2. I have quite a number of variables to pass between the NetWebForm and the NetWebClient, is the best way to first save the record from the NetWebForm(Wizard) and then to FETCH the record in the NetWebClient() for submission to the CC API?
The CC API makes provision for the following:
URL for cancelled transactions
URL for declined transactions
URL for authorised transactions
3. I am not too sure how to handle the response coming-back from the CC-API.
What they have indicated: If we use HTTP method "POST", the parameters will be embedded into the HTTP header.
How could I save the returned values from the reply?
Regards
Rupert
Following my previous post re "linking to credit card API";
I want to be able to communicate from my server to the CC API transparently.
And receive the CC API response back into my database.
I have a NetWebForm(Wizard), collecting data from the user.
And a NetWebClient() procedure in the same app.
The post to the CC API should look like this, as an example:
<form method="POST" action="https://their_url/ccform.asp">
<input type="hidden" name="p1" value="a">
<input type="hidden" name="Budget" value="n">
<input type="hidden" name="NextOccurDate" value="o">
<input type="hidden" name="m_10" value="z">
<input type="submit" value="Proceed to Payment">
</form>
I watched the Webinar on NetWebClient() and inserted the following lines of code:
RequestNumber = 1
ThisClient = FreeFieldsQueue()
ThisClient.SetValue('P1',CLIP(LOC:TerminalID)
ThisClient.SetValue('P2',CLIP(LOC:CCTrReferenceNo)
ThisClient.SetValue('P3',CLIP(LOC:Description)
ThisClient.ContentType='application/x-www-form-urlencoded'
ThisClient.POST('https://their_url/ccform.asp','')
* I did not specific any .SSLCertificateOptions, as it is not required by the API.
Back to my procedures:
My NetWebForm(Wizard) procedure, is memory-based and does not automatically insert / update the record. When the user clicks "Finish" in the wizard, I'd like to insert / update the record and call the NetWebClient procedure.
1. Which is the best embed to use "after completing the form-wizard" to do any record inserts / updates and call the NetWebClient procedure for the CC API auth?
2. I have quite a number of variables to pass between the NetWebForm and the NetWebClient, is the best way to first save the record from the NetWebForm(Wizard) and then to FETCH the record in the NetWebClient() for submission to the CC API?
The CC API makes provision for the following:
URL for cancelled transactions
URL for declined transactions
URL for authorised transactions
3. I am not too sure how to handle the response coming-back from the CC-API.
What they have indicated: If we use HTTP method "POST", the parameters will be embedded into the HTTP header.
How could I save the returned values from the reply?
Regards
Rupert
278
Web Server - Ask For Help / Re: Link to credit card API
« on: February 07, 2012, 04:27:06 AM »
Hi Johan,
Sorry, I only opened this topic again today.
Only saw your post now ... didn't see any notification.
No, it's not yet working, but I think I am on the right track :-)
Will start a new topic with the latest info and questions.
Regards
Rupert
Sorry, I only opened this topic again today.
Only saw your post now ... didn't see any notification.
No, it's not yet working, but I think I am on the right track :-)
Will start a new topic with the latest info and questions.
Regards
Rupert
279
Web Server - Ask For Help / CSS Style Sheets
« on: January 24, 2012, 04:48:49 AM »
Hi Guys,
What could be the reason why one CSS class could effect another in a single app?
For example, I have these two classes in one CSS file:
.Tab1Txt {
font-weight: bold;
font-family: Verdana;
font-size: 13px;
etc ....
}
.Tab2Txt {
font-weight: normal;
font-family: Verdana;
font-size: 20px;
etc ....
}
Class Tax2Txt doesn't have any text "style" effect, until I move it prior to Tab1Txt in the CSS file.
As soon as [2] is above [1] in the CSS file, the styles are applied.
I checked my app and as far as I can see, these two classes were only used once on the respective tabs / text fields.
What is strange, is that [2] is not taking on the attributes of [1], but instead it cancels all styles when [2] is below [1] in the CSS file.
Any help will be appreciated.
Thanks, Rupert
What could be the reason why one CSS class could effect another in a single app?
For example, I have these two classes in one CSS file:
.Tab1Txt {
font-weight: bold;
font-family: Verdana;
font-size: 13px;
etc ....
}
.Tab2Txt {
font-weight: normal;
font-family: Verdana;
font-size: 20px;
etc ....
}
Class Tax2Txt doesn't have any text "style" effect, until I move it prior to Tab1Txt in the CSS file.
As soon as [2] is above [1] in the CSS file, the styles are applied.
I checked my app and as far as I can see, these two classes were only used once on the respective tabs / text fields.
What is strange, is that [2] is not taking on the attributes of [1], but instead it cancels all styles when [2] is below [1] in the CSS file.
Any help will be appreciated.
Thanks, Rupert
280
Web Server - Ask For Help / Re: Change value before insert / save
« on: January 19, 2012, 04:53:59 AM »
I think I found the correct embed for this;
PREINSERT, after END
PREUPDATE, after END
?
PREINSERT, after END
PREUPDATE, after END
?
281
Web Server - Ask For Help / Change value before insert / save
« on: January 19, 2012, 04:46:50 AM »
Hi Guys,
I have a NetWebBrowse with a NetWebForm
The user is selecting some values on the form
I'd like to change / overwrite some values, just before the record is finally inserted / saved to the database from the form.
What will be the best embed to use in the form for the above ...?
Thanks
Rupert
I have a NetWebBrowse with a NetWebForm
The user is selecting some values on the form
I'd like to change / overwrite some values, just before the record is finally inserted / saved to the database from the form.
What will be the best embed to use in the form for the above ...?
Thanks
Rupert
282
Web Server - Ask For Help / Re: Web Server Window
« on: January 17, 2012, 03:37:39 AM »
Thanks Rene, Bruce :-)
Is it simply a matter of dropping SelfSevice into the app to run the web-sevice as a 'Windows service'?
Any cons?
Is it simply a matter of dropping SelfSevice into the app to run the web-sevice as a 'Windows service'?
Any cons?
283
Web Server - Ask For Help / Web Server Window
« on: January 17, 2012, 03:02:50 AM »
Hi Guys,
What is the easiest or best way to prevent an administrator of closing the web server window on the server?
What is the easiest or best way to prevent an administrator of closing the web server window on the server?
284
Web Server - Ask For Help / Re: Link to credit card API
« on: January 12, 2012, 05:50:29 AM »
Thanks Bruce,
I entered the URL on save.
Where do I create and call the form with the hidden fields?
I entered the URL on save.
Where do I create and call the form with the hidden fields?
285
Web Server - Ask For Help / Link to credit card API
« on: January 12, 2012, 05:26:46 AM »
Hi Guys,
I have a NetWebForm(wizard) with a FINISH(proceed to payment) button at the end.
According to the credit-card company I have to pass some values to their system, and call an HTML form from the FINISH button on my NetTalk wizard form.
Below is an example of some of the form fields they require.
How do I pass these values to their system via an HTML form from the FINISH button of my NetWebForm(Wizard) procedure?
<form method="POST" action="https://their_url/ccform.asp">
<input type="hidden" name="p1" value="a">
<input type="hidden" name="p2" value="b">
<input type="hidden" name="Budget" value="n">
<input type="hidden" name="NextOccurDate" value="o">
<input type="hidden" name="m_7" value="z">
<input type="hidden" name="m_10" value="z">
<input type="submit" value="Proceed to Payment">
</form>
I have a NetWebForm(wizard) with a FINISH(proceed to payment) button at the end.
According to the credit-card company I have to pass some values to their system, and call an HTML form from the FINISH button on my NetTalk wizard form.
Below is an example of some of the form fields they require.
How do I pass these values to their system via an HTML form from the FINISH button of my NetWebForm(Wizard) procedure?
<form method="POST" action="https://their_url/ccform.asp">
<input type="hidden" name="p1" value="a">
<input type="hidden" name="p2" value="b">
<input type="hidden" name="Budget" value="n">
<input type="hidden" name="NextOccurDate" value="o">
<input type="hidden" name="m_7" value="z">
<input type="hidden" name="m_10" value="z">
<input type="submit" value="Proceed to Payment">
</form>