Dynamic Lov not Displaying
Hi
I am having trouble in displaying my dynamic record group. I created a default record group and LOV called RG_TRY and LOV_TRY. I based LOV_TRY on RG_TRY which is a SQL query with one column. I call this LOV by pressing a button. However, I want to change the SQL when the button is pressed. I tried this code in my KEY-LISTVAL but the LOV doesn't display anything. What am I doing wrong? I put message to see if the Recorg group is being created. It is but not displaying the LOV. Please help.
x number;
rg_name VARCHAR2(40) := 'RG_TEST';
rg_id RecordGroup;
lov_id LOV;
a_value_chosen BOOLEAN;
code_col GROUPCOLUMN;
qry varchar2(4000);
BEGIN
rg_id := FIND_GROUP('RG_TEST');
qry := 'SELECT NAME FROM TEST';
IF NOT ID_NULL(RG_ID) then
delete_group(RG_id);
END IF;
rg_id := CREATE_GROUP_FROM_QUERY(rg_name, qry);
x := POPULATE_GROUP(rg_id);
message(x);
lov_id := FIND_LOV('LOV_TRY');
SET_LOV_PROPERTY('LOV_TRY', GROUP_NAME, rg_name);
message(get_lov_property('LOV_TRY', GROUP_NAME));
a_value_chosen := Show_Lov('LOV_TRY', 40, 40);
END;
Hi,
Your code works fine in a form I just made.
declare
x number;
rg_name varchar2( 40 ) := 'RG_TEST';
rg_id recordgroup;
lov_id lov;
a_value_chosen boolean;
code_col groupcolumn;
qry varchar2( 4000 );
begin
rg_id := find_group( 'RG_TEST' );
qry := 'SELECT NAME FROM TEST';
if not id_null( rg_id )
then
delete_group( rg_id );
end if;
rg_id := create_group_from_query( rg_name, qry );
x := populate_group( rg_id );
message( x );
lov_id := find_lov( 'LOV_TRY' );
set_lov_property(
'LOV_TRY'
, group_name
, rg_name );
message( get_lov_property( 'LOV_TRY', group_name ) );
a_value_chosen := show_lov(
'LOV_TRY'
, 40
, 40 );
end;And you get no error messages? And you see all messages appear on the message bar?
In that case I have no clue.
Grtx,
Remco
Similar Messages
-
AdvancedDataGrid headerrenderer children added dynamically do not display
The AdvancedDataGrid in Flex 3.x does not correctly render children of a custom headerrenderer when the children are added dynamically. This works correctly with the DataGrid.
An AdvancedDataGrid has a custom headerrenderer with one field to display the column header text.
A show button below the grid adds a text input field in the header below the column text in the header.
When the show button is selected, the AdvancedDataGrid header sizes correctly to leave space for the field but does not display the field.
If I drag the column, the text input field displays as I am dragging. See the 3 images below.
I have included the 3 source files. What is the correct way to dynamically add children to an AdvancedDataGrid header?
Thanks.
1. AdvancedDataGrid with only the column header text:
2. After Show is selected, the header is sized for the text field below:
3. Only dragging the column header temporarily shows the text field:
1. TestGrid.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="onInit(event)" width="100%" height="100%">
<mx:Script>
<![CDATA[
protected function onInit(event:Event):void {
var cols:Array = grid.columns;
var colWidth:int = grid.width;
var col:AdvancedHeaderColumn = new AdvancedHeaderColumn();
col.wordWrap = true;
col.show = false;
var headerRenderer:ClassFactory = new ClassFactory(AdvancedHeaderLabel);
// Add any custom properties
headerRenderer.properties = {text: "Column1 header that wraps", dataGridColumn: col};
col.headerRenderer = headerRenderer;
col.headerWordWrap = true;
cols.push(col);
grid.columns = cols;
grid.measuredWidth = colWidth;
protected function showText(event:Event):void {
var cols:Array = grid.columns;
for each (var col:AdvancedHeaderColumn in grid.columns) {
col.show = show.selected;
grid.columns = cols;
]]>
</mx:Script>
<mx:AdvancedDataGrid id="grid" height="100%" width="100%" variableRowHeight="true" editable="true" lockedColumnCount="1"/>
<mx:Button label="Show" id="show" click="showText(event)" selected="false" toggle="true"/>
</mx:Application>
2. AdvancedHeaderLabel.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" verticalScrollPolicy="off">
<mx:Script>
<![CDATA[
import mx.controls.TextInput;
import mx.core.UITextField;
// properties
public var text:String;
public var dataGridColumn:AdvancedHeaderColumn;
// Column header
public var textField:UITextField;
// Optional text input field
public var textInput:TextInput;
override protected function createChildren():void {
super.createChildren();
// Always add the header text
textField = new UITextField();
textField.text = text;
textField.multiline = true;
textField.wordWrap = true;
textField.percentWidth = 100;
addChildAt(textField, 0);
override protected function commitProperties():void {
super.commitProperties();
// Add the text input field?
if (dataGridColumn && dataGridColumn.show && !textInput) {
textInput = new TextInput();
box.addChild(textInput);
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
// Position and size the textInput field
if (dataGridColumn.show && textInput) {
textInput.y = textField.getExplicitOrMeasuredHeight();
textInput.setActualSize(unscaledWidth, textInput.getExplicitOrMeasuredHeight());
override protected function measure():void {
super.measure();
measuredWidth = textField.getExplicitOrMeasuredWidth();
measuredHeight = textField.getExplicitOrMeasuredHeight();
// Make room for the text input field
if (textInput) {
measuredHeight += textInput.getExplicitOrMeasuredHeight();
]]>
</mx:Script>
<mx:VBox height="100%" width="100%" id="box" verticalAlign="bottom"/>
</mx:VBox>
3. AdvancedHeaderColumn.as
package {
import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
public class AdvancedHeaderColumn extends AdvancedDataGridColumn {
public var show:Boolean = false;
public function AdvancedHeaderColumn(columnName:String=null) {
super(columnName);Thanks Hackintosh.
It prints as it views, as a corrupt jpeg. I also dug into console and it confirmed there was an error about a corrupt jpg. The most interesting thing is if I open the bad pdf in Photoshop the whole image is there with no signs of corruption. This leads me to believe it's something with how OSx and/or Safari are rendering the jpgs. Another curious sidenote, Safari on Windows works fine but if you save the pdf, move it to a mac and open it, you get the corrupted jpg again.
I think I'm going to try and stop swimming upstream now. At the end of the day I don't care if the images are pngs, tiffs, or eps. I'm going to try feeding a few different formats and see if that doesn't fix the problem. -
Dynamic Selection not displayed from tcode ZME5A but from se93 yes
I have made a copy of standard program RM06BA00 and transaction ZME5A.
Everything works except Dynamic selection which is not displayed.
When I run transaction from SE93 Dynamic selections show up.
Do you know why this happens and how to fix it?Hi,
You problem probably is related with the "container" of this screen. Check if it still in the screen 1000, because this program is a report and if you change some screen parameter, the screen is recreated and elements inserted by user may be lost.
Also, check the program names link, like:
CALL SUBSCREEN %_SUBSCREEN_%_SUB%_CONTAINER INCLUDING 'SAPLSSEL' '2001' .
Best regards,
Mengue
Do not consider this above if the button is not displayed ****
Edited by: Leandro Mengue on Oct 15, 2010 7:56 PM -
Dynamic text not displaying when publishing for flash 8
This dynamic text works fine when the movie is published for
flash 7, but when i export for the flash 8 player it seems to be
invisible. Is there any obvious reason for this happenning?
thanks
jonOk, thanks, looks like you've pointed me in the right
direction. I havent fixed it yet though. Heres where i am at:
eval(theTarget+".buttonPrime").tex.embedFonts = false;
now i can see my text. of course its using a default font.
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "arial14b";
eval(theTarget+".buttonPrime").tex.embedFonts = true;
eval(theTarget+".buttonPrime").tex.text = "wasssup?";
eval(theTarget+".buttonPrime").tex.setTextFormat = my_fmt;
this isnt working. I have added a font object to the library
and linked it for actionscript using the monkier "arial14b".
however my text is quite invisible. i have checcked, 'export in
first frame' for the font object i even tried it with this
deselected. i have deselected the embed font option on the text
feild itself. that doesnt work either (unless i dont try to set the
text format, so long as i accept a default font, its fine).
so err, help?
confused
jon
ps further to this is have discovered more about this strange
behaviour. i can set the text to a different string, provided i do
not try to embed the font in any way. if i set the font to embed, i
can have the text display with the correct font, until i change the
text. then it dissappears. also i cannot seem to affect properties
like font size by means of my TextFormat object. the textFormat
object also does not seem to affect the font of the text.
in short, when exporting for flash 8, i cannot seem to
successfully embed fonts for dynamic text. the only thigs i have
gotten to work are: static text (or a dynamic text feild with
unchanged text) with an embedded font, or dynamic text with a
default font. -
Help with Dynamic Code not displaying only ASP Shields???
Started working with some .asp pages today and it is not showing me the record set in the brackets. Like this {Recordset.Field} Only giving me the little ASP shield. Looks like this. I have search on google and in dreamweave in the pref's thinking something was not turned on. Can any one help this is driving me nuts.
theDoggerI have been working with DW since UltraDev days and I have never had this issue. I did a fresh install of Win7 Pro and now I get this instead of the dynamic info in the window. I really do not think that it matters what view you are in. I do not want to se what is generated by the DB I just want to see what is supposed to be re-ferenced by the DB in the WYSIWYG.It should not matter if I am working in the Designer or classic or what I usually work in the Dual Mode
It is killing me becasue I can't apply style to the shields it won't let me.
If I run live view I get the proper info. displayed but I should get something like this in the WYSISYG window {rs_innentory.inv-LG-Image} not the damn ASP shield.
I know that I am missing something simple that a tick box or something....it is driving me crazy!
theDogger -
NULL value in LOV not displaying in Viewer as NULL
Discoverer Viewer: 10.1.2.54.25 CP4
I have a list of values ('A','B','C',NULL).
In desktop the drop down shows
A
B
C
NULL
However in viewer I get
A
B
C
When I select the area just under C, which I presume to be NULL, it allows me to move it over. However when I'm ready to run the query, it informs me that I have not selected a value. I can manually key in NULL and the query will execute without a hitch.
What am I doing wrong?
Thanks,
JamieI'm not sure I understand exactly what you need.
But your LOV show the DNAME and return the DEPTNO, so of course the LOV will return the DEPTNO even if the DNAME is null.
To return null if the DNAME is null, indeed you can use decode but in the return value :
select dname d, decode(dname,null,null,deptno) r
from test_dept
order by 1 -
Dynamic Menu not displaying correctly on iOS devices
Can't get my dropdown menus to display correctly when viewing on iPhone & iPad. For some reason the submenu will become visable but not let me select anything before disappearing again. Works fine on desktop browsers.
Just realised the parent element of the submenu is linking to a page, as soon as I took off the link, it works fine. Is there a way I can get it so that the first click brings up the submenu even if there is a link to another page.
-
Dynamic Table not displaying data
First off, i have searched high and low, and havent been able to find much help.
That said, i have been trying to create a simple search/results page in dream weaver, i am using ASP and sql express. Ive been following the adobe tutorial, and everything works as it says it should, except that when you actually do a search, and hit submit, the results page only shows the dynamic table headings, but no data.
On the results page, when i create the record set, if i test it, the data shows up correctly. However on the page itself, nothing shows up.
Here are some example screen shots:Results page:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/netdata.asp" -->
<%
Dim rsUserResults__MMColParam
rsUserResults__MMColParam = "1"
If (Request.QueryString("frmUserSearch") <> "") Then
rsUserResults__MMColParam = Request.QueryString("frmUserSearch")
End If
%>
<%
Dim rsUserResults
Dim rsUserResults_cmd
Dim rsUserResults_numRows
Set rsUserResults_cmd = Server.CreateObject ("ADODB.Command")
rsUserResults_cmd.ActiveConnection = MM_netdata_STRING
rsUserResults_cmd.CommandText = "SELECT logonDate FROM dbo.loginInfo WHERE userName = ?"
rsUserResults_cmd.Prepared = true
rsUserResults_cmd.Parameters.Append rsUserResults_cmd.CreateParameter("param1", 200, 1, 50, rsUserResults__MMColParam) ' adVarChar
Set rsUserResults = rsUserResults_cmd.Execute
rsUserResults_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 10
Repeat1__index = 0
rsUserResults_numRows = rsUserResults_numRows + Repeat1__numRows
%>
<!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=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table border="1">
<tr>
<td>logonDate</td>
<td>loginTime</td>
<td>computerName</td>
<td>userName</td>
</tr>
<% While ((Repeat1__numRows <> 0) AND (NOT rsUserResults.EOF)) %>
<tr>
<td><%=(rsUserResults.Fields.Item("logonDate").Value)%></td>
<td><%=(rsUserResults.Fields.Item("loginTime").Value)%></td>
<td><%=(rsUserResults.Fields.Item("computerName").Value)%></td>
<td><%=(rsUserResults.Fields.Item("userName").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsUserResults.MoveNext()
Wend
%>
</table>
</body>
</html>
<%
rsUserResults.Close()
Set rsUserResults = Nothing
%>
Search page:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!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=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="frmUserSearch" name="frmUserSearch" method="get" action="userResults.asp">
<p>Enter User Name
<input type="text" name="userName" id="userName" tabindex="1" />
</p>
<p>
<input type="submit" name="userNameSubmit" id="userNameSubmit" value="Submit" />
</p>
</form>
</body>
</html> -
Spry Dataset (dynamic table) not displaying images
Hi - new to Spry but loving it! I just did the tutorial for
creating
dynamic
tables and had no problems outside of trying to get images to
display in one tableset. in the XML I have
<thumb><image href="imx/china.jpg"
/></thumb>
with thumb being the node name (naturally). the table cell
displays nothing but all others have text displayed properly. is
there no way of calling in images?
Thanks for the help and advice!If you really want to embed HTML in XML, then read this
sample:
http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
You can also just embed the path in the XML like this:
<thumb>img/china.jpg</thumb>
and then reference it in your region markup like this:
<div spry:region="ds1">
<img src="{thumb}" alt="{thumb}" />
</div> -
Menubar from dynamic xml not displaying
I can't get a Menubar to display the submenu items. The list
displays properly without any reference to the "menubar" class so I
think I must have something off in the area. I have searched the
examples, api, and forum but I haven't been able to find anything
to help me fix it. I have worked on this for a couple of hours so I
am turning to everyone for help. Here is my code.
<div spry:region="dsSubCat dsRefine dsRefineValue"
class="SpryHiddenRegion">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="#" class="MenuBarItemSubmenu">Sub
Category</a>
<ul>
<li spry:repeat="dsSubCat"><a href="#"
onclick="loadSubCatData('{dsSubCat::Value}');">{dsSubCat::Title}</a> ({dsSubCat::NumberOf Products})</li>
</ul>
</li>
<li spry:repeat="dsRefine"><a href="#"
class="MenuBarItemSubmenu">{dsRefine::@name}</a>
<ul>
<li spry:repeat="dsRefineValue"><a href="#"
onclick="loadRefineData('{dsRefineValue::Value}');">{dsRefineValue::Title}</a> ({dsRefine Value::NumberOfProducts})</li>
</ul>
</li>
</ul>
</div>
<script type="text/javascript"><var MenuBar1 = new
Spry.Widget.MenuBar("MenuBar1",
{imgDown:"../../images/SpryMenuBarDownHover.gif"})</script>Hey N,
When dynamically creating widgets with Spry data, the
constructor script tag needs to be within the spry:region.
This allows it to fire off after the markup has been
generated.
Let us know if this solves it.
Don -
Dynamic lov not Working....
hi
I have an lov called search_lov based on a rg 'dummy_rg' having the following stmt
select '1' , '2' from dual;
and then i tried to change the group to another one with the following code.
v_rg_string :='select dept_code, dept_name from dept_master';
IF Id_Null(rg_id) THEN
rg_id := Create_Group_From_Query( rg_name, v_rg_string);
END IF;
errcode := Populate_Group( rg_id );
if (errcode = 0) then
Set_LOV_Property(lov_id,GROUP_NAME,'SEARCH_RG');
END IF;
every thing works fine
but when i try to show the lov...noting is coming
code used was on a button
declare
vn boolean;
begin
vn := show_lov('search_lov);
end;have you defined:
rg_name varchar2(10) := 'SEARCH_RG';
works ok in forms 6i -
Return multiple values from dynamic lov in apex 3.2.1
Hi
I need to create a dynamic lov that displays multiple values from a table and RETURNS multiple values into display only fields in a form page to be saved to the database
For example
dynamic list of value name SERVER
select name || ',' || life_cycle d, name r
from sserver
order by 1
This SERVER LOV is attached to the P4_SSERVER_NAME field in the form.
However this only returns sserver. name into the P4_SSERVER_NAME field in the form. I would need to capture the life_cycle field as well and populate the P4_LIFE_CYCLE field in the form as well. How does one do this?
I have searched this forum however could not find a thread that fit my situation. i saw that in 4.2 there is dynamic action however unable to upgrade at this moment.
any suggestions are greatly appreciated.
thank youHi CRL,
One method is to set the value of your P4_LIFE_CYCLE item via APEX_UTIL.set_session_state
To do this you need to create a Page Process
Type PL/SQL anonymous block
Process Point On Load - Before Header
The source for the Process might look like this: DECLARE
l_life_cycle VARCHAR2 (50);
BEGIN
SELECT life_cycle
INTO l_life_cycle
FROM sserver
WHERE :p4_sserver_name = sserver.name;
APEX_UTIL.set_session_state ('P4_LIFE_CYCLE', l_life_cycle);
END;Jeff -
Null values not displaying in the LOV on the parameter form.
My report works perfect while in Oracle Reports 10g, however when I move it to our menu (Oracle Forms 10g) it does not display the null in the LOV on the parameter form.
This report allows the the user to select by inspector or district or everyone for certain dates.
Ex: I have 4 parameter fields. The user must enter the start & end dates and either the Inspector or the district or leave the inspector or district null to run for everyone.
The district LOV is :
select dnr_section_code, description from dnr_section_code where dnr_section_code in ('29', '38','52')
UNION
select null, 'All' from dual
order by 2 asc ;
The inspector LOV is:
select null , 'All' from dual
UNION
select person_seq, first_name||' '||last_name inspector from vw_eng_inspectors
order by 2 asc
In my Data Model query I use the :
My select
from tables
where clause
+
----by inspector
and (prod_fac_inspections.person_seq_inspector =
nvl(:inspector,prod_fac_inspections.person_seq_inspector))
---by district
and
(d.dnr_section_code = nvl(:district,d.dnr_section_code)
and d.person_seq = prod_fac_inspections.person_seq_inspector)
Again, it works perfect in Reports! It eliminates having 3 reports on the menu. This one report gives the user the option of selecting dynamic parameters.
Also, I got so frustrated, that I went a different route of using a default where.
I am stuck with the error of ORA:00933 SQL command not ended properly
1=1
I set the initial value to 1=1 and it does not like it.
I am stuck!
DB = Oracle Database 10g Enterprise Edition Release 10.2.0.2.0Hi Krishna,
I'm not sure I understand the probelm.
A progress bar control only displays numeric values. When do you mean by "unassigned values"? What would you expect to be presented?
Best regards,
Udi -
Problem with a Display Only field based on a dynamic LOV
I have a field/item which is based on a dynamic LOV:
select DESCRIPTION display_value, STATUSID return_value
from CTCXFRREQS_STATUS_LOV
order by 1
...and I need it to be display-only on the page. However, if I make it a display-only field, the return value is displayed, not the display value. If I change it to be a select list field, the display value is shown, as I expect and need.
The field was based on a static LOV before, and it worked perfectly then.
Has anyone seen this before, and have any suggestions on how to work around it?Hi,
In edit item
Display As: Display Only
Save Session State: Yes
Based On: Display Value of List of Values
Named LOV: YOUR_LOV
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
Master page Dynamic data not getting displayed in consecutive pages
Hi,
I have buit a dynamic form which has some dynamic content in master page and a dynamic table in the body page.
Layout is
Master page
Sub form
Field1 -TextView
Field2 - TextField bind with Node1--->Attribute1
Field2- TextField bind with Node2---->Attribute2
Field n - TextField
all the text fields are bound to various nodes from RFC
Body Page
Sub form
Table -Grows Dynamically
When i run the application all the fields are displayed perfectly in the first page.
when the table data goes more than one page the problem arises
The Text fields in the master page is not displaying the values in the second page ,but the text views and the table values are fine.
The values are getting displayed in both pages if i put any attribute inside the parent node.Is there any property i need to set at node level or subform level?
Thanks in advance,
SivaHi
I Would like to give a suggestion eventhough i don,t have answer to you question.
Master Page is used for static content as per SAP and Adobe like company logo and company address footer section and placing watermarks etc....
I feel because of the Dynamic behavior in master page it Leeds this problem.
Regards
Malli
Maybe you are looking for
-
Import CSV Data from a server into SQLite - Help me do this or talk me out of it?
There is a portion of a MySQL database (no more than 500 records, 6 fields) that I would like to download into a local SQLite db every time a user signs in. The reason I want to do this is because there are a lot of weird group by statements I want
-
How do I apply a texture to an imported .stl file in 3D Picture Control?
Hi, I'm trying to apply a 2D image as a texture to an imported .stl file in 3D picture control. It works fine if I'm using a standard shaped mesh created in LabVIEW, however is there a way in which a texture can be applied to an imported model that i
-
Class SAP_RCS* is not exsited in SAP REACH 2.0
Hi experts, I installed SAP Reach 2.0 on SAP ECC 6.0 EHP5 and then update Reach 2.0 SP2 I try to move CLASS SAP_PCS* from client 000 to client 100 but I can not find SAP_PCS* in t-code CL02. Please, how can I do? thanks and regards, Jun
-
I'm using 33.0.1 firefox. When I google I don't want a new tab to be opened unless I rt click and open. As far as I remember, I wasn't the case before. Could someone help to change the settings or how do I open the link in that particular page itself
-
Transfer iPad Apps to a New Account
I am selling my iPad which has a number of Free apps loaded. Can these be transferred to the buyers account (saving copious downloads)? This a full transfer not a sharing arrangement. I will not need the apps once the iPad is gone.