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 - mtabakin

Pages: 1 [2] 3 4
16
Web Server - Ask For Help / Error in PageFooterTag p_web.Script
« on: September 23, 2013, 11:23:48 AM »
While Bruce is at CIDC - anyone know why and how to get rid of the error after I updated from NT 7.19 to 7.25 "Cannot call procedure as Function" on the p_web.Script(......) line in the following Capesoft embed code in PageFooterTag:

  if (p_web.GetSessionLoggedIn() and p_web.PageName <> p_web.site.LoginPage)
    ! parameter 1 is the session time
    ! parameter 2 is the name of the login page.
    ! parameter 3 is the id of the <div> in the html.
    packet = clip(packet) & p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100) &',"'& clip(p_web.site.LoginPage) &'","countdown");')
    do SendPacket
  end


17
Web Server - Ask For Help / Re: Determine tab user is on
« on: May 14, 2013, 08:20:03 PM »
You learn something new every day. Thanks, your suggestion was the key to making it work!!!

18
Web Server - Ask For Help / Re: Determine tab user is on
« on: May 13, 2013, 06:40:15 PM »
I've taken the Capesoft NT example "SecwinRequiresC6" and added the Captcha code, taken from your Captcha example to the SecwinWebLoginForm. I've added a Captcha field to the Create Your User Login tab.

In the SecwinWebLoginform procedure the two routines with Captcha embedded code are ValidateValue::loc:Captcha and Value::loc:image.

If you compile and run this app and just try to login using the demo/demo (username/password), NOT Create a new login, you'll get the warning that about Verification Required.

Clearly I do not understand why the ValidateValue::loc:Captcha routine is being called in the case of a standard login. The Captcha logic on the Create Your User login (tab) seems to work by itself without any issue, it's just that it also is called when using other tabs.

[attachment deleted by admin]

19
Web Server - Ask For Help / Re: Determine tab user is on
« on: May 12, 2013, 07:48:50 PM »
I guess I didn't ask the right question. First to answer your question "what tab-type are you using"? My answer is whatever tab-type is used by the SecwinWebLoginForm because these are the procedures I imported into my app from the Capesoft NetTalk example "SecwinRequiresC6 (51).

I then added a Captcha field to the "Create a Login" tab again taking code from the Capesoft Captcha (61) example. My problem is that when NOT on the Create a Login "tab", for example when using the "Login", the code that verifies that the Captcha entered matches the Captcha image, is being executed and of course failing verification because no Captcha was entered (or needed to be entered because it is only for the Create a Login function). So I guess I have used an incorrect embed point.

I want the Captcha to only be used and needed when the user is on the "Create a Login" tab so where should verification code be embedded in the SecwinWebLoginform so it only is executed when the user is on the Create a Login tab and clicks the button on that tab?   

20
Web Server - Ask For Help / Determine tab user is on
« on: May 09, 2013, 08:19:16 PM »
I have a NetWebForm with 4 tabs (actually it is the SecwinWebLoginForm with the tabs: Login, Forgot Password, Create a Login and Set Password). I want to determine on which tab the user was on when they clicked a button on that tab. Where/how do I determine the tab?

21
I'm using all Capesoft procedures taken directly from the SecwinRequiresC6_51 example for login purposes in a NTWS app. The procedure SecwinWebLoginForm calls SecwinWebCreateUser. In SecwinWebCreateUser the you set the pFeedback string to 'Your login details have been emailed to your email address.<13,10>Click on the link in the email to activate your account and set your password.' .

When retruning to SecwinWebLoginform you use the returned string in p_web.Message('alert',loc:feedback1,,Net:Send).

I've attached a screen image showing that the string overlaps the border of the p_web.Message block. I tried removing the <13,10> but this did not change anything.

Is there a limitation to the string length? Is there some setting that can be made to increase the depth of the message block so the use of <13,10> will not cause an overlap?

[attachment deleted by admin]

22
Bruce,
 
OK, your work around works. Thanks!!

23
Web Server - Ask For Help / Re: Comment on NetWebForm field duplicated
« on: April 30, 2013, 02:29:09 PM »
Sorry, deleted my reply. Here it is again........

I added comments to the NTWS example 51 - SecwinRequiresC6 (51) on the loc:email field on the "Forgotten Your Password" and "Create a Login" tabs. This illustrates the duplication of the comment. Compile, go to User menu, then login and look at those two tabs.

24
Web Server - Ask For Help / Re: Comment on NetWebForm field duplicated
« on: April 30, 2013, 02:25:23 PM »
Forgot to zip web51.app. Attached here.

[attachment deleted by admin]

25
Web Server - Ask For Help / Comment on NetWebForm field duplicated
« on: April 30, 2013, 09:48:36 AM »
I'm using the SecwinWebLoginForm (NetWebForm) for login. I added a "comment" to the field loc:email (equate email) on the Forgotten your Password tab and a comment on the field loc:email (equate email2) on the Create a Login tab.

When either of these tabs is displayed the "comment" is duplicated, apprearing once next to the loc:email field (as it should) and once right below it.

Am I missing something that must be done to prevent the duplicate display?

26
Web Server - Ask For Help / Re: Default Login Screen Not Working
« on: April 18, 2013, 08:09:41 PM »
Just to add another 2 cents. I'm also having trouble with login but its with using Secwin for access control. I followed the steps in the Secwin Jump Start for adding Secwin to a NTWS app but I'm never authenticated although valid users exist in the Secwin security files. Can't see the browse screens maked as "Must be logged in" and likewise my debug code shows I never am authenticated. My system is using MSSQL but have also tried using TPS tables for the Secwin security files.

27
Web Server - Ask For Help / Re: Suppresss browse not working
« on: April 18, 2013, 05:52:48 AM »
I guess I'm not understanding the correct use of the NetWebBrowse settings General tab. My NetWebPage has an XHtml entry to call a  NetWebBrowse procedure  <!-- Net:Browse_Registrations -->.. This works fine.

I want to suppress the Browse IF it is either empty (Suppress if empty) OR under other conditions that I choose. So I went to the NetWebBrowse procedure in the NetWebBrowse Settings area, on the General tab and did two things:

1. I CHECKED "Suppressed if empty" and
2. In the IF that is right under the suppress if empty checkbox I added a condition (for testing I just entered TRUE).

In the source I see that this added the code in the NetWebBrowse proecedure:

    If (TRUE)
      packet = clip(packet) & p_web.jquery(lower('#Browse_Registrations_div'),'hide','')
    End

I was more interested in having my condition suppress the browse and have not yet actually checked whether the Suppress if empty is working.
However doing what I did does not seem to suppress the browse if my condition evaluates to true in the NetWebBrowse procedure.

I can however suppress the browse if I put my condition into the "condition" in the XHtml entry on the NetWebPage that calls the NetWebBrwose procedure.

So should I be putting my condition to suppress on my condition in NetWebPage AND also checking the box "Suppress if empty" so I get the browse to suppress under both my condition AND when the browse is empty OR can this all be done on the NetWebBrowse setting and if so why if my condition not suppressing the browse? 

28
Web Server - Ask For Help / Re: Suppresss browse not working
« on: April 16, 2013, 08:18:20 PM »
Thanks for the idea. Yes this does work although it would have been nice if the NTWS template would have allowed me to do it on the browse end instead of the NetWebPage. But it works and I guess that's all that matters at this point. Thanks again.

29
Web Server - Ask For Help / Suppresss browse not working
« on: April 11, 2013, 07:48:41 PM »
I have a NetWebPage that has <!-- Net:Browse_Registrations --> in the XHTML. When the NetWebPage displays I get the Browse_Registrations browse displayed as expected.  

I now want to suppress the browse when it is empty OR when a condition is not met. I've checked off "Suppress browse if empty" on the general tab of the the NetWebBrowse procedure and have added (for testing) a 1=1 in the IF condition located under the Suppress browse if empty checkbox. I also added a PageName.

However the browse displays all the time. Is there something else I must do to suppress the browse on the NetWebPage?  

30
Bruce

Thanks for all the insight. I thought I understood your initial response about being able to use the same SQL Secwin tables for both the EXISTING desktop app and the NEW NTWS app (see original post on 3/19/2013). After some issues with getting the Secwin procedures into the NTWS app and compile issues because of corrupted imports I got the NTWS app sort of running. BUT here's the issue. It doesn't seem to be using the SQL Secwin tables. I'm confused.

If I look at the SQL Database I see the Secwin tables (dbo.dbosecwin_operators, etc.) but I don't see them in my Clarion dictionary used by BOTH the desktop application and NTWS app. Or do I see these tables referenced in code in the desktop application in the Secwin procedures used for login, browsing users, updating users, etc.. But the original desktop application is clearly using these tables as I can open the dbosecwin_operators table for example and see the users that have been added. So when I tried to make the NTWS secwin procedures reference the SQL Secwin tables I don't know how to do this. I did a test with importing the Secwin tables txd into the dictionary using the NTWS Secwin JumpStart instructions but these are either memory tables OR tps tables and are separate (?) from the SQL Database Secwin tables.

So here's this issues/questions:

1. How is it that the desktop application is definitely using the SQL Secwin tables for user control without entries in my dictionary?
2. How do I get the NTWS Secwin procedures to reference the very same tables used by the desktop application but with a separate application area as you've pointed out would be a good idea. The only thing I can think of is to import (synchronize) the SQL Secwin tables with my dictionary in order to get the definitions actually into the dictionary and then I can set the NTWS Secwin procedures to these tables?? I don't want to try this and screw up the existing desktop application unless this is the right way to proceed. I'm probably missing the "forest" for the "trees" so to speak but it seems I've just been going around in circles for the past few days. I also know the NTWS is connecting to the SQL database using the FM3 SQLConnect procedure as I can browse one of the tables that the NTWS is "serving" out so access to the Secwin SQL tables is there, just not in a way I can reference them. Don't know if his makes sense and as I said I'm probably missing some minor point that once resolved will allow everything to work properly. Thanks again.

Pages: 1 [2] 3 4