Auto select with select box
Hi
I have a site which has 8 services.each service has it own
page. When the user goes to the service page there will be a link
which will take them to a form. I want the form to be able to
identify which service is there and select that one automatically.
I have done this previously but only with a form. Can you
please help me to fix this.
Link on service page
<a href="moreinfo.cfm?service=WorkGroup Consultancy">Click
here for Further Information</a>
select box in form
<select name="service">
<option value="UK Immigration" <cfif
structKeyExists(form,"UK Immigration") AND form.service eq
"WorkGroup Consultancy">selected="selected"</cfif>>UK
Immigration</option>
<option <cfif structKeyExists(form,"WorkGroup
Consultancy") AND form.service eq "WorkGroup
Consultancy">selected="selected"</cfif>value="WorkGroup
Consultancy">WorkGroup Consultancy</option>
<option value="Legal Managment Software" <cfif
structKeyExists(form,"Legal Managment Software") AND form.service
eq "Legal Managment
Software">selected="selected"</cfif>>Legal Managment
Software</option>
<option value="Search Engine Optimization" <cfif
structKeyExists(form,"Search Engine Optimization") AND form.service
eq "Search Engine
Optimization">selected="selected"</cfif>>Search Engine
Optimization</option>
<option value="Marketing Consultancy" <cfif
structKeyExists(form,"Marketing Consultancy") AND form.service eq
"Marketing
Consultancy">selected="selected"</cfif>>Marketing
Consultancy</option>
<option value="Project Management" <cfif
structKeyExists(form,"Project Management") AND form.service eq
"Project Management">selected="selected"</cfif>>Project
Management</option>
<option value="Training" <cfif
structKeyExists(form,"Training") AND form.service eq
"Training">selected="selected"</cfif>>Training</option>
<option value="Web Design"<cfif
structKeyExists(form,"Web Design") AND form.service eq "Web
Design">selected="selected"</cfif>>Web
Design</option>
</select>
I have tried both was and still cannot get it to work. Please
shwo me the correct way to do this
<cfselect name="service" selected="#url.service#">
<option value="UK Immigration" >UK
Immigration</option>
<option value="WorkGroup Consultancy">WorkGroup
Consultancy</option>
<option value="Legal Managment Software" >Legal
Managment Software</option>
<option value="Search Engine Optimization" >Search
Engine Optimization</option>
<option value="Marketing Consultancy" >Marketing
Consultancy</option>
<option value="Project Management">Project
Management</option>
<option value="Training" >Training</option>
<option value="Web Design">Web Design</option>
</cfselect>
And the other way
option value="UK Immigration" <cfif structKeyExists(URL,"UK
Immigration") AND url.service eq "WorkGroup
Consultancy">selected="selected"</cfif>>UK
Immigration</option>
<option <cfif structKeyExists(url,"WorkGroup
Consultancy") AND url.service eq "WorkGroup
Consultancy">selected="selected"</cfif>value="WorkGroup
Consultancy">WorkGroup Consultancy</option>
<option value="Legal Managment Software" <cfif
structKeyExists(url,"Legal Managment Software") AND url.service eq
"Legal Managment
Software">selected="selected"</cfif>>Legal Managment
Software</option>
<option value="Search Engine Optimization" <cfif
structKeyExists(url,"Search Engine Optimization") AND url.service
eq "Search Engine
Optimization">selected="selected"</cfif>>Search Engine
Optimization</option>
<option value="Marketing Consultancy" <cfif
structKeyExists(url,"Marketing Consultancy") AND url.service eq
"Marketing
Consultancy">selected="selected"</cfif>>Marketing
Consultancy</option>
<option value="Project Management" <cfif
structKeyExists(url,"Project Management") AND url.service eq
"Project Management">selected="selected"</cfif>>Project
Management</option>
<option value="Training" <cfif
structKeyExists(url,"Training") AND url.service eq
"Training">selected="selected"</cfif>>Training</option>
<option value="Web Design"<cfif
structKeyExists(url,"Web Design") AND url.service eq "Web
Design">selected="selected"</cfif>>Web
Design</option>
Similar Messages
-
Mulitple selection with select option on subscreen
Hi colleagues,
I've the following issue:
I'm programming a dynpro this dynpro contains two subscreens. The lower subscreen will contain another dynpro defined as subscreen with an ALV to display results.
The top subscreen (0150) area will be filled with a generated subscreen with the command
SELECTION-SCREEN BEGIN OF SCREEN 0150 AS SUBSCREEN.
with select options I define my selection area like:
SELECT-OPTIONS: sa_6 FOR gs_rp_attrib_sel-sonr.
If I call my transaction starting up the dynpro containing the two subscreens the result looks quit how I expect it. BUT then I try to start up the multiply selection Pop-UP for the selection field by pressing the button just right behind the HIGH input field, nothing happens. The multiply selection pop-up basicly does not show up.
Any clues what I need to add that it will show up?
Does the mulitply selection not work with
SELECTION-SCREEN BEGIN OF SCREEN 0150 <b>AS SUBSCREEN</b>???
(If I do a simple test program with a selection screen not being a subscreen, the multiply select popup comes up.)Hi,
A subscreen cannot call another screen.
I guess this is the reason why u are facing this problem.
Thanks,
Rashmi. -
Multiple Selection with JCombo Box
I want to make a multiple - selection JComboBox enables the user to select many items from JComboBox and copy items from one JComboBox to another.How can I do this?
Hello,
ComboBoxModel allows only single selection. It's better to use a JList instead because it isnt worthwhile the effort to create another multi-selection model.
regards,
Tim -
CS5 Disable Picture Content Select with Selection Tool
I'm not sure if this was added in CS4, because I skipped CS4, but I know it wasn't there in CS3. With my Selection Tool (solid cursor), I can grab the contents of a picture box represented by circle mark that appears in the center of an image on mouse rollover. If I come close to it, I grab the picture, not the frame (what I don't want). But if I keep my selection closer to the edge, I select box and contents (what I want). How can I disable this feature? I have looked through my preferences to no avail. I mean, I thought that's what the Direct Selection Tool was for? If I want the contents selected, I use the hollow cursor. Why mess with that? Please tell me this can be disabled. It would make my day.
I did a search, but was hitting nothing. And I was looking in the wrong spot for it in the app.
You... have made my day. Thank you, thank you. -
Checkedlistbox allows multiple selections with Selection mode set to one
I have a simple CheckedListBox with three options. I set Selection Mode to One. When I test the form, it allows me to have more than one box checked. I can clear the other two with a program, but my understanding of Selection Mode was that it would not
allow more than one box to be checked if set on one.Option Strict On
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
CheckedListBox1.SelectionMode = SelectionMode.One
For i = 1 To 10
CheckedListBox1.Items.Add("Number" & i.ToString)
Next
End Sub
Private Sub CheckedListBox1_ItemCheckChanged(sender As Object, e As ItemCheckEventArgs) Handles CheckedListBox1.ItemCheck
Dim ItemIndex As Integer = e.Index
For i = 0 To CheckedListBox1.Items.Count - 1
If i <> ItemIndex Then
CheckedListBox1.SetItemCheckState(i, CheckState.Unchecked)
End If
Next
End Sub
End Class
La vida loca -
Dynamic select with select-opitons
Hi all,
i have a selction screen with a Select-options : S_monat for bkpf-monat.
Depending on what the user has entered in that selection i need to select the field WOG001 to WOG016 from table COSP.
for example if user has entered Period '01' to Period '12' , then i should do SELECT ( WOG001 to WOG012) from COSP. How to program that dynamic select fields??
Cann anyone help???
Thanks!I hope this will solve your porblem.
SELECt-OPTIONS: monat for bkpf-monat OBLIGATORY.
DATA: BEGIN OF ITAB,
WTG001 TYPE COSP-WTG001,
WTG002 TYPE COSP-WTG002,
WTG003 TYPE COSP-WTG003,
END OF ITAB.
BREAK-POINT.
LOOP AT monat.
if monat-LOW = '01' AND MONAT-HIGH IS INITIAL.
select SINGLE WTG001 FROM cosp INTO CORRESPONDING FIELDS OF ITAB where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.
elseif monat-LOW = '01' AND MONAT-HIGH eq '01'.
select SINGLE WTG001 FROM cosp INTO CORRESPONDING FIELDS OF ITAB where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.
ELSEIF MONAT-HIGH = '02'.
select SINGLE WTG001 WTG002 INTO CORRESPONDING FIELDS OF ITAB FROM cosp where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.
ELSEIF MONAT-HIGH = '03'.
select SINGLE WTG001 WTG002 WTG003 INTO CORRESPONDING FIELDS OF ITAB FROM cosp where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.
ENDIF.
ENDLOOP.}
Edited by: ZAHID HAMEED on Aug 9, 2011 12:35 AM
Edited by: ZAHID HAMEED on Aug 9, 2011 12:38 AM -
Populate values selects with select one choice
How I can to create in Java??
use a managed bean property of type ArrayList<SelectItem> and generate accessors. The reference it from f:selectItems in the selectOneChoice
Frank -
Shuttle component with 3 boxes to select items
Hi,
I've a requirement to select the items from already selected list of items. Is there any component available to achieve this requirement?
My requirement is 'Assume 3 boxes (similar to the shuttle component boxes) Left box has Item1 to Item6, user can select some items from left box to the middle box and user can select the items from middle box to the right box'. SelectManyShuttle allows only selection between 2 boxes.' Can we achieve this requirement with selectManyShuttle component?
Thank you.Hi --CELKO—,
Thanks for your trying, but SSMS said incorrect syntax near Except keyword.
And yes, I really didn’t read some book or take a class on RDBMS whatever that is. I work in small biz firm of only 10 men and in spite the fact that I’m only IT person there, my work is hardly limited only on IT. I have to do bunch of
things firstly in order to make the firm function, and only at the end, if I find some time and strength left, I do something interesting. That’s why my projects move so slowly, even though I rarely spend less than 10 hours at work.
It might be my poor English, but your choice of words suggests that you’re somehow irritated with my knowledge deficiency. Don’t get me wrong, I cannot afford the luxury of being ashamed about it. I have to ask questions in order to accomplish
what I have to as soon as I can. But at the very top of my question you could see that I announced a beginner question (not the first one), so if you find that kind of questions annoying, just skip them and save yourself from diabetes. It’s the best piece
of advice I can give to anyone. -
Opening print dialog box with "Selection" printing enabled
Hi all,
I have a JTable in which I wan to print only selected rows. When I open the Print dialog box using printDialog() method of PrinterJob, the dialog opens with "Selection" option disabled.
How can I enable this option ?
How can I print my selection using the standard Print Dialog ?This I know.
Let me refrase my question:
I have a table with selected cells (Rows Cols
whatever ...) I wish to open the print dialog box
with Selection radio button enabled, such that when I
will check it and click print, the selected table
cell get printed.This I had understood.
Let me refrase my reply:
If you simply print a new table containing the selected data
then you don't need to have the Selection radio button enabled
in the print dialog box. -
Selection screen list box with run time values
Hi,
I have to create a selection screen list box with with values at run time.
This is actually for a maintanence view.
Please help.
Thanks
VimalrajHave a search in SDN and elsewhere for the function module 'VRM_SET_VALUES'... for example there's one at:
Re: Listbox with Function code in Table control
wherein the 2nd listbox contents are driven from the option selected in the first listbox.
Jonathan -
ADF Table with check box on each row - First time selection gets unchecked
Hi,
The ADF Table has a check box in each, whenever a select box is clicked for the first time , it gets unselected automatically.
Also if I select a row / click on a row and then select the check box, it is properly getting selected. I see there is some kind of autosubmit happens. Is there a way to handle this scenerio?
Regards,
DhamoI had this same issue happen in 11.1.1.6.x This is a bug involving an autosubmit when the checkbox is selected.
After migrating to 11.1.1.7.0 on J Developer and Weblogic, the problem was fixed.
One thing to check is to make sure you are using the jars from ADF 11.1.1.7.0.
Hope that helps -
Issue With select Check box in advance datagrid
Hi
i am using advance datagrid having hierarichal data.There is one column having checkbox and one header renderer(CheckBox) on top giving functionality of select all.when i clicked on select all checkbox , all the checkboxes in that column not showing checked unless i collapse or expand the heirarichal data or scroll the advance data grid,similar is the case with unselect checkbox.however internally values are selected and unselected as per functionality but checkboxes are not show checked/unchecked in first go.i have tried following things to refersh the data but nothing worked.
refreshing the arrayCollection and then calling invalidateList() on the grid.
IHierarchicalCollectionView(adg.dataProvider).refresh();
so please guide me .
Thanks in advance
Vineet Oshowe have a field to bind the checkbox selected status, such as 'selected', when the data['selected'] = true means the checkbox is checked, otherwise is unchecked
the itemrenderer code:
public class CheckBoxADGItemRenderer extends CenteredCheckBox
public function CheckBoxADGItemRenderer()
super();
override public function set data(value:Object):void
super.data = value;
invalidateProperties();
override protected function commitProperties():void
selected = data['selected'];
super.commitProperties();
when click the header renderer checkbox, change the collection data 'selected' field, when checked, data['selected'] = true;
then invalidate the check column properties,
eg:
private function invalidateCheckColumnProperties():void
var i:int = 0;
var n:int = listItems.length;
var instance:IInvalidating;
for (i = 0; i < n; i++)
instance = listItems[i][0] as IInvalidating;
if (instance)
instance.invalidateProperties();
Hope help for your.
Huang -
Populate row of master detail form with selection from LOV?
Hi Guys,
Total noobe, Hope you can help me out with a project I am working on in Oracle Apex 4.1 with 11g XE
I am sure this is a simple enough issue but I just can’t see the solution.
I have a table called ‘STOCK’ this contains all new parts and delivery details.
‘STOCK_ID’ NUMBER PK
‘DELIVERY DATE ‘ DATE
‘PART’ VARCHAR2
‘PART_SN’ VARCHAR2
‘PART_AN’ VARCHAR2
‘INSTALLED’ CHECKBOX
I have a table that list all the current physical locations of hardware for example
ID, Till number, store location etc…
I have an table to list the devices and modification to the hardware in these store locations.
Move Date, Device, Device Serial number, Device Asset Number, Comments
I have a report & form that displays all the current physical locations of hardware and a master detail form linked to this to add devices and modifications to each store location.
I have a LOV setup on the Devices column that is based on a simple select query
SELECT PART from STOCK
ORDER BY 1
This provides me the list of parts in the stock table.
What I need to figure out is how do I get the data from the ‘STOCK’ table when I select a part in the LOV to auto populate ‘DEVICE_SN’ ‘DEVICE_AN’ in my master detail tubular form. this information is contained in the 'PART_SN' & 'PART_AN' columns of the STOCK table.
I also need to figure out how to identify the part because by default the LOV only displays one column and I have no idea which part I am selecting other than by name. i could use a popup LOV and scan a barcode into the search box and get the retuen value to display the part name in the field.
I also would like to reduce the number of records displayed in the LOV by using the ‘INSTALLED’ checkbox i.e. if checked this part has been used and will not be available for selection. The ‘PART_SN’ field can be duplicated as we often get the same part back again as a replacement after repair but this should be valaditated against i.e if the parts is ticked as installed and not available for selection in the list it can be added again this could possibly be validated based on the ‘DELIVERY DATE‘?
I hope this make some sense to you guys if you need any further details let me know.
Cheers
DarrenHi,
I am from the Oracle Forms background too and I have been using Oracle Apex for a while. Oracle Forms is just like client-server application although it uses the Forms servlet to render its Web front-end. I think...if you're really trying to develop true-Web application, you should try to forget such features as "master with many details" in Oracle Forms. Loading all the details in a single page will cause overheads anyway. When you discover more about ajax and such third-party javascript libraries as jquery and mootools, you'll have a different mind of Web development.
Thanks.
Andy -
How to disbale a group of checkboxes when i select one check box WEBDYNPRO
Hi Friends,
Can any body help me how to disbale a group of checkboxes when i select one check box WEBDYNPRO Abap
Also can any body tell me how to handle chain endchain type of scenario in WEBDYNPRO Abap
Thank you..
SaiHi
In the context tab , create 2 context attributes ca_attr1 and ca_attr2 of type WDY_BOOLEAN under a context node cn_node
now in ur Layout , bind the ENABLE property of CheckBoxGroup UI Element with this attribute ca_attr1
bind the ENABLE property of CheckBox UI Element with this attribute ca_attr2
create a action for ur Checkbox , for the OnToggle property of ur checkbox
in OnactionToggle , check if ca_attr2 is 'X' , set ca_attr2 to ' ' ( for disable)
this can be done by code wizard , press control +f7 and use read/set context attributes , use get_attribute and set_attribute methods
// if ca_attr2 is 'X'
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node .
DATA lv_attr LIKE ls_city-ca_attr2.
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
* get element via lead selection
lo_el_cn_node = lo_nd_cn_node->get_element( ).
* get single attribute
lo_el_cn_node->get_attribute(
EXPORTING
name = `CA_ATTR2`
IMPORTING
value = lv_attr ).
// if lv_attr2 is 'X' , use set_attribute method for ca_attr1
IF lv_Attr EQ 'X' .
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node .
DATA lv_attr LIKE ls_city-ca_attr.
* navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
* get element via lead selection
lo_el_cn_node = lo_nd_cn_node->get_element( ).
* set single attribute
lo_el_cn_node->set_attribute(
EXPORTING
name = `CA_ATTR1`
value = ' ').
ENDIF.
regards,
amit -
Calling a bean method on select of Combo box item
Hi
On select of Combo box item in a form, text fields in the same form should be populated
dynamically.Is it possible to call a bean method which does this,by calling onSelect() method
of combo box ?
Thanks in advance,
SrideviUff, sorry!
I ment that you write some code for the "onSelect" event which sends a request to the server with the selected value: onSelect="self.location.href='<%= request.getRequestURI()%>?selectedVal= ' + this.selectedIndex;"
Maybe you are looking for
-
Can't add files to iTunes library - nothing happens
I used a tool to remove embedded artwork from MP3s (since you can't do this for more than 1 MP3 at a time with iTunes). When this tool was running, it crashed. I've found 3 albums that won't work in iTunes anymore. iTunes acts like it's adding it but
-
ITunes Store won't load up!
Ok, please bare with me as this is a pretty convoluted problem and one I've fruitlessly wrestled with for a few days now. The iTunes Store in iTunes won't load up and just gives me a never ending white page with the following on the page: ''One Momen
-
Two Clear System Cache Needed in Two Days since 602 Update
I found out why my battery is worse with the 602 update. Appararently my phone is NEVER GOING TO SLEEP. I forget the name of the service that was keeping it awake. I think it was com.motorola.service.main. After the clear cache, it was good for a day
-
Why I cannot output anything? I am using toad
I have the following: CREATE OR REPLACE PROCEDURE update_steroid_dates(patid number, visit number) IS mon varchar2(30); yr varchar2(30); date1 varchar2(12); date2 varchar2(12); date3 varchar2(12); date4 varchar2(12); BEGIN select steroid_start_date,
-
This is a silly question but how do you close the angle editor in the timeline and go back to my master multicam clip for editing? I'm having a brain **** right now...