Dynamically displaying multi parameters values
Hi,
I'm newbie to this framework and I have successfully
implemented some of the demos posted in this site. BTW, kudos to
all who contributed all those demos.
Well, I after trying most of the demos, I am trying to
implemented .... dynamically displaying content from the xml file
when users click on multiple choices. Let say, I have the check
boxes for the following option:
Subjects: [ ] Math [ ] Biology [ ] Computer Science and so
on.
So when the users click on these checkboxes, it will display
books related to the selected subject/s.
If anybody have implemented similar functionality, can you
please give me an idea/suggestion? Any help will be appericated.
Cheers,
nj
Hi all,
I have been trying to implement "Multiple filter" (
http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersModeSample.html )
using more dymanic approach however, it is not working correctly.
Here is my code .... can you plz give any suggestion handling this
issue?
<?xml version="1.0" encoding="utf-8"?>
<books xmlns="
http://www.books.com/books">
<subjects>
<list>Math</list>
<list>Biology</list>
<list>Economices</list>
<list>English</list>
<list>Physices</list>
<list>History</list>
</subjects>
<book>
<title>Intro to Biology</title>
<subject>Biology</subject>
<desc>Introduction to Human Biology</desc>
</book>
<book>
<title>Intro to Geometry</title>
<subject>Math</subject>
<desc>Introduction to Elementry Geometry</desc>
</book>
<book>
<title>Calculus I</title>
<subject>Math</subject>
<desc>Introduction to Elementry Calculus</desc>
</book>
<book>
<title>Physices III</title>
<subject>Physices</subject>
<desc>Advanced physices, Newton's laws</desc>
</book>
<book>
<title>19th Century Americam History</title>
<subject>History</subject>
<desc>Introduction to 19th century American
History</desc>
</book>
<book>
<title>Intro to Biology II</title>
<subject>Biology</subject>
<desc>Introduction to Human Biology</desc>
</book>
<book>
<title>Intro to Biology III</title>
<subject>Biology</subject>
<desc>Introduction to Human Biology</desc>
</book>
<book>
<title>Intro to Biology IV</title>
<subject>Biology</subject>
<desc>Introduction to Human Biology</desc>
</book>
</books>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Testing</title>
<!--
Spry Framework
***************************************************** -->
<script type="text/javascript"
src="js/spry/xpath.js"></script>
<script type="text/javascript"
src="js/spry/SpryData.js"></script>
<script type="text/javascript"
src="js/spry/SpryDataExtensions.js"></script>
<script type="text/javascript">
<!--
var subjectname;
var dsSubjectFilter = new
Spry.Data.XMLDataSet("xml/books.xml", "/books/book", { subPaths:
"subject" });
var dsSubjectList = new
Spry.Data.XMLDataSet("xml/books.xml", "books/subjects, {subPaths:
"list", sortOnLoad: "list"});
function filterParameter(ds, row, index){return (row.subject
== subjectname)? row : null;};
function ToggleFilter(enable, filterParameter, name) {
//alert("name : " + name);
subjectname=name;
if(enable)
dsSubjectFilter.addFilter(filterParameter, true);
else
dsSubjectFilter.removeFilter(filterParameter, true);
dsSubjectFilter.setFilterMode("or", true);
//-->
</script>
<!-- ***************** END of Spry
*********************** -->
</head>
<body>
<div spry:state="ready">
<div spry:region="dsSubjectList">
<form action="">
<ul>
<h4>Subject</h4>
<li spry:repeat="dsSubjectList"> <input
type="checkbox" value="" onclick="ToggleFilter(this.checked,
filterParameter,
'{dsSubjectList::list}');"/>{dsSubjectList::list}</li>
</ul>
</form>
</div>
<div spry:region="dsSubjectFilter">
<p> Count = {dsMissionFilter::ds_RowCount}</p>
<div spry:repeat="dsSubjectFilter">
<h4>{dsSubjectFilter::ds_RowNumberPlus1}. {dsSubjectFilter::title}</h4>
<p> {dsSubjectFilter::subject}</p>
<p> {dsSubjectFilter::desc}</p>
</div>
</div>
</div> <!-- *** END of spry:state="ready"
*****-->
</body>
</html>
Basically, firstly it creates the checkboxes with the diff
subjects to select. Once we start selecting those subjects, it shld
start displaying the related books with titles, subject and
description. However, the "or" doesn't seems to work .... any
suggestion will be appericated.
Cheers,
nj
Similar Messages
-
Need Help: Dynamically displaying parameter values for a procedure.
Problem Statement: Generic Code should display the parameter values dynamically by taking "package name" and "procedure name" as inputs and the values needs to be obtained from the parameters of the wrapper procedure.
Example:
a) Let us assume that there is an application package called customer.
create or replace package spec customer
as
begin
TYPE cust_in_rec_type IS RECORD
cust_id NUMBER,
,cust_name VARCHAR2(25) );
TYPE cust_role_rec_type IS RECORD
(cust_id NUMBER,
role_type VARCHAR2(20)
TYPE role_tbl_type IS TABLE OF cust_role_rec_type INDEX BY BINARY_INTEGER;
Procedure create_customer
p_code in varchar2
,p_cust_rec cust_in_rec_type
,p_cust_roles role_tbl_type
end;
b) Let us assume that we need to test the create customer procedure in the package.For that various test cases needs to be executed.
c) We have created a testing package as mentioned below.
create or replace package body customer_test
as
begin
-- signature of this wrapper is exactly same as create_customer procedure.
procedure create_customer_wrapper
p_code in varchar2
,p_cust_rec customer.cust_in_rec_type
,p_cust_roles customer.role_tbl_type
as
begin
//<<<<<---Need to display parameter values dynamically for each test case-->>>>>
Since the signature of this wrapper procedure is similar to actual app procedure, we can get all the parameter definition for this procedure using ALL_ARGUMENTS table as mentioned below.
//<<
select * from ALL_ARGUMENTS where package_name = CUSTOMER' and object_name = 'CREATE_CUSTOMER'
but the problem is there are other procedures exists inside customer package like update_customer, add_address so need to have generalized code that is independent of each procedure inside the package.
Is there any way to achieve this.
Any help is appreciated.
// >>>>
create_customer
p_code => p_code
,p_cust_rec => p_cust_rec
,p_cust_roles => p_cust_roles
end;
procedure testcase1
as
l_cust_rec customer.cust_in_rec_type ;
l_cust_roles customer.role_tbl_type;
begin
l_cust_rec.cust_id := 1;
l_cust_rec.cust_name := 'ABC';
l_cust_roles(1).cust_id := 1;
l_cust_roles(1).role_type := 'Role1';
create_customer_wrapper
p_code => 'code1'
,p_cust_rec => l_cust_rec
,p_cust_roles => l_cust_role
end;
procedure testcase2
as
l_cust_rec customer.cust_in_rec_type ;
l_cust_roles customer.role_tbl_type;
begin
l_cust_rec.cust_id := 2;
l_cust_rec.cust_name := 'DEF';
l_cust_roles(1).cust_id := 2;
l_cust_roles(1).role_type := 'Role2';
create_customer_wrapper
p_code => 'code2'
,p_cust_rec => l_cust_rec
,p_cust_roles => l_cust_role
end;
end;Not possible to dynamically in a procedure, deal with the parameter values passed by a caller. There is no struct or interface that a procedure can use to ask the run-time to give it the value of the 1st or 2nd or n parameter.
There could perhaps be some undocumented/unsupported method - as debugging code (<i>DBMS_DEBUG</i>) is able to dynamically reference a variable (see Get_Value() function). But debugging requires a primary session (the debug session) and the target session (session being debugged).
So easy answer is no - the complex answer is.. well, complex as the basic functionality for this do exists in Oracle in its DBMS_DEBUG feature, but only from a special debug session.
The easiest way would be to generate the wrapper itself, dynamically. This allows your to generate code that displays the parameter values and add whatever other code needed into the wrapper. The following example demonstrates the basics of this approach:
SQL> -- // our application proc called FooProc
SQL> create or replace procedure FooProc( d date, n number, s varchar2 ) is
2 begin
3 -- // do some stuff
4 null;
5 end;
6 /
Procedure created.
SQL>
SQL> create or replace type TArgument is object(
2 name varchar2(30),
3 datatype varchar2(30)
4 );
5 /
Type created.
SQL>
SQL> create or replace type TArgumentList is table of TArgument;
2 /
Type created.
SQL>
SQL> -- // create a proc that creates wrappers dynamically
SQL> create or replace procedure GenerateWrapper( procName varchar2 ) is
2 procCode varchar2(32767);
3 argList TArgumentList;
4 begin
5 select
6 TArgument( argument_name, data_type )
7 bulk collect into
8 argList
9 from user_arguments
10 where object_name = upper(procName)
11 order by position;
12
13 procCode := 'create or replace procedure Test'||procName||'( ';
14 for i in 1..argList.Count
15 loop
16 procCode := procCode||argList(i).name||' '||argList(i).datatype;
17 if i < argList.Count then
18 procCode := procCode||', ';
19 end if;
20 end loop;
21
22 procCode := procCode||') as begin ';
23 procCode := procCode||'DBMS_OUTPUT.put_line( '''||procName||''' ); ';
24
25 for i in 1..argList.Count
26 loop
27 procCode := procCode||'DBMS_OUTPUT.put_line( '''||argList(i).name||'=''||'||argList(i).name||' ); ';
28 end loop;
29
30 -- // similarly, a call to the real proc can be added into the test wrapper
31 procCode := procCode||'end;';
32
33 execute immediate procCode;
34 end;
35 /
Procedure created.
SQL>
SQL> -- // generate a wrapper for a FooProc
SQL> exec GenerateWrapper( 'FooProc' );
PL/SQL procedure successfully completed.
SQL>
SQL> -- // call the FooProc wrapper
SQL> exec TestFooProc( sysdate, 100, 'Hello World' )
FooProc
D=2011-01-07 13:11:32
N=100
S=Hello World
PL/SQL procedure successfully completed.
SQL> -
How Can I get multi column values from dynamic search help?
Hi Gurus;
I'm using dynamic search help in my program.
I want to get multi column values from search help. But I dont know solution for this issue.
I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
How Can I get multi column values from dynamic search help?
Thanks.Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
There are like 3 steps.
You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined (just to keep it straight, i will be putting here) data: It_return type standard table of ddshretval.
Next step is to call the function module. Make sure you have values in IT_VALTAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FLD2'
value_org = 'S'
tables
value_tab = It_VALTAB
return_tab = It_return
dynpfld_mapping = It_dynpfld
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
perform get_selected_fields tables It_return.
endif.
The code within the perform GET_SELECTED_FIELDS - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
I need a internal table as well as a work area here. like,
data: lt_fields type table of dynpread,
la_fields type dynpread.
field-symbols: <fs_return> type ddshretval.
so fill out LT_FIELDS from the IT_RETURN table
loop at lt_return assigning <fs_return>.
la_fields-fieldname = <fs_return>-retfield.
la_fields-fieldvalue = <fs_return>-fieldval.
append la_fields to lt_fields.
clear: la_fields.
endloop.
Call the FM to update the dynpro
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
good luck -
How to hide dynamic parameters values in the URL with Reports 6i
Hi,
I want to know a way of hiding the parameters values when asking for a report through the web.
Now I'm using the Reports 3.0.5.8 with a Cartridge defined in the Oracle Web Application Server 3.0.1.0.1. When you ask for a report with the parameters DESTYPE = cache and DESFORMAT = pdf, it is fully generated and in the Address or Location box of the browser, you can see http://webserver/cache/report.pdf (where cache is the virtual directory defined in the OWAS in which the .pdfs are cached). So, users cant see the Url used to generate the report.
Im trying to upgrade this configuration to Reports 6i with Cgi in a web server. I generate reports with no problems. The problem I have is I cant find how to hide the parameters values as before. I mean, when I ask for a report, once its generated I can see http://webserver/cgi-bin/rwcgi60.exe?server=ServerName&report=report.rdf&userid=user/pass@connection&destype=cache&desformat=pdf&P1=value1&P2=value2 in the Location box. It allows user to ask for another report changing the values of the parameters. I use these parameters to execute some query written in the Data Model. For example, imagine that the P1 represents the company id, the user (that is supposed to see only data of its company) can change this id, ask for a new report and see data of another company.
Ive already tried to use the key mapping option, but its not useful to me because the parameters values are dynamic and its impossible to define different entries in the cgicmd.dat for each possible value. The option of loading the parameter form before running a report is not useful to me either, because there exists specific screens for this purpose.
Is there any solution?
Thank you.
Marma Bonfiglio.Hi Rakesh,
I am using BI 7.0
The last option I have is 'Hide' for 'Calculate single values as' .
I have the below options for 'Calculate single values as'
1. Normalise according to Next group level Resul.
2. Normalize according to Overall Result
3. Rank number
4.Olympic Rank Number
5.Maximum
6. Minimum
7.Counter for all detailed values
8.Counter for all detailed values that are non zero
9.Moving average
10.Moving average That is Not zero ,null or Error
11. Hide.
So could you please tell me where i can find 'suppress result' option for the keyfigure .
Many thanks -
Displaying header and border on a dynamic page passing parameters to a form
I am using portals 10.1.4. and am trying to pass parameters to a form which appears as a portlet on a page.
for this, dynamic page has been used to pass parameters to that desired form. my problem is this that when the form is displayed with parameters, the header and borders of the portlet disappear.
The check-boxes for header and borders of the portlets on the page are checked. Yet, when for any reason, the parameters are not passed into the dynamic page, the header of the dynamic page and border are displayed. But when the parameters are passed and the form shows up, then the header and borders disappear.
can anyone help me with the following:
- is it the desired behavior?
- how can i get the headers and borders reappear?
thanksAny ideas fellows?
how can we control the border and header of dynamic pages when a form or report is called from them with passed parameters?
will appreciate any helpful experiences. -
3.1 Multi-assign Value Formatting
I'm using "|" as my multi-assign delimiter. In my LoadData graph, I merge multiple values using this delimiter. I have code in a loop like this:
ResourceInfo = ResourceInfo + "|"
In my Bulk Load, I set the multi-assign delimiter to "|". In 3.0, when I display this multi-assign field in a Results List, each value is separated by a line feed, like this:
Project Resources:Karen James-Project Worker
Ryan Bookout-Project Worker
Steven Davis-Project Worker
But in 3.1, each value is separated by a comma with no line feed, like this:
Project Resources: Karen James-Project Worker, Ryan Bookout-Project Worker, Steven Davis-Project Worker
Is there a way in 3.1 to have multi-assign values display with a line feed like it did in 3.0?Lily,
Here is what the doc says about it, in the topic Processing multi-value data.
The doc does not explicity state that line feed is supported as a delimiter, but suggests to use dashes. It might mean that line feed is not a supported option for a delimiter.
Quoting:
Two options are available for loading multi-value attributes:
If the multi-value field is string data, you can specify the delimiter character used to separate the values. This option is the recommended approach, especially when loading multi-value data from flat files (such as .csv files) or from database input.
Multi-value data can be converted to a list container. This option is recommended when loading multi-value data from complex input (such as JSON or XML) or if you need to process the individual values in the multi-value
To convert the input data to a list data type, use a Transform component. Within the Transform component, use the split() CTL function to convert the input of a multi-value field into a list data type. This function takes two parameters: the input string to be converted to a list, and a regular expression. The input is split whenever a match is found.
For example, support the value of the DimEmployee_DepartmentName field is multi-value, and uses dashes as the value separator. To generate a list data type for this input, you might use the following CTL expression: split($in.0.DimEmployee_DepartmentName, "-").
The configuration of new attributes defaults to single-assign. You should configure attributes to support multi-assign prior to loading data.
Julia -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
How to display first row value returened from a query as checked as default in a report
How to display first row value returned from a query as checked as default in a report
Example
Parameter 1
Paramerter2
ABD
x(checked)
Test
DEF
JMG
MudassarHi Mudassar,
The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
order to solve the issue.
If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
the specific value in Default Values dialog box.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
How to display a default value in BI Publisher
Hello friends,
I need to display a report based on supplier wise or dept wise stock.i've taken parameter type as menu and selecting the values from the drop down list for ex(1,2,3...)... what i want is I should display a default value like select item or something like that in drop down list so that any of the above said values are not shown to the reports user...
Please let me know how...
ThanksHello vetsrini,
thanks a lot for the reply... may be I'm not able to put my requiremet straight.. let me try one more time
My requirement is like the end user has to get the report based on whether he want dept wise or supplier wise
so
where sl.supplier=:supp
or d.dept_no=:dept
this is what i've given in the data set
the user gets report data based on either dept wise/supplier wise..
so I've given query in lov as select distinct dept_no from dept and select distinct supplier from suppliers for the two parameters supp and dept and the type as menu...
so I can see the values like (list of query generated values... ).. I want to do this thing like I want to display 'select' in that list...
is it possible?... Please let me know, if possible..
it should show like dept:select,101,102,103,104....) -
Dynamically displaying a new region (row?) based on immediate user input
Whew, figuring out a title was almost as hard as trying to explain what I want to do!
Okay, a little background first.
My app has 178 main data fields, spread across about 35 tables. The users want to be able to search any and all data fields. So, I wrote a PL/SQL package that for each master record, loops through all of the child tables and creates (more or less) an XML file for each master record (which I store in a CLOB field). When any data in any table is changed, a trigger fires to re-update that CLOB field as well. I then used Oracle Text to create an index on the CLOB field, and now the users can search across all of the available information for each master record and get a list of which records contained what they were looking for.
So here's the first part of the problem. The app is a Mineral Occurence database for all mineral information world-wide. Say they enter "Brazil" as what they want to search for, they not only retreive all of the mineral sites in Brazil, but also all of the sites where one of the mining companies may be based in Brazil, or Brazil is one of the comments, etc. While this is the expected behaviour, it's still not quite what they expected (but they also don't want to get rid of this behaviour either).
So, since the CLOB field is already formatted with XML-type tags, what I want to do is to have an Advanced Search page, where the user can specify the table name to search, or the field name, or both. What I'd like to do is at the end of each line, have a select list with an "AND" or "OR' box, and if that gets a value, then dynamically create another 'row' underneath the first row, with the same three 'boxes' (actually select lists), and continue on until the user has specified exactly what they want to search for.
I would rather not have to create a whole bunch of regions or rows, and then determine at runtime whether or not to display them.
So i would have (using underscores as the boxes/fields):
Table to Search Field to Search And/Or
______________ _____________ _______Each of the above would be a select list.
Anybody have ideas on how I can accomplish this? Any Javascript or AJAX-type solutions that a dummy like me can easily implement? I've seen something almost similar on Carl's example pages to Hide/Show a region(?), but understanding the underlying code and then modifying it for what I want to do is extremely complicated (for me) at best.
Thanks.
Bill FergusonWell, after searching through the QBE results (even some of mine), the only thing that comes close is Earl's (http://htmldb.oracle.com/pls/otn/f?p=36337:14). Actually his layout is almost perfect and pretty identical to what I want/need. Vikas' example seems like what I've toyed with on some other pages in my app, using a simple UNION ALL with nulled fields in the select statement, which won't work for what I need, at least I can't seem to visualize how I could incorporate that same code logic.
However, unlike Earl's, when/if the last column (which I'd have as the 'AND/OR' select list) is populated, I'd like to dynamically display another new row.
Now I know I could do it by making the last column a 'Select List With Submit', but that would neccessitate my creating about 25 regions (to hopefully cover the max any of the users would ever need), and then conditionally display the region based on whether or not the previous 'AND/OR' condition field was populated. It would also require a whole slew of page refreshes, which is clunky.
It seems like there should probably be a way with AJAX to accomplish something similar. I think I remember seeing something along these lines in the last year or so on here, but I can't find it.
Something like a cross-breed of Earl's example page above mixed with Carl's example at http://htmldb.oracle.com/pls/otn/f?p=11933:39:4740898821262791902::NO:RP:: which would automatically fire on the poplulation of the last select list is probably the best I can accomplish, unless somebody has some better ideas on how to do this. Using Carl's htmldb_remix code, I can avoid all the submits and the resulting page refreshes, but the code itself will take an old dummy like me a while to figure out.
Thanks for the ideas though.
Bill Ferguson -
How to dynamically display .flv files in website
I'm using a JSP for my interface.?? In the webpage, I want to pass a java variable, which holds the url to the video that was retrieved from the database, to the flash player script to dynamically determine which video to play.?? For example, this code in the page will play a movie successfully:
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','widt h','706','height','633','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_Co mponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPlay=true&autoRewind= false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage',' http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','FLVPlayer_Progressive' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="706" height="633" id="FLVPlayer">
?????????????????????????????? <param name="movie" value="FLVPlayer_Progressive.swf" />
?????????????????????????????? <param name="salign" value="lt" />
?????????????????????????????? <param name="quality" value="high" />
?????????????????????????????? <param name="scale" value="noscale" />
?????????????????????????????? <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPlay=tr ue&autoRewind=false" />
?????????????????????????????? <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPla y=true&autoRewind=false" quality="high" scale="noscale" width="706" height="633" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />??????????????????????????
</object></noscript></td>
But this code will not play the movie successfully:
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','widt h','706','height','633','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','<%= flashVars %>','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','FLVPlayer_Progressive' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="706" height="633" id="FLVPlayer">
?????????????????????????????? <param name="movie" value="FLVPlayer_Progressive.swf" />
?????????????????????????????? <param name="salign" value="lt" />
?????????????????????????????? <param name="quality" value="high" />
?????????????????????????????? <param name="scale" value="noscale" />
?????????????????????????????? <param name="FlashVars" value="<%= flashVars %>" />
?????????????????????????????? <embed src="FLVPlayer_Progressive.swf" flashvars="<%= flashVars %>" quality="high" scale="noscale" width="706" height="633" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />??????????????????????????
</object></noscript></td>
The only difference in the two is that in the second, I use a java variable to set the flash Variables. The variable I use is <%= flashVars %>?? which is equal to: &MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video2&autoPlay=false&autoRe wind=false
When I view the resulting page source code after building and running the site, The source code is exactly the same for both of them yet one works and one doesn't.?? Any help would be greatly appreciated!I've been searching google all day to figure this one out. I'm not simply trying to play a video, I can already do that... I'm retrieving the location of the video from the database and trying to pass it as an argument to the player, no different than if I was dynamically displaying an image or some text. For some reason I'm not able to do this.
-
Dynamic XSLT processing - parameters?
Goal: I want my XSLT mapping to be dynamic, because I expect a certain number of fields with values in my XML, but these field names may change over time, so I have to make it dynamic.
Step 1: I made my output dynamic by using dynamic internal tables (field-symbols). So that I can change my internal tables easily with a custom-table. Done!
Step 2: My XSLT transformation should be handled dynamically. Not done!
Is this step 2 even possible?
I was thinking of passing PARAMETERS to my CALL TRANSFORMATION statement so that I can let know what fieldnames my XSLT can expect, but then the question remains if the ZTEST transformation can read this out for my purpose.
CALL TRANSFORMATION ztest
PARAMETERS (gt_param)
SOURCE XML gt_itab
RESULT (gt_result_xml).
...knowing that gt_param can only by of type
ABAP_TRANS_PARMBIND_TAB (for specifying strings) or
ABAP_TRANS_OBJBIND_TAB (for specifying object references) or
ABAP_TRANS_PARM_OBJ_BIND_TAB (for specifying data references).
Thus, is it possible to make my TRANSFORMATION handling dynamic (by using PARAMETERS or something else)? If yes, does anybody know how. Examples are appreciated.
Mehmet MetinThis can be done with basic XSLT. Use the XPath expression '*' to apply a template to each child of a given node (for example, if a node represents an ABAP structure, its children represent its components). In the template, use the XPath-function 'local-name()' to retrieve the name of the current element without namespace. Now you should have everything you need for creating the result tree.
For a working example in our XI system, see the following template:
<xsl:template match="ZMEDI_MELDUNG_DET">
<xsl:element name="{SEGID_N}">
<xsl:element name='SEGID_N'>
<xsl:value-of select="*[position()=1]"/>
</xsl:element>
<xsl:for-each select="*[position()>1 and text() != '']">
<xsl:element name="{local-name()}">
<xsl:value-of select="."/>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
Here, I copy the components of the ABAP source structure ZMEDI_MELDUNG_DET (the structure name was fixed in my case, but it's easy to identify it without specifying its name, if it should be given at runtime only) into a result tree fragment with parent node name = the content of the ABAP component SEGID_N, the first child having the fixed name SEGID_N with (redundant) its value again, and after that all the components of the source structure, whatever they may be, if their content is non-empty (this was a format required by another non-SAP-development team).
Regards,
Rüdiger -
How to display multi-channel image in the 'proxy'?
There're many examples to show how to display composite channels in the 'proxy'. But I don't find any example to show how to display multi-channel image in the 'proxy'. I found that I can use PSPixelOverlay to display alpha channel data like this:
int nSpotChannel = gChannelCount - 4;
PSPixelOverlay* overlay = new PSPixelOverlay[nSpotChannel];
for(int i = 0; i < nSpotChannel; i++){
if( i != (nSpotChannel - 1) )
overlay[i].next = overlay + i + 1;
else
overlay[i].next = NULL;
overlay[i].data = gChannelData + (4 + i) * nPlaneBytes;
overlay[i].rowBytes = gProxyRect.Width() * gDocDesc->depth / 8;
overlay[i].colBytes = 1;
overlay[i].r = 230;
overlay[i].g = 161;
overlay[i].b = 174;
overlay[i].opacity = 255;
overlay[i].overlayAlgorithm = kStandardAlphaOverlay;
pixels.pixelOverlays = overlay;
Then, Seeing red part, it will trigger a new problem, that is how to get the color value of the alpha channel by plung-in itself? It seems that no channel color value info is in FilterRecord.
If you have other solution, please tell me. Many thanks!This is what I've been doing - was just curious if there was a way to see a more cohesive image.
If the individual EQ plugins are in fact the answer, is there any way to smooth how the Analyzer displays? The image I posted above, all of the tonal curves are very smooth. The analyzer tool shows a lot of peaks and valleys within the overall curve and it's hard to pinpoint each instrument's "sweet spot." Vocals for example are very hard to spot.
- Morgan -
In query display sales negative values
Hi Friends
Iam Exicuting query based on these selection parameters
Sales Org: 5360
cal Month/Year: 04.2007 to 04.2008
When am exucuting the query above parameters some values display negative values like
04.2007 month display -39
07.2007 month display -253
the key-fig is sales turnover Qty display negative values
in BW side cube also display negative values
why display the negative values
anybody help meCheck the Source where data is coming if it is negative value. If source has positive value, in Cube also it should be positive.
Whatever value you have in your infoprovider, it will display in query. -
How to make dynamic actions using Set Value work in all browsers?
I’m having a cross-browser incompatibility issue with dynamic actions using Set Value. The dynamic action works like a charm on Chrome but has no effect on either IE or Firefox. The code in oracle.apex.com and here are the credentials:
Workspace: DDBA
Username: [email protected]
Password: redtruck12
These code is on page 3 and here are the details:
There are two report lists (Standard and Special) and some of the reports require additional information supplied in either select lists or text boxes.
If the user selects a Standard report requiring a select list/text box, then the dynamic action sets the value of Special Reports to NULL (and vice-versa).
The dynamic action is to prevent a simultaneous selection of both the Standard and Special reports. To see how it works on Chrome, do this:
Run Page 3
Select the ‘Report for Search Criteria’ option from the Standard Report list. A ‘Search Criteria’ text box appears
Select the ‘Report by Release’ option from the Special Reports list. A select list appears and the ‘Search Criteria’ text box disappears.
If you do the same things on IE or Firefox, the text box does not disappear.Hi,
Things are going wrong with setting the item values to NULL. If you check your session state, you'll see that in chrome your items values indeed will be set to null, but in firefox they won't.
Also I've noticed that you don't reset the other input fields, so their values persist in the session state. Since you submit your page every time you change one of the report select lists, this might lead to unexpected behaviour. Lastly, I've noticed you use a sql exists expression to manage the display/hide of your page items. A condition of type "Value of expression 1 = expression 2" causes less overhead as you don't need to switch to the db sql engine for every item to validate.
I'd suggest you rethink your specs and try to create:
- One dynamic action (since a value of standard select excludes the value of special select, and vice versa)
- Set the values for hidden items to null, also in session state
- Use a refresh of region as extra event in your dynamic action, instead of submitting your page for every change.
Regards,
Vincent
http://vincentdeelen.blogspot.com
Maybe you are looking for
-
NULL and Unspecified in Dashboard prompts after upgrading 10g to 11g OBIEE
Hi All, We are working on OBI upgradation project from 10g to 11.1.1.6.5. We are facing one issue in Dashboard prompt level. If we can create Dashboard prompt on a column, its giving "NULL", "Unspecified" additionally. But, in 10g there are no extra
-
Installation problem with solaris 10
Hi While installing solaris 10 x86 I skipped the installation of solaris 2 of 3 CD . After than I installed solaris 3 of 3 CD. When the installation is completed I cannot find some important commands like vold & volume management commands. Now how ca
-
I'm overseas and need to sync my iphone with itunes but I don't have my computer. How can I sync it to my friends computer without losing my music and data?
-
could someone please tell me how to erase photos from the ipod? do they take up a lot of memory?
-
Insert statement with loop function
Hello all, I'm new with the loop function What need to do is to use a select statement with a condition This output needs to be inserted in a table The values of the condition are stored also in a table It will be something like this: BEGIN FOR i I