Highlighted
rblehar Absent Member.
Absent Member.
835 views

Custom JSP - Select Box (NEED HELP!)

At our organization we use the same select box for many different custom forms; job titles. Since Vibe does not allow for the use of the same select box across many different forms I created a very simple JSP and added it to my form and it works great. This way, anytime there is an update to the job title list I update my custom jsp, save it and it updates on ALL forms where we use the Job Titles drop down. The one downfall of this is whenever a user goes into modify the actual form the selection does not save in the Entry Form Definition view. So for instance if the job title "Assistant Director, Business Systems" was selected, and I was to go in and modify the form for any reason, it diverts back to the first selection in the drop down list (which in this case is blank). Does anyone know why this would be? I've copied the simple html below... Am I doing something wrong here? Why does it reset to the first selection upon modification? Any help or direction would be so very much appreciated.

<html>
<b>Job Title <font color="red">*</font></b><br>
<select name ="drop" required>
<option value ="blank"></option>
<option value ="Assistant Director, Business Systems"> Assistant Director, Business Systems</option>
<option value ="Associate Director, Information Systems"> Associate Director, Information Systems</option>
</select>
<%@ include file="/WEB-INF/jsp/definition_elements/init.jsp" %>
</html>


Slainte,
Ryan
Tags (3)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Custom JSP - Select Box (NEED HELP!)

rblehar,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit http://www.novell.com/support and search the knowledgebase and/or check
all the other self support options and support programs available.
- Open a service request: https://www.novell.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
- You might consider hiring a local partner to assist you.
https://www.partnernetprogram.com/partnerfinder/find.html

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php

Sometimes this automatic posting will alert someone that can respond.

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot.

Good luck!

Your Novell Forums Team
http://forums.novell.com


0 Likes
kelvinbrotherst Absent Member.
Absent Member.

Re: Custom JSP - Select Box (NEED HELP!)

Hi,

You need to read out the value of the field ${ssDefinitionEntry.customAttributes['drop'].value} in your JSP so that it can be used to re-set the default option of the drop down list.
You can then use an IF in the JSP to either set or not set the default value.

Thanks

0 Likes
thomashandel Absent Member.
Absent Member.

Re: Custom JSP - Select Box (NEED HELP!)

rblehar;2418909 wrote:
At our organization we use the same select box for many different custom forms; job titles. Since Vibe does not allow for the use of the same select box across many different forms I created a very simple JSP and added it to my form and it works great. This way, anytime there is an update to the job title list I update my custom jsp, save it and it updates on ALL forms where we use the Job Titles drop down. The one downfall of this is whenever a user goes into modify the actual form the selection does not save in the Entry Form Definition view. So for instance if the job title "Assistant Director, Business Systems" was selected, and I was to go in and modify the form for any reason, it diverts back to the first selection in the drop down list (which in this case is blank). Does anyone know why this would be? I've copied the simple html below... Am I doing something wrong here? Why does it reset to the first selection upon modification? Any help or direction would be so very much appreciated.

<html>
<b>Job Title <font color="red">*</font></b><br>
<select name ="drop" required>
<option value ="blank"></option>
<option value ="Assistant Director, Business Systems"> Assistant Director, Business Systems</option>
<option value ="Associate Director, Information Systems"> Associate Director, Information Systems</option>
</select>
<%@ include file="/WEB-INF/jsp/definition_elements/init.jsp" %>
</html>


Slainte,
Ryan


If your field type is select box, then you can only save values defined as options of that select box. If you store your option value in a text field you should be fine.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.