Dynamic List/Menu question
Is it possible to add a default item at the top of static options area of a dynamic menu which does not perform any function when activated?
I have a "Please choose an option" as my static option at the top of the menu. When the "Go" button is clicked when the "Please choose" is visible I would like this to do nothing and only show a results page when any of the active menu options are selected and "Go" clicked.
Hello Phil,
Open the page for which u want to hide the dynamic navigation bar, there is a property named <b>Initial State of Navigation Panel</b>.
Just set it to <b>close</b>.
This will solve the problem.
Regards
Deb
[Rewards points for helpful answers]
Similar Messages
-
Dynamic List/Menu with 2 columns
I have created a Dynamic List/Menu box based on a recordset and showing me one field of that recordset ['Firmanaam'].
<?php
do {
?>
<option value="<?php echo $row_klantenselectie['Firmanaam']?>"><?php echo $row_klantenselectie['Firmanaam']?></option>
<?php
} while ($row_klantenselectie = mysql_fetch_assoc($klantenselectie));
$rows = mysql_num_rows($klantenselectie);
if($rows > 0) {
mysql_data_seek($klantenselectie, 0);
$row_klantenselectie = mysql_fetch_assoc($klantenselectie);
?>
First question what is the difference between 'values" and 'labels' in the creation box of the Dynamic List/menu as only the field entered in the 'labels" is shown in the listbox ?
Secondly I want to display two columns in the List box (one column with the client ID and one column with the clients name). How do I proceed ? Afterwards clicking on the selected client should send the client ID to another field in the form.
Thank you for your replies.Moved to the Develop server-side applications in Dreamweaver forum, which deals with this sort of issue.
First question:
The Values field in the Dynamic List/menu dialog box populates the value attribute in the opening <option> tag. Because it's an HTML attribute, it's not displayed when the page is rendered in a browser. The Labels field puts the text that will be displayed in the drop-down menu between the opening and closing <option> tags.
Put the value you want displayed in the Labels field, and the value you want sent to the server when the form is submitted in the Values field.
Second question:
Normally, you would put the ID in the Values field, and the name in the Labels field.
Because the value attribute will contain the ID, it shouldn't normally be necessary to populate another field with the selected value because the ID will be sent to the server with the rest of the form data when the form is submitted. -
Dynamic List/Menu After Update
Hi All,
Dreamweaver - ASP
I have a form to add records. The first field is a dynamic list/menu to select the date.
After the Add record button is pressed the page reopens but the date menu has reverted to "Select date"
Is there a way to retain the previously chosen date when the page refreshes?
Many thanks
JohnHi All,
Solved the problem.
I set up a session variable for the date and then used the 'Dynamic' button for the List/Manu, Select Value equal to, and selected the session variable.
Regards
John -
PHP/Dreamweaver dynamic list menu
I have a mySQL DB that has address listings on it, I have
used the city column to populate a list menu dynamically w/ PHP...
No problems so far- but I cannot figure out how to have each city
listed only one time.
In other words, say I have 20 of the same city listed on the
DB column. I want each city to be listed once in the list menu....
Any idea??? I have been thinking about it all day w/ out any
luck!
Thanks in advance,
-B.oO(Steve)
>On Wed, 7 Feb 2007 03:16:54 +0000 (UTC), "za beezo"
><[email protected]> wrote:
>
>> In other words, say I have 20 of the same city
listed on the DB column. I want
>>each city to be listed once in the list menu....
>
>SELECT DISTINCT instead of just SELECT
Or a GROUP BY clause, which is what I usually prefer. But in
this case
it shouldn't matter.
Micha -
Dynamic list/menu update page
Hi,
I am using PHP, Mysql. MySQL has different tables. Created list/menu to show data off one of the table that works great and when I select the value and hit the updae button it updates the database correctly. Problem I am having is that when I go to update the page again, it always defaults to the first value of the drop down list. I need it to remember the value that was selected. Hope this explains it well.Hi,
So the first example I am posting is pretty much the same idea as what Gunter wrote, Gunter wrote the way to handle it in dreamweaver.
This example is what happens in the code after the DW wizard does its thing.
Right before it submits to the database you can create a session of the value.
$_SESSION['cat_id'] = $_POST['cat_id'];
Then use a string compare command to check against the session.
(If session cat_id is the same as the recordset cat_id value then echo that line as selected)
<?php if (!(strcmp($row_listCategories['id'], $_SESSION['cat_id']))) {echo "selected=\"selected\"";} ?>
Here it is included in your code sample:
<select name="cat_id" multiple="multiple" size="5" id="cat_id">
<?php do { ?>
<option value="<?php echo $row_listCategories['id']?>"<?php if (!(strcmp($row_listCategories['id'], $_SESSION['cat_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_listCategories['cat']?></option>
<?php
} while ($row_listCategories = mysql_fetch_assoc($listCategories));
$rows = mysql_num_rows($listCategories);
if($rows > 0) {
mysql_data_seek($listCategories, 0);
$row_listCategories = mysql_fetch_assoc($listCategories);
?>
</select>
Note that at the top of your page you will need to initiate the session:
session_start();
NOTE: This is example takes note that you added the multiple="multiple" tag to your select. If you want it so someone selects two items then after the update you want to call on both select items. (so all they selected is still selected, not just the last item.).
<select name="select[]" id="select" multiple="multiple">
<?php do { ?>
<?php if (is_array($_SESSION['cat_id'])) { ?>
<option value="<?php echo $row_listCategories['id']?>"<?php if (in_array($row_listCategories['id'], $_SESSION['cat_id'])) {echo "selected=\"selected\"";} ?>><?php echo $row_listCategories['cat']?></option>
<?php } else { ?>
<option value="<?php echo $row_listCategories['id']?>"<?php if (!(strcmp($row_listCategories['id'], $_SESSION['cat_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_listCategories['cat']?></option>
<?php } ?>
<?php
} while ($row_listCategories = mysql_fetch_assoc($listCategories));
$rows = mysql_num_rows($listCategories);
if($rows > 0) {
mysql_data_seek($listCategories, 0);
$row_listCategories = mysql_fetch_assoc($listCategories);
?>
</select>
You will probably have to make an adjustment to your database input query to handle the array $_POST['cat_id']. I didnt have time to test that part. -
Dynamic Side menu question!
Hi All
Can someone help me with a menu issue I have, basically the problem seems very simple. All I want to do is specify that when a specific 'Entry Point' item is selected the dynamic menu is closed when the page is viewed.
The reason for this is that on one of my linkes to a page I have a 'dashboard' set up which I want showing on its own without any detailed navagation!
Any help would be great
Thanks
PhilHello Phil,
Open the page for which u want to hide the dynamic navigation bar, there is a property named <b>Initial State of Navigation Panel</b>.
Just set it to <b>close</b>.
This will solve the problem.
Regards
Deb
[Rewards points for helpful answers] -
HELP - List Menu 2 fields?
I have a recordset that returns a list of Manager names and
corresponding Manager ID numbers, which are two separate fields in
my database. I would like to create a dynamic list menu and display
both fields. This list menu would be used to drive another search
based on the what was selected from the menu. I need to be able to
only select the manager ID number for the search since it is unique
whereas the manager name could have duplicates. Is this possible???
Your help is appreciated in advanceDo you really need them shown? - i.e. a refresh?
or are you just looking to update 3 fields in the database?
If you are looking to update the database, you can use the
$_POST variable to insert into as many fields in the record as you
want. But his would be done in the MySQL statement, not the
form. -
Ensure List/Menu populate my update form with the correct data before update
Hello,
Please how do I ensure my update form is populated with the correct data before update?
On my update page I have text fields and select fields (dynamic list/menu). When I open my profile page to make updates, I see the field well positioned in the text fields but in the select list/menu fields, I see "Select from list" instead of the value that was initiated selected
Correct Values before update
Wrong values during update
As you can see from the images below, when I open the update page, the list automatically populate the select fields with the last values in the list instead of the Initial values that where selected by the user before the update.
Can anyone please review and let me know where I have gone wrong.
Thank you
MikeHello All,
Once more thank you. I have sorted the issue out.
I observed that I was selecting the wrong field. I selected the field matching the record set of the select instead of the field matching the record set of the table I am working as seen on the image belew
I was selecting this - This is the record set of the table that hold values for the city select list
Instead of this. This is the record set of the table behind the form I am working on
My issue is now re-solved.
Mike -
How does one go upon customizing the text color and
background of a List/Menu item? Can someone point me in the right
direction?
Thanks!slegendre wrote:
> Chin Chin,
>
> Not sure this is what i'm looking for. The Menu I would
like to customize is a
> dynamic list menu. Basically its a dynamic menu that
pulls all the US states
> from a database. So default it says "Choose a State",
when you click the drop
> down it displays all the US states.
>
> I'm trying to change the text a color that matches the
website, as well as the
> background of this menu. Eventually I would like to have
little icons of the
> state with the states name, but thats proabably a bit
advanced for me.
Oh yes I see - I don't think that you will be able to use
icons - but
you could try something like this.....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
select {
background: #000000;
color: #FFCC66;
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<select>
<option selected="selected">Choose a
State</option>
<option>popopoopopopo</option>
<option>oioio</option>
</select>
</form>
</body>
</html>
HTH
chin chin
Sinclair -
Referencing a "checked record" from my ADDT Dynamic List using a SPRY Menu
I have just posted a Beta of my site to:
http://www.clearwave.biz/Beta/T1COElogin.cfm
- Username is: Beta
- Password is: 123
- Once you are logged in you should see the ADDT list w/one
order listed.
- Click on the Printer icon & the Order Agreement will
open in PDF. (this works fine)
- Click on the InfoSheet link & the Report will open in
PDF as well. (this works fine)
- Everything works fine if you use the links on the same line
as the record.
- But if you check the CheckBox on the left, then choose the
Spry Menu above, Reports/T1 Agreement the report will not work?
Question: What should the Link be to reference the checked
item below, pass the CustID value to the report & print the
PDF?
(Note: the CF report has the following line in the SQL:
(tblT1OrderProcessing2.T1CustID = #param.T1CustID#) and the report
prints fine in Report Builder if I pass it the T1CustID, as well as
if I click the links on the same line as mentioned above, so this
is just an issue of grabbing the CustID value from the checked line
& passing it to the report link in the Spry menu)
Here is a visual picture of my Dynamic List page:
http://cerberus.clearwave.com/jerry/Order_Management_Main_Page.jpg
Thanks in advance for the help,
jligHere is the Report URL that works perfectly when clicking the
Printer icon on the right of my List:
http://www.clearwave.biz/Beta/reports/T1_Service_Agreement.cfm?T1CustID=1508
and the link to the InfoSheet:
http://www.clearwave.biz/Beta/reports/T1_Information_Sheet.cfr?T1CustID=1508
Both of these work perfectly by grabbing the T1CustID value
of 1508 from the line. -
I'm trying to insert a dynamicly generated form list/menu dropdown item.
Everything works but the list always shows me the last record from the database as the first item in the list (ASC or DESC).
I want to put a dummy label as the first item in the list like: Select from list
How can i do this, because even if i put a static value in the value list items, it still shows the last item from the recordset first instead of the static value.
Does anybody have an idea how i can create a dynamic pulldown list in my form with the first item listed to be a statich dummy tekst or label like "Select from list etc"
Thanks,I created a normal recordset with Dreamweaver getting tea
m_id and team_names out of the database. Then i list the teamnames in a form list/
menu (dropdown) to show all the available teams. Again it shows me the last record from the
recordset as the first list item and i want a standard "select this" text or something default.
The form code below is generated by dreamweaver itself. I already tried to also put one static value in the value list property but i get the same result. To me it looks like the while loop is overriding whatever you put as static text.
<form id="form1" name="form1" method="post" action="">
<label for="list_teams">Teams:</label>
<select name="list_teams" id="list_teams">
<?php
do {
?>
<option value="<?php echo $row_Teams['team_id']?>"<?php if (!(strcmp($row_Teams['team_id'], $row_Teams['team_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_Teams['team_name']?></option>
<?php
} while ($row_Teams = mysql_fetch_assoc($Teams));
$rows = mysql_num_rows($Teams);
if($rows > 0) {
mysql_data_seek($Teams, 0);
$row_Teams = mysql_fetch_assoc($Teams);
?>
</select>
</form> -
Setting the Default Value for a dynamic select menu
Hi I have a php page with 2 forms on it, one feeds the other to achieve a drill down (manufacturer > model). In the second select menu I have a default static value "Select Aircraft Model", I want to set a value for the first dynamic select menu to read "Select Aircraft Manufacturer". When I add a static value to my list it tells me I alreay have a dynamic behavior on this menu and to choose a different one. I have included the code for both menus. Thank you in advance, I know this must be a stupid question, but it's got me stumped.
Tom
//This is the menu I want to add the default static value to//
<td width="667"><select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
<?php
do {
?>
<option value="<?php echo $row_rsAirManufacturer['aircraft_manufacturer']?>"<?php if (!(strcmp($row_rsAirManufacturer['aircraft_manufacturer'], ((isset($_POST["airMake"]))?$_POST["airMake"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirManufacturer['aircraft_manufacturer']?></option>
<?php
} while ($row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer));
$rows = mysql_num_rows($rsAirManufacturer);
if($rows > 0) {
mysql_data_seek($rsAirManufacturer, 0);
$row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer);
?>
</select>
</td>
</tr>
</table></form>
<form action="quoteResult.php" method="post" name="quoteForm">
<table width="100%" border="0" cellpadding="5px">
<tr>
<td width="260"style="color: #000; text-align: right;">Aircraft Model:</td>
<td colspan="2"><span id="spryselect2">
//This is the menu that works correctly//
<select name="airModel" style="width: 200px;" id="airModel">
<option value="" <?php if (!(strcmp("", ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>></option>
<?php
do {
?>
<option value="<?php echo $row_rsAirModel['aircraft_model']?>"<?php if (!(strcmp($row_rsAirModel['aircraft_model'], ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirModel['aircraft_model']?>Select Aircraft Model</option>
<?php
} while ($row_rsAirModel = mysql_fetch_assoc($rsAirModel));
$rows = mysql_num_rows($rsAirModel);
if($rows > 0) {
mysql_data_seek($rsAirModel, 0);
$row_rsAirModel = mysql_fetch_assoc($rsAirModel);
?>
</select>Change this -
<select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
to this -
<select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
<option value="-1">Select Aircraft Manufacturer</option>
Then if the value of 'airMake' is -1 you know that no choice was made. -
Bug? - Dynamic lists, Apex 4.1
I'm attempting to create a dynamic list (Apex 4.1/Oracle 11.2.0.1) that will ultimately serve as a hierarchical menu structure for a site.
For those that have dealt with this you probably know that there are two main parts, the query against the source table and the associated list template. I'm pretty sure I've got my query correct but would appreciate any comments/feedback on what I've got so far. Here's my query:
select
level,
entry_text label,
entry_target target,
null is_current
from custom_menus
where list_name = 'main menu'
start with list_entry_parent_id is null
connect by prior list_entry_id = list_entry_parent_id
order siblings by display_sequenceThis produces the following output from my table, which looks pretty comparable to the static list I've been using:
LEVEL LABEL TARGET IS_CURRENT
1 My Home f?p=myApp:HOME:&SESSION.::&DEBUG.:::: -
1 My Dashboard - -
2 My Year to Date f?p=myApp:20:&SESSION.::&DEBUG.:::: -
2 My Contest f?p=myApp:26:&SESSION.::&DEBUG.:::: -
2 My Claims f?p=myApp:24:&SESSION.::&DEBUG.:::: -
2 My Current Business f?p=myApp:22:&SESSION.::&DEBUG.:::: -
1 My Search f?p=myApp:810:&SESSION.::&DEBUG.:::: -
1 My Reports - -
2 My Contact Summary f?p=myApp:830:&SESSION.::&DEBUG.:::: -
2 My Production Support Report f?p=EXT_REP:PROD_SUPPORT:&APP_SESSION.::::G_REGION_ID,G_AGENCY_ID,G_AGENT_ID:&P1_REGION_LOV.,& -
2 My Commission Report f?p=myApp:680:&SESSION. -
2 My Chargeback Report f?p=EXT_REP:CHARGEBACK:&APP_SESSION.::::G_REGION_ID,G_AGENCY_ID,G_AGENT_ID:&P1_REGION_LOV.,&P1_AGENCY_LOV.,&P1_AGENT_LOV.: -
1 My myApp™ f?p=EXAPP:HOME:&SESSION. -
1 My Online Store f?p=OLS:HOME:&SESSION. -
1 My Marketing f?p=myApp:710:&SESSION. -So the first question is: does this look correct, from the point of view of what Apex is expecting a dynamic list to look like? It looks like what I would expect, based on the data in my table, but not sure about how the dynamic list is handling the ordering of the list elements.
Assuming this is "correct" and Apex just takes the input in the order it's provided then I'm going to move on the list template. I already have a list template that works with my static list, but when I try to use it with the dynamic list it all falls apart. The nesting of the <ul> and <li> elements gets messed up. The problem seems to be getting the right <ul> and <li> elements in the right areas of the template definition.
If the query above and the output look like what Apex is expecting (I'd appreciate feedback on this) then I'll post some example HTML that's being emitted from my template and see if anyone can see where I might be going wrong. Thanks for any help you might have.
Earl
Edited by: Earl Lewis on Dec 25, 2011 1:25 PMPaul,
That is interesting. Thanks for that pointer. Most interesting part about it is that my list template works just fine for my static list and it goes wonky when I try to apply it to the dynamic list. I think this might actually be getting to the root of the problem.
Perhaps some things are being assumed with the new dynamic lists and maybe stepping on my template design? Guess I need to devise a good test to see if I can better hone in on the problem.
For any others out there that might be reading, this is not resolved so any additional thoughts or feedback will still be greatly appreciated.
Thanks again Paul.
Earl -
Switch List Menu in G/L & Vendor Line Item Display
Hi Dear All Experts,
I've 2 problems.
The first one is in the Vendor line item display program.
copied RFITEMAP and create custom program and then I create new structure (like FAGLPOSX) to show extra fields. (eg. Vendor, User)
New extra fields are shown when i execute but if I click switch menu from the setting menu, it is shown by the old fields not including new fields.
The second one is in the GL Line Item display program.
Even the Switch List menu is enable in the Vendor Line Item display custom program without changing anything for gui status, the switch list menu in my new custom program is disable.(copied from fagl_account_items_gl).
Thks all in advance..
TRAthe second question is now solved.
Include ZFAGL_ACCOUNT_ITEMS_DEF (C_REPID_GL LIKE SY-REPID VALUE 'FAGL_ACCOUNT_ITEMS_GL') I put custom program name in this field.
When I changed to std program name, the switch list menu is enable..
Only the first question is left..
Please let me know is there any way to solve...
Best Regards
TRA -
Dynamic List to Update Field in Record
Hello,
I have created an Update page in CS5.5 and have added a dynamic list to update a field in the record. Now I am stuck. How do I modify the code in the menu to have it update the field?
<select name="cemeteryID">
<?php do { ?>
<option value="<?php echo $row_cemeteryList['cemeteryID']?>"<?php if (!(strcmp($row_cemeteryList['cemeteryID'], $row_cemeteryList['']))) {echo "selected=\"selected\"";} ?>><?php echo $row_cemeteryList['cemetery']?></option>
<?php
} while ($row_cemeteryList = mysql_fetch_assoc($cemeteryList));
$rows = mysql_num_rows($cemeteryList);
if($rows > 0) {
mysql_data_seek($cemeteryList, 0);
$row_cemeteryList = mysql_fetch_assoc($cemeteryList);
?>
</select>
Thanks!I figured it out. Suprised that no one responded - oh well.
Maybe you are looking for
-
When I send an email, it duplicates the content in same email?
I am having a problem that is brand new. When I send an email, the recipient is receiving the same content twice in the same email. How can I fix this?
-
How to Obtain all FRM code/Messages in 9i
Background: Within Forms Developer, I can pull up a list of all FRM messages. If I want detail on one of these, I can click on it and it provides the text with the code. for example 'FRM-10000: Validation error on item.'. Requirement; I need a softco
-
Has anyone gotten the new 640x480 videos to work?
Has anyone gotten the new videos to transfer to their ipod? Mine keeps saying that they are not supported by ipod. Also does anyone know what bitrate for video is now supported?
-
Bought an ipad 2 for christmas but it won't connect to my wireless. My modem/router is an Arris 653 B eurospec DOCSIS. The wifi works on an unsecured network I have in the bldg but not my own network. Anyone have any suggestions?
-
Can't boot from my firewire external drive
I have a 80 Gb LaCie firewire drive where I have installed (since Phanter) an operating system. All things were OK until I updated the system to OS X 10.4.10 in my G3 iMac (slot-loading). Since then I was unable to boot from the external drive. I had