The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Assign picklist with JS variable
Posted: 15 Dec 06 11:26 AM
|
fiogf49gjkf0d Is it possible to assign a picklist with a JS variable? I am trying this, but not having much luck.. I am trying to popup a window and present a picklist based on what state the user has chosen.
On my popup page, I have a variable I am getting from a querystring - qsVariable
I am trying to put the js inline in the html as follows: ....inside body tag <form name=mainform> <script language="JavaScript">
document.writeln('<#PL name=concounty list="'+ qsValue +'" value= options=Q onchange="" tabindex="205">');
</script> ...rest of html
It returns ---Bad Picklist---. I know my variable is the name of a valid picklist.. Am I trying to do something that can't be done? thanks |
|
|
|
Re: Assign picklist with JS variable
Posted: 15 Dec 06 12:59 PM
|
fiogf49gjkf0d Steve, you are mixing server side and client side technologies. All of the SalesLogix tags are handled server side before the page even gets to the browser. Once it gets to the browser the javascript is executed.
I believe the ticket screen has an example of cascading picklists that should head you in the right direction.
Timmus |
|
|
|
Re: Assign picklist with JS variable
Posted: 15 Dec 06 1:09 PM
|
fiogf49gjkf0d I was afraid of that.. I went to check tickets and I get the error: Internal Application Error File specified by template "csrsearchfrmtick" was not found.
Then when I try to open the tempate from the slx web manager I found out it is looking for D:\Program Files\SalesLogix\Web Components\slxweb\Employee\Search
I don't have an employee folder in my directory.. do I need to install a bundle or something?
Can you tell this my first modified web implementation? I have actually been to training too... I sense I am not the only who finds the web client a bit challenging. Thanks for the help as always.
|
|
|
|
Re: Assign picklist with JS variable
Posted: 15 Dec 06 1:17 PM
|
fiogf49gjkf0d Found the folder on another implementation and moved it - seems fine. Any idea why I wouldn't have that folder in my implementation? Just curious.. I feel like I am using up all my questions.. hehehe |
|
|
| |
| |
|