dynamic selection list hangs with php
Hi allI can't get a list of dynamic selection of work in dreamweaver. It completely crashes whenever I try to add to my page. I found someone else in the forum who had the same problem, but no one ever answered. I've tried several things, including putting just the dynamic record and select on its own page with no other code in this regard. He always breaks DW. I also tried this coding myself by making a listmenu and change it so that the value of the option equals a value PHP echo. It crashed too much here. Does anyone have a piece of code with a selection list dynamic work that uses a recordset that I could look at? This way I can see where I am going wrong. All I'm trying to do is to get a simple drop-down menu select list of employee names, so anyone can choose their name for advice. This is a table, a set of records 2 fields (first and last name).
Using DW CS3, php & MySQL, windows XP Pro
Any help would be really appreciated!
That's all! Thanks a lot for your help!
Tags: Dreamweaver
Similar Questions
-
Problems with dynamic selection lists in IE7
I have another problem related to the last one I posted here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=217 & threadid = 1385428
I have a list of dynamic selection populated by a SQL Server database.
I want to select all the items in the list if you have selected a particular item. The code I wrote works fine in Firefox, and I'm assuming that other browsers as well. It does everything not in IE and the specific test does not not in IE7.
I can't use the fix suggested for my last question, because this time I want all of the selected options and selectedIndex applies only to a single option.
Any ideas on what I can do to make it work in IE7?
Here is the code I use:
I have provided a solution to this question in another forum:
http://www.Tek-Tips.com/viewthread.cfm?QID=1495671&page=1
Thank you
Jesse -
Dynamic selection list: link to another page
Hello
Following the list of dynamic selection at the bottom of page "product.php" (www.dolls.com.sg)
< div id = "selectcat" >
< select name = "Catégories" >
<? PHP
{}
? >
< option value = "<?" PHP echo $row_rsCategories ["categoryName"]? > "<?" PHP if (!) () strcmp ($row_rsCategories ["categoryName"], $row_rsCategories ["categoryName"]))) {echo "selected = \"selected\"" ;}? "} > > <? PHP echo $row_rsCategories ["categoryName"]? > < / option >
<? PHP
} While ($row_rsCategories = mysql_fetch_assoc ($rsCategories));
$rows = mysql_num_rows ($rsCategories);
If ($rows > 0) {}
mysql_data_seek ($rsCategories, 0);
$row_rsCategories = mysql_fetch_assoc ($rsCategories);
}
? >
< / select >
My goal is, whenever a visitor clicks on a category in the drop down menu, it is transmitted to the respective page "categories.php".
How can I do?
Thank you
Helmut
Change your code to this:
In categories.php, use $_GET ['categories'] to filter the Recordset.
-
Hi all
I want to collect information about a feature, but according to the value of an attribute from entity level - I want to make the selection of the value of the attr - dynamic level entity.
i.e.
Study the following
-So if I add x 2 instance childEntity: the children Relationship: the child Entity-Attr: the child's name Entity-Attr: the child's gender Entity-Attr: the child's toy
While:Child Instance #1: "Tom", "Male", I would require his drop down list for a toy to be like "Action Man", "Spider Man" on the screen for the user to select
Hope that makes senseChild Instance #2: "Jenny", "Female", her drop down list for the child's toy would consist of: "Barbie", "Justin Bieber CD's"
See you soon
Published by: user9015745 on August 23, 2011 03:00You would not be able to ask sex and toy preferred on the same screen without a 'submit', unless you use javascript. Assuming that it is acceptable to ask the names of all the children and women on a screen (i.e. in collecting entities) and continue to ask questions about the favorite toy of each child on a separate screen, you can take advantage of the screen definitions and screen flow to achieve this without any programming.
Basically, you need to set the following:
-an entity collect the screen for children that you collect the name and gender of each child
-a 'male_toys' screen requesting favorite toy to the child and who uses a choice list that contains only the 'male' toys
-a 'female_toys' screen that asks favorite childhood toy and that specifies the list "female toys."
-define a global screen flow that has first collects 'children' is evolving into the "flow of child", then ends.
-define the workflow of the child to begin with a decision point based on the sex of the child which is progressing towards the male sex toys to screen if = 'male' or the female toys screen if = "female".
-Add the overall flow to the summary screen of the evaluation so that an interview is initiated by starting the overall throughput (you want to force a stream of screen to use to undertake the interview to make you progress in automatic screen based on the pursuit of a goal)
-Also to note: you probably want to shoot left alternative in the child_toy_male and child_toy_female so that it is clear what child screen wonders about the screens. -
Dynamic selection tabular list
Hello, I am new to the PL/SQL and APEX.
I want to create the dynamic selection list in a table based on another column in the same tabular form. But lack me of expression stop.
Can someone tell me whats wrong with my code?
Behold, my code
SELECT ID, NILAI,
APEX_ITEM. SELECT_LIST_FROM_QUERY (7, NILAI,'SELECT V.MEANING AS DISPLAY,)
LOOKUP_CODE AS RETURN_V FROM apps.fnd_lookup_types_vl@SUCODEV T,
Apps.fnd_lookup_values_vl@SUCODEV V where T.lookup_type = V.lookup_type and v.attribute_category =' |' SCI_TYPE_SELEKSI' | "and V.ATTRIBUTE1 =' |" BADAN |) SELECT_LIST_NILAI
OF SCI_TABLE
v.attribute_category is the search category in the database
I want to make this dynamic selection list as V.ATTRIBUTE1 value is generated by another column named BADAN
I'm sorry for the bad explanation
I just edited my nickname of Lexover XD
Thank you
Post edited by: Lexover
Post edited by: Lexover
Hi guys, I found the error. Here's the correct code:
SELECT ID, NILAI,
APEX_ITEM. SELECT_LIST_FROM_QUERY (7, NILAI,'SELECT V.MEANING AS DISPLAY,)
LOOKUP_CODE AS RETURN_V FROM apps.fnd_lookup_types_vl@SUCODEV T,
Apps.fnd_lookup_values_vl@SUCODEV V where T.lookup_type = V.lookup_type and v.attribute_category = "SCI_TYPE_SELEKSI" and V.ATTRIBUTE1 =' | NILAI) SELECT_LIST_NILAI
OF SCI_TABLE
I put the apostrophe before | and the column name (parameter) and doble single quote in varchar where clause. Double quotation mark, 2 times the apostrophe. Easy to understand hope.
Thanks guys for the feedback.
Lexover
-
selection list dynamic default value
Hello world
I have a question about the dynamic selection lists.
I have a report of a table that displays records. Each record has different versions of data. So when you click on a folder you get to another page where you get some information on this record and where you can select the version of this information (using a selection list).
The selection list works very well and is set dynamically as follows:
Select distinct b.SID display_value,
return_value a.version_id
cn_pl_version a.,
cn_pl_std_peplanung b
WHERE a.version_ID = b.version_id AND
b.pe_id = "& P6_HELP_PRODET."
a.version_id desc order
My problem is that when I click on a folder that I always get the report filled with the oldest version of the current record, so I always choose the most recent version to the list manually. I always prefer to have the most recent version in the report.
The report query is:
Select
....
....
(select sum (stunden) in cn_pl_std_peplanung t02
where abt_id = '10'
and t02.pe_id = t1.pe_id
and t02.version_id = t1.version_id
and t02.idee_id = t1.idee_id) stunden_ir;
(select name from cn_pl_version u01
where u01.version_id = t1.version_id) Version
of cn_pl_std_peplanung t1, cn_pl_projektelemente z1, u1 cn_pl_version cn_pl_projektidee s1
where t1.version_id = ' & P6_VERSION_WAHL. »
and t1.pe_id = z1.pe_id
and z1.pe_id ='& P6_HELP_PRODET. »
Group of t1.pe_id, t1.version_id, t1.idee_id
' & P6_VERSION_WAHL.' is the element of the selection list
' & P6_HELP_PRODET.' is the ID of the current record
I don't know if you understand my problem, my English is not the best...
Thanks for any help!
PatrickHi Patrick,
What value choose it show list, when you create a branch to the page? That's the good?
If not, you must change your selection list, that the correct version is selected by default. You can set a 'default' value when you set the source of the element.Otherwise, you may configure a sample application to http://apex.oracle.com.
Best regards
Chrissy -
Asynchronous flash chart where update select list value changes
Hi devs,
I groped with flash graphics with dynamic when update select list point of changes in value.
First of all, I used the function of Denes Kubicek [http://htmldb.oracle.com/pls/otn/f?p=31517:229 | http://htmldb.oracle.com/pls/otn/f?p=31517:229:3039869356317498] update the value of the session from my dynamic selection list after change:
That has worked well. Then has been to change the update interval chart flash and:<script language="JavaScript" type="text/javascript"> function fnc_setItem (pItem) { var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',0); get.add(pItem,$x(pItem).value) gReturn = get.get(); get = null; } </script>
Home > Application Builder > application 150 > Page 1 > Flash chart attributes > update >
Asynchronous update = Yes
Update interval (seconds) = 5
My report is automatically updated every 5 seconds. But how can I make it work just with the change in the value of the selection list?
The function is used to refresh the report: apex_RefreshChart (1, '2258227549390282', ' de');
Patrick Wolf was a good example for her: [http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/ | http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/]
But I couldn't make it work properly.
Thanks in advance
TobiasHello Tobias,.
Having defined with function of the Dene session state, you can refresh the table to help:
apex_RefreshChart ($v ('pFlowStepId'), $v('Pxx_REGION_ID').substr (1), navigator.language);
PXX_REGION_ID is the ID of the region of the chart area. You can set that in the bottom of the region to help;
$s ("Pxx_REGION_ID", "#REGION_ID #");
See [example: http://apex.oracle.com/pls/otn/f?p=41715:29]
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-) -
Problems of selection list static apex
I have a selection list (P147_EVENT_TYPE) with only two values, defined as:
Static: Hurricane; HURRICANE, River; RIVER
The selection list filter a report. The user selects 'River', they see all the events of the River in the report. The user selects "Hurricane", they see all the events of the River in the report.
I wanted to make changes so that there would be a possibility to see "All events". Inside the element, so I changed:
Display nulls-> Yes
Null value display-> all Types of events
Return NULL-> white left value
The query of the report itself along the lines of:
SELECT name, type
Areas
where ((P147_EVENT_TYPE = "Hurricane" or P147_EVENT_TYPE = "River")
or P147_EVENT_TYPE is NULL)
Normally coming to the page on the report, the selection list should display 'All Types of events' and the report is expected to be Hurricane events and river. However, when I get the report selection list (P147_EVENT_TYPE) is displayed for 'River '. It has three choices in there (River, hurricane and all Types of events), however, if I select "All Types of events" in the selection list, it is just for the river. Is it possible to change this? Can I not use a static selection list with a default value type? Any help on that would be great. Thanks in advance for your help.
It looks like somehow the default value is used for 'River '. I'm trying my earlier suggestion and see what's the result. It must be fast to try it. You can also set up on apex.oracle.com so we can fix it.
-
change the results of the report with the selection list using dynamic action
This is one of those situations where if I could understand the appropriate search terms to use, someone else must have asked this question in the past.
I have a report with a SQL query with a condition based on a list of selection on the same page. So I have a list of selection -: P177_FISCAL_YEAR
My request for my report is:
Select md_id, display_name, description
of media_tbl
where fiscal_year =: P177_FISCAL_YEAR
When a person makes a selection on the selection list (: P177_FISCAL_YEAR), I would like to report up-to-date without having to submit the page. I was hoping that I could do something like this using a dynamic action but have not found a way to do it.
Thanks in advance!
JohnCreate dynamic Action:
When
Event: change
Selection type: product (s)
Article (s): P177_FISCAL_YEAR
Condition: - unconditionally.Real Actions (add 2 real actions)
-the first is to load the value in session state so that the report can see.
Sequence: 5
Action: execute the PL/SQL Code
Code PL/SQL: null;
Items to submit page: P177_FISCAL_YEAR-the second to refresh the report
Sequence: 10
Action: Discount
Selection type: region
Region: -
Help with dynamic action and the selection list item
G ' Day Apex gurus.
I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.
I think I should be able to do with dynamic actions but I can't function.
I know when someone clicks on the label of the item selection list trigger this JavaScript
JavaScript:popupFieldHelp('277938589795252851','1545903379570909')
So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.
That's what I have to do:
I created a dynamic option as follows:
Name: test
Sequence: 30
Even: click
Selection type: product (s)
Article (s): P1_RATING <-a selection list item
Condtion: - no requirement.
Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: checked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.
Kind regards
CarlosHi Carlos,
I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.
Name: Action Dynamics demo
Sequence: 10
Even: click
Selection type: product (s)
Product (s): P1_DA_DEMO<- a="" selection="" list="">->
Condtion: - no requirement.Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: unchecked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')Scope of the event set a Bind s.
Thank you
Paul
-
How to make a list of dynamic selection with time interval of 15 minutes
Hi all
I have a question. I need a selection list containing the time with 15 minute intervals from 08:00 until 16:00.
example 08:00
08:15
08:30
08:45
09:00
09:15
and so on until 16:00
Or values stored in a column of varchar type.
Can someone help me with this one please?
Best regards
CarolineYou can generate the entries in a dynamic way, as:
select to_char(trunc(sysdate)+8/24+(level-1)*1/96,'HH24:MI') period from dual connect by level <= 33
or if you want/need to use your stored values:
select display_column, return_value from table where display_column in ( select to_char(trunc(sysdate)+8/24+(level-1)*1/96,'HH24:MI') period from dual connect by level <= 33 )
-
Problem with the selection list dynamic LOV using bind variables
I have the following SQL to fill a selection list:
Select d, ch from
(
Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
Join the ck list
on ck.family = ft.famt_name and ck.newseq in (: NEWSEQ_QUERY_SQL)
)
Where NEWSEQ_QUERY_SQL is a part of the application that is defined by a calculation of page and essentially returns a list of values NEWSEQ based on some parameters of the user query. For example:
Select distinct (ck.newseq) in the ck list where rownum < 20
The query above works fine with SQL Developer and returns two columns needed (display_value, return_value)
However, it returns no line, when it is used to fill the LOV to a selection list.
If I replace the: NEWSEQ_QUERY_SQL with a list of NEWSEQ hard-coded, it works:
Select d, ch from to)
Select ft. FAMT_NAME d, pi. FAM_ID_T r
of FAMILY_TRA ft join checklist ck on (ck.family = ft.famt_name and ck.newseq in ('K0242900', 'K0217200'))
) ;
I can even replace: NEWSEQ_QUERY_SQL with hard-coded SQL and it works:
Select d, ch from
(
Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
Join the ck list
on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from the list ck where rownum < 20))
)
But if there is a connection variable (: NEWSEQ_QUERY_SQL), it doesn't.
Selection lists are driving me crazy! They seem incredibly capricious.Hello:
You cannot link a "sql statement" that bind the value you're trying to do.
P2_FAMILY_LIST must be the SQL statement you executed for the LOV. Something likeselect d, r from ( select ft.FAMT_NAME d, ft.FAM_ID_T r from FAMILY_TRA ft join checklist ck on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from checklist ck where rownum < 20)) )
CITY
-
Hi everyone, this should be so easy, and yet I'm stuck.
I have a form with a P110_VESSEL_ID element. This article is a list of selection. It is based on the query:
Select distinct v.vessel_name, v.vessel_id
of ships v, frequent_fishermen ff
where ff.dea_permit_id =: G_PERMIT_ID and
FF:vessel_id = v.vessel_id
UNION
Select v.vessel_name, v.vessel_id
of apex_collections v, vessels
where collection_name = "SUPVES_COLLECTION" and
a.C002 = v.vessel_id
If the user decides from the values in the selection list query, they can opt to SELECT all THE VALUES. This SELECT all VALUES is a TEXT of ITEM POST on P110_VESSEL_ID.
< a id = "popVessels" href = "#" > < font color = blue > select all < /a > ships
It all works very well.
The problem is that when the user selects a boat name = "UNKNOWN" and it is corresponding to the value of vessel_id, I want an ALERT to appear indicating that they should check that the boat is UNKNOWN and no one's any ship.
I created a dynamic action
event = change
Select type = item
Item = P110_VESSEL_ID
Real ACtion #1 is the ALERT.
Currently, I have no other logic, but can't even get this working. All thoughts. I also tried the SELECT TYPE = jQuery Selector = select [name = "P110_VESSEL_ID"], but that does not work either (although I am not sure if the value must be P110_VESSEL_ID or static VESSEL_ID name).
Any help is appreciated.
PS. the page is not submitted when the ship is changed. There are other data that should be in this region and others and many validations run when submit to submit would not be an option.
Thanks again,
Karen
Is (BOAT = UNKNOWN) a single value with a single vessel_id? If Yes and for example if the vessel_id is 99, then proceed as follows:
Add an expression "JavaScript" in your dynamic action.
In the Condition value, enter:
this.triggeringElement.value == "99"
-Jeff
And I agree with Nicolette, there is something wrong with some other DA who is at the origin of the DAs after that does not work.
-
Dynamic action in two selection list
Hi all
I created two select lists.one is parent of other child.
I can get the child list correctly from the article values parent lov cascading
For example: the company name of parent element values: x, y, z, etc.
x with 3 customers say a, b, c
There is no customer for y
z with 2 customers say e
now, I want to hide the element of the child when the parent having no child.
Now when I select 'y' for the example above, I would like to hide the child element.
How can I do?Hello
You can do the following:
1. create a hidden page element, say PX_HIDE_SHOW_FLG
2. create a dynamic Action of type 'Set value' on the element parent to update PX_HIDE_SHOW_FLG. You can choose the "value Type" as "body of the PL/SQL function. The code in the function must return "Y" or "n" based on logic (count the number of children under the selected parent). You can trigger this DA on 'change' of the parent element.
3. now, create another DA on PX_HIDE_SHOW_FLG to hide and show the child LOV article based on its value. For example, if value (of the page hidden item) = 'Y', and then hide, another show.Thank you
Rohit -
Fetch value selection list to select the list using dynamic measurements
Hello
I have a select list 1 and select list 2
as I chooses a 1 based on selected value select list option, select list 2 options screens.
: Options P1_SELECT1
DISPLAY RETURN VALUE OF VALUE
D INTERIOR
INTERNATIONAL I HAVE
: P1_SELECT2 with dynamic statement options
Select NAME, ID from PRODUCT_MAS
where ADDL_FIELD1 =: P1_SELECT1
can I do this task using dynamic measurements?
If so how can I do this?You have even set a dynamic Action for this:
Set as Select list and property 'Cascading LOV Parent article (s)' set of P2_SELECT2 to P1_SELECT1 and you're done.
Maybe you are looking for
-
Firefox hangs the start of solange and cannot send accident report
Last night I was browsing the web and ended up having 300 + tabs open, FIrefox started to slow down a lot and no longer meets a couple of times. At the opportunity to close Firefox from the pop up window and choose to close Firefox, unfortunately whe
-
WHEN I PLAY GAMES ON FACEBOOK, ILS ARE REALLY SLOW
WHEN I PLAY COLLAPSE, TREASURE ISLE, GARDEN OF TIME OR ANY OTHER GAME ON FACEBOOK, ILS ARE REALLY SLOW SO I GO ON INTERNET EXPLORER, WHICH IS NOT WHAT I LOVE...
-
Laptop hardware failure, no bios, on Presario CQ61 unknown error code
Hello I have a presario CQ61-417SA, a little more than two years. Work is to put and received persistent of the flashing lights on the locking caps and num lock keys only. The lights flash continuously and therefore does not seem to correspond with a
-
Hi everyone, I need help filter some data. consider the following data:WITH the data AS(SELECT id 7846, cid 7, would be "dual UNION ALL status".SELECT the id 7847, 7 cid, the from ' status OF double UNION ALLSELECT the id 7848, 7 cid, the from ' stat
-
Thumbnail sizing, placement etc...
Hi guys,.I'm looking for instructions on how to systematically the size of a thumbnail in a sensitive site and have 3 in a row... that are all the same size. The images themselves are of different sizes. I'm playing in photoshop but not discover what