This topic is locked
[SOLVED]

 XT.ASSIGN

11/18/2010 2:32:45 PM
ASPRunnerPro General questions
A
andie.caron author

I need to change the value of a ASPR button after a user logs in. The button needs to point to my own import page which provides field mapping and a host of other features. This page (and it's support pages and siblings) work fine as I can use them as mentioned below.
In Event, List Page : Before Display ->
xt.assign "importlink_attrs","href=""/flexr/import/default.asp"" onclick=""window.location.href='/flexr/import/default.asp';return false;"""
This does nothing at all. I've even edited the list page code directly and changed the href parms to point to my virdir (/flexr) and the asp file.
If I add my own LINK it works fine, but I'd like to use the APSR generated button and just change thre url in the event page.
I know it's going to be something absurdly simple.
TX,
Andie

A
andie.caron author 11/18/2010



I need to change the value of a ASPR button after a user logs in. The button needs to point to my own import page which provides field mapping and a host of other features. This page (and it's support pages and siblings) work fine as I can use them as mentioned below.
In Event, List Page : Before Display ->
xt.assign "importlink_attrs","href=""/flexr/import/default.asp"" onclick=""window.location.href='/flexr/import/default.asp';return false;"""
This does nothing at all. I've even edited the list page code directly and changed the href parms to point to my virdir (/flexr) and the asp file.
If I add my own LINK it works fine, but I'd like to use the APSR generated button and just change thre url in the event page.
I know it's going to be something absurdly simple.
TX,
Andie


More info: If I edit the actual ASPR generated List Page and change the code in there, it works fine. It seems almost like the Event is not firing, BUT if I deliberately edit the xt.assign statement in the ASPR event editor (like remove the last quote), I get an ASP error. So this suggests that the event is firing.
Man, this is frustrating. It works and I'll live with it, but the idea is to put it into an event so as not having to edit the generated file.
Cheers...

Sergey Kornilov admin 11/18/2010

Andie,
post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

A
andie.caron author 11/18/2010



Andie,
post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


I'd love to post it (and already thought of that), but it's an Intranet App that is used in house with no outside (Internet) viability. I'll see what I can do as I have to talk with the powers that be to see if we can publish it to an Internet Link (I doubt it, but we'll see). For now I'll just edit the generated asp code.
BTW: I've tried reetting the page and all manner of things. It is a little perplexing as I use these events all over the place. Even tried clearing the code and re-typing (even copying the code from the genned file and changing the href link).
Thanks and I'll post more info once we see what we can do here.

Sergey Kornilov admin 11/18/2010

Andie,
to troubleshoot this issue I don't need a link to your project. All you need to do is to click 'Demo Account' button and publish your project.

R
Roger 11/23/2010



Andie,
to troubleshoot this issue I don't need a link to your project. All you need to do is to click 'Demo Account' button and publish your project.


Resolved: Moved the project off a network share, regenerated and now it works. Don't know why, but when it's put back on a network share, almost all pages need to be reset. Maybe something set in the original project setup. Will try another new project and start it on the network share.
Cheers