Quantcast
Channel: West Wind Message Board Messages
Viewing all 10393 articles
Browse latest View live

Re: Blank values

$
0
0
Re: Blank values
Westwind.Globalization
Re: Blank values
Feb. 20, 2015
12:53 am
4AC01WB53Show this entire thread in new window
Gratar Image based on email address
From:NickGR
To:NickGR
Ok now it happend again. I switched language settings and reloaded the page. Still blanks :(



Yes I have the latest version.

It has not occured again so I am waiting for it to try switching language.

Thanks

One more question: Are you using the latest version? There were some edge cases where a locking problem could cause resource to not get loaded properly. However, that typically would only result in empty resources for a single request before recovering for subsequent requests.

This was addressed in the latest version that's on NuGet.

+++ Rick ---



There is no problem with the database or Connection to it. I will try and switch language when it happens!


If there's any sort of problem with the database or connection or configuration you will get blank values. Due to the way the ASP.NET system provider works if there's a failure the custom provider is not called and so you don't even get the default values that the Westwind provider will feed.

Curious - what happens if you switch your language? IOW you force other resource sets to be loaded?

+++ Rick ---



Hi,

Sometimes my website's labels and button texts turn blank. The only way to restore them is to restart the application pool.. Any ideas?








Sharing HTML blocks across pages - one best way?

$
0
0
Sharing HTML blocks across pages - one best way?
Web Connection
Sharing HTML blocks across pages - one best way?
Feb. 20, 2015
01:13 am
4AC02M3XBShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:All
Hi,

Starting to move a wConnect site from HTML-in-prg style to scripting style (.ExpandTemplate() and/or .ExpandScript() and/or template script-mapped extension).

Purpose: easily share existing HTML with a design agency, and easily integrate new HTML

Wondering how to share HTML code blocks across pages
eg, considering this block of HTML stored in head.htm

<!DOCTYPE html><htmllang="fr"><head><title><%=variable%></title> ....</head>

1/ how to make sure all pages in site include this block?
SSI directives are very handy because supported by all web servers
a typical SSI directive is:

<!--#include virtual=head.htm -->>

Does wConnect support SSI directive?

2/ what is the best practice to make sure 'variable' is available when page is generated?
- use a 'private' variable (.ExpandTemplate() and/or .ExpandScript())
- move all code generating variable into a code block inside head.htm?

Also looking for wConnect user feedback/advice/tricks ...

Thanks,

Re: Email not being sent

$
0
0
Re: Email not being sent
West Wind Client Tools
Re: Email not being sent
Feb. 20, 2015
02:58 am
4AC06DD1IShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Bruce Rowe

Make sure there's no firewall in the way. Add the app to the firewall exclusions on the port you're trying to use...

If you're using port 587 that's usually TLS/SSL so make sure you have the SSL flag set.

+++ Rick ---



West Wind Client Tools has worked out very well for me. My clients send their email from their computers to a the Mandrill Mail service. At this point, I have several hundred users happily sending email. There is only 1 exception. This particular client keeps getting an "SMTP error - Failure sending email." Everyone in his office has this problem. This happens no matter what encryption or port setting I give.

I talked to the mail service company. They said that there is no problem. The client is not on any blacklist.

I installed Telnet and got the following responses
telnet smtp.mandrillapp.com 587 returns "220 smtp.mandrillapp.com" - this should work. But it doesn't.
telnet smtp.mandrillapp.com 25 returns "-3 - Couldn't connect to the server: smtp.mandrillapp.com"
Using the GMail settings I got "Failure sending"
The client has .NET installed

I'm pretty sure the client has something funny with their computers. But, I don't know what it is.

Does anyone here know what is going on or how to fix it?

Thanks in advance.

Bruce



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: Sharing HTML blocks across pages - one best way?

$
0
0
Re: Sharing HTML blocks across pages - one best way?
Web Connection
Re: Sharing HTML blocks across pages - one best way?
Feb. 20, 2015
02:58 am
4AC06DD0VShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Thierry Nivelet (FoxInCloud)
No but remember this is FoxPro so you have LOTS of options:

Import a plain file without:

<%= FILETOSTR(Config.cHtmlPagePath + "LeftSideBar.wws") %>

Import and run as a Template (ie. expand <%= %> expressions)

<%= MergeTextFromFile( Config.cHtmlPagePath + "LeftSideBar.wws" ) %>

Cache included text:

<%= CacheFile( Config.cHtmlPagePath + "Header.wws",0 ) %>

Cache and merge:

<%= CacheFile( MergeTextFromFile( Config.cHtmlPagePath + "LeftSideBar.wws" ),0 ) %>

+++ Rick ---


Hi,

Starting to move a wConnect site from HTML-in-prg style to scripting style (.ExpandTemplate() and/or .ExpandScript() and/or template script-mapped extension).

Purpose: easily share existing HTML with a design agency, and easily integrate new HTML

Wondering how to share HTML code blocks across pages
eg, considering this block of HTML stored in head.htm

<!DOCTYPE html><htmllang="fr"><head><title><%=variable%></title> ....</head>

1/ how to make sure all pages in site include this block?
SSI directives are very handy because supported by all web servers
a typical SSI directive is:

<!--#include virtual=head.htm -->>

Does wConnect support SSI directive?

2/ what is the best practice to make sure 'variable' is available when page is generated?
- use a 'private' variable (.ExpandTemplate() and/or .ExpandScript())
- move all code generating variable into a code block inside head.htm?

Also looking for wConnect user feedback/advice/tricks ...

Thanks,



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: GetMultiPartFile not saving to disk

$
0
0
Re: GetMultiPartFile not saving to disk
Web Connection
Re: GetMultiPartFile not saving to disk
Feb. 20, 2015
03:00 am
4AC06FL9HShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jeff

Hmmm... I'm not sure why SYSTEM would not be able to access a folder on the local machine. SYSTEM has global Full Rights unless permissions have been explicitly changed.

Check folder permissions in the folder you're trying to write to and make sure SYSTEM is the rights.

Also check and make sure that there's no interference from Anti-Virus software. It might quarantine writes from SYSTEM in certain locations on disk. Turn it off and try the write operations again to see if that works...

+++ Rick ---


We run our web connection executable as a service, and I determined the culprit to be the service's credentials. If I run as "local system" the upload fails, but if I put in domain admin creds it works fine. It also fails if I use Local Admin credentials.

All components (.exe, website, all data, temp folders, etc) are on the local machine. Any suggestions of how we can beef up a Local Admin account so that it can properly upload the files? Hate to keep an active Domain Admin account provisioned solely to use to run this one website.

Thanks,

Jeff

Yup.

Probably fine, but you have to check anyway if you have a problem. Permissions are the most likely culprit though.

+++ Rick ---



When you say "You might also want to check and insure that the file is actually getting captured in the string" ... meaning make sure that there is actually something in the buffer? I think that means that the size of the buffer is > 0. Right? Sorry, I haven't touched this code in a couple of years.

Thanks!

Jeff


Most likely permissions.

Make sure the IIS Application Pool user account has writes to write the file in the folder you're writing it too. You might also want to check and insure that the file is actually getting captured in the string...

+++ Rick ---



I have a website that uploads a file to the server. I can boil the upload process down to this:

lcFileBuffer1 = REQUEST.GetMultiPartFile("FileName1",@lcFileName1)
File2Var(lcFileName1,lcFileBuffer1)

This has worked fine for several years on a 2003 Server. I am trying to install on a 2012 Server, and the file never gets saved to the server. The FileName FolderName are saved to a dbf after the upload, so Visual FoxPro thinks that the file was saved properly. There is a moderate amount of error checking that goes on to verify that the file sizes are appropriate, etc, and nothing is reported out of the ordinary. Everything seems to be just fine....but the file never saves.

Is there any difference between Server 2003 and 2012 that might cause this? Can you think of anything that I might need to consider?

Thanks!

Jeff









Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: Sharing HTML blocks across pages - one best way?

$
0
0
Re: Sharing HTML blocks across pages - one best way?
Web Connection
Re: Sharing HTML blocks across pages - one best way?
Feb. 20, 2015
03:12 am
4AC06V4T4Show this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Rick Strahl
Hi Rick,

thanks for all these solutions
actually I'm looking for a mechanism that the design agency can support

I plan to have:

site root folder
-- head-htm
-- body-beg.htm
-- header.htm
-- ...
-- body-end.htm

a typical page.htm will be:

<!--#include virtual=head-htm -->><!--#include virtual=body-beg.htm -->><!--#include virtual=header.htm -->><!--#include virtual=body-end.htm -->>

the designer will see the full page thru a simple
http://localhost/page.htm

we'll implement SSI <!--#include --> directive support somewhere in the wc framework and share whenever someone finds it useful


No but remember this is FoxPro so you have LOTS of options:

Import a plain file without:

<%= FILETOSTR(Config.cHtmlPagePath + "LeftSideBar.wws") %>

Import and run as a Template (ie. expand <%= %> expressions)

<%= MergeTextFromFile( Config.cHtmlPagePath + "LeftSideBar.wws" ) %>

Cache included text:

<%= CacheFile( Config.cHtmlPagePath + "Header.wws",0 ) %>

Cache and merge:

<%= CacheFile( MergeTextFromFile( Config.cHtmlPagePath + "LeftSideBar.wws" ),0 ) %>

+++ Rick ---


Hi,

Starting to move a wConnect site from HTML-in-prg style to scripting style (.ExpandTemplate() and/or .ExpandScript() and/or template script-mapped extension).

Purpose: easily share existing HTML with a design agency, and easily integrate new HTML

Wondering how to share HTML code blocks across pages
eg, considering this block of HTML stored in head.htm

<!DOCTYPE html><htmllang="fr"><head><title><%=variable%></title> ....</head>

1/ how to make sure all pages in site include this block?
SSI directives are very handy because supported by all web servers
a typical SSI directive is:

<!--#include virtual=head.htm -->>

Does wConnect support SSI directive?

2/ what is the best practice to make sure 'variable' is available when page is generated?
- use a 'private' variable (.ExpandTemplate() and/or .ExpandScript())
- move all code generating variable into a code block inside head.htm?

Also looking for wConnect user feedback/advice/tricks ...

Thanks,




-- thn (FoxInCloud)

Replacing null in JSON

$
0
0
Replacing null in JSON
ASP.NET
Replacing null in JSON
Feb. 20, 2015
09:24 am
4AC0K6CPAShow this entire thread in new window
Gratar Image based on email address
From:Erwin
To:All
I have a view that uses an ApiController to return the following JSON from an ADO.Net class. Column name 'parent' is an optional int value, but I want to return it as string when it is null.
How can I replace the entry in the JSON result before it is sent back to the view?
"parent":null
with
"parent":"#"
in the JSON?

The column "parent"

[System.ComponentModel.DefaultValue("#")]publicint? parent { get; set; }

The JSON

[{"id":2,"text":"PROG","parent":null},{"id":3,"text":"STAGE ONE","parent":2},{"id":4,"text":"INFRA","parent":2},{"id":5,"text":"SYSTEM","parent":3},{"id":6,"text":"STOCK","parent":3},{"id":7,"text":"DPT","parent":3},{"id":8,"text":"SUPPLIES","parent":2}]


Thanks for your help

HTML Help Builder

Replacing null in JSON

$
0
0
Replacing null in JSON
ASP.NET
Replacing null in JSON
Feb. 20, 2015
08:16 pm
4AC17GIMBShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Erwin

You can't assign a default value of a string to an int or int? value so this will silently fail.

The only way you can do this is to build custom JSON.NET converter that handles the object and specific value explicitly. Not a trivial thing to do.

One thing you can also do is use LINQ or an Anonymous object to project to a new anonymous type to export:

var obj = <yourobject>;
returnnew { name = obj.name, company = obj.company, parent = obj.parent == null ? "#" : obj.parent.Value.ToString() };

Essentially what you're doing is exporting your data model and what this does is expose a view model to what's required on the client.

+++ Rick ---



I have a view that uses an ApiController to return the following JSON from an ADO.Net class. Column name 'parent' is an optional int value, but I want to return it as string when it is null.
How can I replace the entry in the JSON result before it is sent back to the view?
"parent":null
with
"parent":"#"
in the JSON?

The column "parent"

[System.ComponentModel.DefaultValue("#")]publicint? parent { get; set; }

The JSON

[{"id":2,"text":"PROG","parent":null},{"id":3,"text":"STAGE ONE","parent":2},{"id":4,"text":"INFRA","parent":2},{"id":5,"text":"SYSTEM","parent":3},{"id":6,"text":"STOCK","parent":3},{"id":7,"text":"DPT","parent":3},{"id":8,"text":"SUPPLIES","parent":2}]


Thanks for your help



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui


Re: Blank values

$
0
0
Re: Blank values
Westwind.Globalization
Re: Blank values
Feb. 20, 2015
08:26 pm
4AC17SU0LShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:NickGR
Hi Nick,

Unfortunately without a little more info on the scenario how this happens

I asked before, but are you running the latest? The pre-release for 2.0 has a few additional safe-guards against race conditions on very busy site start ups. Even so we have tests that check for this scenario and we've not been able to duplicate any failures to get no resources - unless the load operations against the db fail outright...

What provider are you using?

Can you please log an issue on GitHub:

https://github.com/RickStrahl/Westwind.Globalization/issues

Any additional info would be useful. You haven't given any info on your runtime environment at this time...

+++ Rick ---



Ok now it happend again. I switched language settings and reloaded the page. Still blanks :(



Yes I have the latest version.

It has not occured again so I am waiting for it to try switching language.

Thanks

One more question: Are you using the latest version? There were some edge cases where a locking problem could cause resource to not get loaded properly. However, that typically would only result in empty resources for a single request before recovering for subsequent requests.

This was addressed in the latest version that's on NuGet.

+++ Rick ---



There is no problem with the database or Connection to it. I will try and switch language when it happens!


If there's any sort of problem with the database or connection or configuration you will get blank values. Due to the way the ASP.NET system provider works if there's a failure the custom provider is not called and so you don't even get the default values that the Westwind provider will feed.

Curious - what happens if you switch your language? IOW you force other resource sets to be loaded?

+++ Rick ---



Hi,

Sometimes my website's labels and button texts turn blank. The only way to restore them is to restart the application pool.. Any ideas?










Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

FIC online store option

$
0
0
FIC online store option
FoxInCloud
FIC online store option
Feb. 22, 2015
05:07 am
4AE0AZ0H3Show this entire thread in new window
Gratar Image based on email address
From:Naeem Afzal
To:All
Hello,

How can I buy a perpetual license from vendor's website? Any web link to online store.

Regards,
Naeem

Shareware Message.

$
0
0
Shareware Message.
Web Service Proxy Generator
Shareware Message.
Feb. 22, 2015
05:06 pm
4AE10OO0BShow this entire thread in new window
Gratar Image based on email address
From:Rafael
To:All
Hi!

I just installed a purchased version of the Web Service Proxy Generator. I made the installation on top of the demo version as email instructions.
Now, when i run the application it still showing the shareware message.

I did a 2nd trial removing the Web Service Proxy Generator, installing it again and i still getting the message.
I'm in a rush because i have to install one application that uses the WSPG in one of my customers.

Please let me know what can i do.

Thanks.
Rafael.

Re: Shareware Message.

$
0
0
Re: Shareware Message.
Web Service Proxy Generator
Re: Shareware Message.
Feb. 22, 2015
07:41 pm
4AE167560Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Rafael

Are you sure you downloaded the fully registered version from the email link that was sent to you?

I just downloaded and installed the full version from the download link and it works just fine with no shareware messages.

If the generator doesn't display the shareware message then you got the right version. In addition make sure you explicitly recompile all of your code - delete all fxp files and recompile all vcx files. You may have newer fxp files that would not automatically update if you just copy the files in.

+++ Rick ---



Hi!

I just installed a purchased version of the Web Service Proxy Generator. I made the installation on top of the demo version as email instructions.
Now, when i run the application it still showing the shareware message.

I did a 2nd trial removing the Web Service Proxy Generator, installing it again and i still getting the message.
I'm in a rush because i have to install one application that uses the WSPG in one of my customers.

Please let me know what can i do.

Thanks.
Rafael.



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: FIC online store option

$
0
0
Re: FIC online store option
FoxInCloud
Re: FIC online store option
Feb. 23, 2015
01:33 am
4AF03CYQ6Show this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Naeem Afzal
Hi Naeem,

Thanks for your interest in FoxInCloud!

Due to the third-party license checks required, the FoxInCloud license ordering process remains - for now - pretty manual.

We'll send you an private email soon.


Hello,

How can I buy a perpetual license from vendor's website? Any web link to online store.

Regards,
Naeem


-- thn (FoxInCloud)

Session

$
0
0
Session
FoxPro Programming
Session
Feb. 24, 2015
10:35 am
4AG0MPM1PShow this entire thread in new window
Gratar Image based on email address
From:Michael Hogan (Ideate Hosting)
To:All
In a new webconnect app I've set

FUNCTION OnProcessInit

THIS.InitSession("KJDevSession")

I can SET the session variables but when I try to GET them I am getting 'Unknown Member Session' or 'Unknown Member oSession' and the Process.oSession object is null.

I am SETting them in the Process class, and trying to get them in the wcsx prg file - is that what is going wrong for me?

Michael
www.WebConnectionHosting.com

Soap problmes

$
0
0
Soap problmes
FoxPro Programming
Soap problmes
Feb. 24, 2015
02:03 pm
4AG0U4T0CShow this entire thread in new window
Gratar Image based on email address
From:Edward K. Marois
To:All
Dear Rick:

Our Payment Portal Provider has changed some things and it has completely stopped working.

The line of code in the program that is that is crashing that is part of the soap program that you provided is
**************************************************
THIS.oWSDLMethod = loSD.GetMethod(lcMethod) - ERROR 1924 LOSD is NOT and Object
**************************************************

After 2 days we got the message from them...

a security update has been implemented for our Web Services users that eliminates the ability to access EPS Web Service endpoints in a browser.

You will need to point the system that you use to create transactions to the WSDLs that are attached.

I have reviewed the code samples that they sent me and the only real difference is the header.

They send

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://ssl.selectpayment.com/PV" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="https://ssl.selectpayment.com/PV" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>


I am currently using

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" >

If I change the code in 'FUNCTION CreateSoapRequestXML'

Will this solve the problem ???

Edward K. Marois
Realty Information Systems



Re: Soap problmes

$
0
0
Re: Soap problmes
FoxPro Programming
Re: Soap problmes
Feb. 24, 2015
02:53 pm
4AG0VXJZ1Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Edward K. Marois

I don't think so. I don't think wwSoap cares about a bigger header with additional namespace defines in it. It's how the namespaces are applied to the XML document that matters. It looks to me that they're adding a bunch of SOAP feature namespaces and if those are used the service is going to break for sure.

IAC, you're kind of on your own with this. wwSoap has been deprecated about 6 years ago and replaced with the more resilient technology in the West Wind Web Service Proxy Generator. Part of the reason for this change was that the SOAP parsing features were offloaded to a system component rather than a Fox component that manually has to configure each little document feature and keep up with various SOAP spec changes and all the insane differences in SOAP behavior for different SOAP server implementations.

The newer tooling automates generation of the proxy and can much more easily keep up with changes simply by regenerating the proxies in a few steps. Anyway something to think about if you need to maintain this service for a long while.

That's not to say wwSoap won't work, but it requires a lot more manual tweaking to get any non-standard features to work with wwSoap. I haven't looked at wwSoap code in years...

+++ Rick ---



Dear Rick:

Our Payment Portal Provider has changed some things and it has completely stopped working.

The line of code in the program that is that is crashing that is part of the soap program that you provided is
**************************************************
THIS.oWSDLMethod = loSD.GetMethod(lcMethod) - ERROR 1924 LOSD is NOT and Object
**************************************************

After 2 days we got the message from them...

a security update has been implemented for our Web Services users that eliminates the ability to access EPS Web Service endpoints in a browser.

You will need to point the system that you use to create transactions to the WSDLs that are attached.

I have reviewed the code samples that they sent me and the only real difference is the header.

They send

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://ssl.selectpayment.com/PV" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="https://ssl.selectpayment.com/PV" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>


I am currently using

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" >

If I change the code in 'FUNCTION CreateSoapRequestXML'

Will this solve the problem ???

Edward K. Marois
Realty Information Systems



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: Session

$
0
0
Re: Session
FoxPro Programming
Re: Session
Feb. 24, 2015
02:53 pm
4AG0VXJYRShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:
Michael,

That should work. InitSession() should initialize the Session object and it should be in scope anytime there after.

However, if you're using wcsx extension - that's not mapped through your process class. So I'm guessing that your InitSession() is never actually called. There's a separate process class that handles .wcsx generically. Either remap that (in appmain::Process) to point at your process class or else your configured scriptmap (.kjd ?).

There are ways around this. you can set the EnableSession property to .T. on the page (in the property definitions) but that will use default session names, so this is still not what you want.

Best thing to do is use custom extensions that are mapped to your process class.

+++ Rick ---



In a new webconnect app I've set

FUNCTION OnProcessInit

THIS.InitSession("KJDevSession")

I can SET the session variables but when I try to GET them I am getting 'Unknown Member Session' or 'Unknown Member oSession' and the Process.oSession object is null.

I am SETting them in the Process class, and trying to get them in the wcsx prg file - is that what is going wrong for me?



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Collapse TR

$
0
0
Collapse TR
Web Connection
Collapse TR
Feb. 25, 2015
05:59 am
4AH0CUPQPShow this entire thread in new window
Gratar Image based on email address
From:Luca
To:All
Dear friends,
I have a menu page with a Table. In the Table every TR/TD contains links to web pages.
When a user connects to the application, its rights make links visible or not.
However, when a link is not visible I see still the TR/TD empty space.
Please, is there any way to collapse TR and TD programmatically?
I tried to assign ID to TR and TD and to force Style="Visibility: collapse" but it does not work.
Many thanks

Re: Session

$
0
0
Re: Session
FoxPro Programming
Re: Session
Feb. 25, 2015
06:49 am
4AH0EMKFSShow this entire thread in new window
Gratar Image based on email address
From:Michael Hogan (Ideate Hosting)
To:Rick Strahl
That explains what we were seeing - thanks a ton, Rick.


Michael,

That should work. InitSession() should initialize the Session object and it should be in scope anytime there after.

However, if you're using wcsx extension - that's not mapped through your process class. So I'm guessing that your InitSession() is never actually called. There's a separate process class that handles .wcsx generically. Either remap that (in appmain::Process) to point at your process class or else your configured scriptmap (.kjd ?).

There are ways around this. you can set the EnableSession property to .T. on the page (in the property definitions) but that will use default session names, so this is still not what you want.

Best thing to do is use custom extensions that are mapped to your process class.

+++ Rick ---



In a new webconnect app I've set

FUNCTION OnProcessInit

THIS.InitSession("KJDevSession")

I can SET the session variables but when I try to GET them I am getting 'Unknown Member Session' or 'Unknown Member oSession' and the Process.oSession object is null.

I am SETting them in the Process class, and trying to get them in the wcsx prg file - is that what is going wrong for me?




Michael
www.WebConnectionHosting.com

Re: Collapse TR

$
0
0
Re: Collapse TR
Web Connection
Re: Collapse TR
Feb. 25, 2015
02:25 pm
4AH0UWOAEShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Luca

display:none in css.

+++ Rick ---



Dear friends,
I have a menu page with a Table. In the Table every TR/TD contains links to web pages.
When a user connects to the application, its rights make links visible or not.
However, when a link is not visible I see still the TR/TD empty space.
Please, is there any way to collapse TR and TD programmatically?
I tried to assign ID to TR and TD and to force Style="Visibility: collapse" but it does not work.
Many thanks



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Viewing all 10393 articles
Browse latest View live