May 15, 2015 at 8:26 am
i have a piece of code that is pulling from a list of values for a web page form. i want to set this list to always show a default value but allow users to change using the list. how do i do this? this is the code i found where i think i need to make the change ifFieldValue("txtCRType"),0,0,True,getAction,True))
May 15, 2015 at 8:45 am
lynn.sferrino-foxworthy (5/15/2015)
i have a piece of code that is pulling from a list of values for a web page form. i want to set this list to always show a default value but allow users to change using the list. how do i do this? this is the code i found where i think i need to make the change ifFieldValue("txtCRType"),0,0,True,getAction,True))
Hi and welcome to SSC! I don't understand your question here. Is this a web application you are working on and making these code changes to the front end?
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
May 15, 2015 at 8:47 am
yes i want to make the change in the page code
May 15, 2015 at 8:50 am
lynn.sferrino-foxworthy (5/15/2015)
yes i want to make the change in the page code
This a bit of a challenge. This site is dedicated to sql server. The other challenge is we don't know what language you are working with. You would probably have better luck on a forum dedicated to whatever language you are using. I would suggest that no matter what forum you use that you provide more details so whoever is helping you knows what the problem is.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
May 15, 2015 at 8:51 am
the field value "txtCRType" is the column where the drop down list is being pulled from. i want to this field to display the word "MANDATORY" when a user opens the web form. but i cannot find the right location. I added it to my list, but the field is blank when the form is first opened.
May 15, 2015 at 9:26 am
lynn.sferrino-foxworthy (5/15/2015)
the field value "txtCRType" is the column where the drop down list is being pulled from. i want to this field to display the word "MANDATORY" when a user opens the web form. but i cannot find the right location. I added it to my list, but the field is blank when the form is first opened.
You haven't quite answered the earlier question?
What language are you working with?
Do bear in mind as already pointed out that this forum is a sql server dedicated one.
I only say that because outside of possibly pulling your list from a database, your question is almost certainly front end related.
That being said, most List/drop down objects or widgets have a "SelectedIndex" property of some kind you can set programmatically to set its value?
May 15, 2015 at 10:00 am
I am using SQL and going through SQLServer Management Studio
May 15, 2015 at 10:09 am
lynn.sferrino-foxworthy (5/15/2015)
I'm afraid you're not being that clear.
If you were doing this from SQL Management Studio then it is unlikely you'll be talking about defaulting a List or Drop down box?
What language or where are you coding this in because it's not SQL?
ifFieldValue("txtCRType"),0,0,True,getAction,True))
May 15, 2015 at 10:22 am
lynn.sferrino-foxworthy (5/15/2015)
I am using SQL and going through SQLServer Management Studio
But the problem is that what you are trying to do needs to be done in the website code. We still don't even know what language you are using. How can we possibly help? I might give you help in C++ only to find out you are using php which means everything is completely different. The other concern is that your issue is NOT related to sql server which is what this site is for.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
May 15, 2015 at 10:48 am
understood, thanks!
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply