The queue function seems to replace the values
Hello
I work with a PCIe-1473 Framegrabber to get pictures of my build-up by 8192 pixels camera Basler.
When you play for the FPGA, I use a host DMA. After reading in a while loop, I put my vectors to pixels in a queue and I use a second while loop to process the data. I'll put my queue size to 10000 elements. After a while, it seems that the treatment does not work properly and I get a picture that is repeated, as shown in the included images. A person never had such a problem and if so any idea how to solve this problem?
Thank you much in advance.
Kind regards
Antonia
Tags: NI Software
Similar Questions
-
How to replace the value of a column in a table based on the value in the second column?
Hi, I would like to find in a table 2D for values that meet certain criteria (for example, a column< 0.98).="" based="" on="" which="" rows="" meet="" this="" criteria,="" i="" want="" to="" replace="" the="" values="" in="" a="" different="" column="" of="" the="" array="" (change="" to="" 'nan'="" so="" that="" the="" values="" will="" not="" be="" included="" in="" any="" calculations="" on="" that="" column,="" for="" example="" the="" finding="" the="" mean).="" i've="" attached="" a="" sample="" .csv="" file.="" if="" the="" values="" in="" column="" 3="" (index="" 2)="" are="" less="" than="" 0.980="" (or="" some="" other="" user="" defined="" value),="" then="" the="" value="" in="" column="" 2="" (index="" 1)="" should="" be="" replaced="" with="" nan.="" can="" someone="" help="" out="" with="" this="" search="" and="" replace="">
Thank you
Keith
(using LV 2009 SP1)
A few quick hits.
You can merge the two for loops
You have not need one of the constants 1 and 2 in the index table. They will solve automatically when you expand on the index picture, once you have wired to 0 in the column index.
It seems a lot of handling additional table spent unnecessarily.
See below. I did not try to duplicate your code to see how it actually works, but I believe that I have attached will give the same result with less steps.
-
Outlook Express 6 just ate the value of year of my emails. They seem to have disappeared. This happened after I was asked if I wanted compact (or was it archive?) my emails. All hope of recovery?
Thank you!
Please read this in its entirety. It includes the restoration of the trash.Two reasons the most common for what you describe is disruption of the compacting process, (never touch anything until it's finished), or bloated folders. More about that below.Why OE insists on compacting folders when I close it? :
http://www.insideoe.com/FAQs/why.htm#compact
Why mail disappears:
http://www.insideoe.com/problems/bugs.htm#mailgoneRecovery methods:If you are running XP/SP3, then you should have a backup of your dbx files in the Recycle Bin (or possibly the message store), copied as bak files.To restore a folder bak on the message store folder, first find the location of the message store.Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.In Windows XP, the .dbx files are by default marked as hidden. To view these files in the Solution Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder options | View.Close OE and in Windows Explorer, click on the dbx to the file missing or empty file, then drag it to the desktop. It can be deleted later once you have successfully restored the bak file. Minimize the message store.Open OE and, if the folder is missing, create a folder with the * exact * same name as the bak file you want to restore but without the .bak. For example: If the file is Saved.bak, the new folder should be named saved. Open the new folder, and then close OE. If the folder is there, but just empty, continue to the next step.First of all, check if there is a bak file already in the message. If there is, and you have removed the dbx file, go ahead and rename it in dbx.If it is not already in the message, open the trash and do a right-click on the file bak for the folder in question and click on restore. Open the message store up and replace the .bak by .dbx file extension. Close the message store and open OE. Messages must be in the folder.If messages are restored successfully, you can go ahead and delete the old dbx file that you moved to the desktop.
If you have not then bak copies of your dbx files in the Recycle Bin:DBXpress run in extract disc Mode is the best chance to recover messages:
http://www.oehelp.com/DBXpress/default.aspxAnd see:
http://www.oehelp.com/OETips.aspx#4A general warning to help avoid this in the future:Do not archive mail in default OE folders. They finally are damaged. Create your own folders defined by the user for mail storage and move your mail to them. Empty the deleted items folder regularly. Keep user created folders under 300 MB, and also empty as is possible to default folders.Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
http://www.oehelp.com/OETips.aspx#3And backup often.Outlook Express Quick Backup (OEQB Freeware)
http://www.oehelp.com/OEBackup/default.aspx -
Where to find information on the album in Media Player, I get the following message appears when I click on the button "Finish":
An error has occurred on this page of scriptOnline: 303Tank: 25Error: the value of the property 'btnfinish_onclick' is null or undefined, not a function objectCode: 0URL: HTTP://FAI.MUSIC.METASERVICES.MICROSOFT.COM/FAI/ALBUMMATCH.ASPX?LOCALE=409&GEOID=F4&VERSION=11.0.6002.18311&USERLOCALE=409Do you want to continue?By clicking 'Yes' or 'No' doesn't produce any action. Does 'Cancel' which is there for that.This feature works flawlessly for months and now I can't download the album or graphics information.Help, please. Thank you
original title: Windows Media Player Script errorI solved this on my machine after a few game.
When you arrive at the last stage of the search for album information, before you click on finish, click the small globe in the upper left corner of the dialog box. This refreshes the connection to the server. Click on finish, then it started working again.
Refresh a couple of times before that it worked but so far 2 of 2 machines working again on my other maching.
Hope this helps!
Thank you thank you. Sometimes, it takes "Refresh" several times but finally the player "seems" to calm down.
-
How to pass the value of an element in a function called by a procedure
Hello
I have a procedure named PROCEDURE AFFICHAGE_PLUVIO_VEILLE (sorry I don't know how to get in shape for the code):
{code: sql}create or replace PROCEDURE AFFICHAGE_PLUVIO_VEILLE AS
CURSOR curs1 is
Select the site, name, site_pluviometre clef_var
where EN_SERVICE = 'YES ';
number of stmt;
BEGIN
DELETE FROM PLUVIO_DATA;
for m loop curs1
stmt: = calc_pluvio (m.clef_var);
INSERT INTO pluvio_data values (m.clef_var, stmt);
end loop;
commit;
END AFFICHAGE_PLUVIO_VEILLE; {code}
This procedure calls a function:
{code: sql}create or replace function "CALC_PLUVIO" (station NUMBER)
return the number is the default number of 0 total.
BEGIN
WITH PRECIPITATION AS
(SELECT DATE1 RAINFALLDATE, VALUE
OF EVV_STPL
WHERE CLEF_VAR = station
AND TRUNC (DATE1) = TRUNC (sysdate-1))
SELECT SUM (TOTO) INTO CUMULATION
DE)
SELECT TRUNC (RAINFALLDATE) AS date,
VALUE,
(VALUE) AHEAD OF (TRUNC PARTITION (RAINFALLDATE)
ORDER BY RAINFALLDATE
) - VALUE AS TOTO
PRECIPITATION
)
WHERE TOTO > = 0
GROUP BY date;
DATE OF RETURN;
EXCEPTION
WHEN NO_DATA_FOUND THEN
TOTAL: = 0;
DATE OF RETURN;
END; {code}
You can see that the function uses 'sysdate-1' regarding the date. " In order to be more flexible with the date and to be able to use a date other than the date of the previous day, I would like to pass as a parameter to the function of the value of a page called P1_DATE.
But, how can I do? Function CALC_PLUVIO' is called by the stored procedure 'AFFICHAGE_PLUVIO_VEILLE of PROCEDURE' for which I can not transmit to any parameter as for example the P1_DATE element.
I use Application Express 5.0.1.00.06
Thank you for your help.
Chipniz wrote:
I have a procedure named AFFICHAGE_PLUVIO_VEILLE of PROCEDURE (sorry I don't know how to get in shape for the code):
Click on the link to the editor advanced usage in the top right of the edit box, select the code in the editor and choose the language desired from the syntax highlighting options in > toolbar button menu. (For SQL and PL/SQL code, use "SQL").
create or replace PROCEDURE AFFICHAGE_PLUVIO_VEILLE AS CURSOR curs1 is select site, nom, clef_var from site_pluviometre where EN_SERVICE = 'OUI'; stmt number; BEGIN DELETE FROM PLUVIO_DATA; for m in curs1 loop stmt := calc_pluvio (m.clef_var); INSERT INTO pluvio_data values (m.clef_var, stmt); end loop; commit; END AFFICHAGE_PLUVIO_VEILLE;
This procedure calls a function:
create or replace function "CALC_PLUVIO" (station in NUMBER) return number is cumul number default 0; BEGIN WITH RAINFALL AS (SELECT DATE1 RAINFALLDATE, VALEUR VALUE FROM EVV_STPL WHERE CLEF_VAR = station AND TRUNC (DATE1) = TRUNC (sysdate-1)) SELECT SUM (TOTO) INTO CUMUL FROM ( SELECT TRUNC (RAINFALLDATE) AS datte, VALUE, LEAD (VALUE) OVER ( PARTITION BY TRUNC (RAINFALLDATE) ORDER BY RAINFALLDATE ) - VALUE AS TOTO FROM RAINFALL ) WHERE TOTO >= 0 GROUP BY datte; RETURN CUMUL; EXCEPTION WHEN NO_DATA_FOUND THEN CUMUL := 0; RETURN CUMUL; END;
You can see that the function uses ' sysdate-1' regarding the date. " To be more flexible with the date and to be able to use a date other than the date of the previous day, I want to pass as a parameter to the function of the value of a page called P1_DATE.
But, how can I do? The CALC_PLUVIO function ' is called by the stored procedure 'AFFICHAGE_PLUVIO_VEILLE of PROCEDURE' for which I can not transmit to any parameter as for example the P1_DATE element.
What do you mean by "I can't pass any parameter"? That you cannot change the signatures of the procedure and function?
Passage of a parameter is the recommended approach. Including a default value will ensure that programs are backward compatible with existing code that does not it:
create or replace PROCEDURE AFFICHAGE_PLUVIO_VEILLE (p_rainfall_date in date default null) AS CURSOR curs1 is select site, nom, clef_var from site_pluviometre where EN_SERVICE = 'OUI'; stmt number; BEGIN DELETE FROM PLUVIO_DATA; for m in curs1 loop stmt := calc_pluvio (m.clef_var, p_rainfall_date); INSERT INTO pluvio_data values (m.clef_var, stmt); end loop; commit; END AFFICHAGE_PLUVIO_VEILLE;
create or replace function "CALC_PLUVIO" (station in NUMBER, p_rainfall_date in date default null) return number is cumul number default 0; rainfall_date date; BEGIN rainfall_date := trunc(coalesce(p_rainfall_date, sysdate-1)); WITH RAINFALL AS (SELECT DATE1 RAINFALLDATE, VALEUR VALUE FROM EVV_STPL WHERE CLEF_VAR = station AND TRUNC (DATE1) = calc_pluvio.rainfall_date) SELECT SUM (TOTO) INTO CUMUL FROM ( SELECT TRUNC (RAINFALLDATE) AS datte, VALUE, LEAD (VALUE) OVER ( PARTITION BY TRUNC (RAINFALLDATE) ORDER BY RAINFALLDATE ) - VALUE AS TOTO FROM RAINFALL ) WHERE TOTO >= 0 GROUP BY datte; RETURN CUMUL; EXCEPTION WHEN NO_DATA_FOUND THEN CUMUL := 0; RETURN CUMUL; END;
This code can be called APEX by:
AFFICHAGE_PLUVIO_VEILLE(p_rainfall_date => to_date(:p1_date, 'DD-MON-YYYY')); -- change format mask to that used in the P1_DATE item
Moreover, if the P1_DATE element is the only possible source of another value on the date of the rain, then the value can be referenced directly in the function:
create or replace function "CALC_PLUVIO" (station in NUMBER) return number is cumul number default 0; rainfall_date date; BEGIN rainfall_date := trunc(coalesce(v('P1_DATE'), sysdate-1)); WITH RAINFALL AS (SELECT DATE1 RAINFALLDATE, VALEUR VALUE FROM EVV_STPL WHERE CLEF_VAR = station AND TRUNC (DATE1) = calc_pluvio.rainfall_date) SELECT SUM (TOTO) INTO CUMUL FROM ( SELECT TRUNC (RAINFALLDATE) AS datte, VALUE, LEAD (VALUE) OVER ( PARTITION BY TRUNC (RAINFALLDATE) ORDER BY RAINFALLDATE ) - VALUE AS TOTO FROM RAINFALL ) WHERE TOTO >= 0 GROUP BY datte; RETURN CUMUL; EXCEPTION WHEN NO_DATA_FOUND THEN CUMUL := 0; RETURN CUMUL; END;
-
Hello
I use APEX 4.2.5.00.08 to my app.
I have a region of reports, where I display a column set. A column is the column attribute "display as" the value 'Popup LOV (LOV based query).
I press the button to retrieve the LOV, I get a popup of 450 x 400 pixels.
I go to the side of the model and navigate to "Popup list of values of model", where I can see in the section 'Window' attributes 'Width' and 'Height' value 450 and 400. I edit them and save them and there is nothing going on. I'm sure that the template belongs to my selected theme.
I saw in the HTML source code that is the called function:
<!--
function genList0_f07_$ _row)
{
w = open ("wwv_flow_utilities.gen_popup_list" +)
« ? p_filter ="+
"& p_name = ' + escape ('f07') +.
' & p_element_index = ' + escape ('0') +.
' & p_elem_id = ' + escape ('f07_0000').
' & p_form_index = ' + escape ('0') +.
' & p_max_elements = ' + escape ("") +.
' & p_escape_html = ' + escape ("") +.
' & p_ok_to_query = ' + escape ('YES').
' & p_flow_id = ' + escape ('114') +.
' & p_page_id = ' + escape ('100201') +.
' & p_session_id = ' + escape ('16021544706004').
' & p_eval_value = ' + escape ("") +.
' & p_translation = ' + escape ('NO') +.
' & p_lov = ' +.
' & p_lov_checksum = ' +.
' & p_item_id = ' + escape('-683997768') +.
' & p_column_id = ' + escape ('25022622060292812'),
"winLov,"
"Scrollbars = 1, resizable = 1, width =400, height =450"); "
If (w.opener is nothing)
w.opener = auto;
w.Focus ();
}
->I see that the values has not changed. I also connected and disconnected. I am inclined to believe that it is a bug of the APEX.
The only solution I think is to replace this function, which is NOT ideal.
Thank you
Digital
The parameters are generated only, nothing you can do about it because it does not use the model for these properties of the couple. Other things work fine for example the names of button or title window etc. I guess that, Yes, it is a bug. It's still there in the apex 5 too, I checked. The default values of the template do not match, the value in the generated code is always 400/450. So I guess it's pretty much a wait on 5.1.
Here's a fun hack to make it work well on your page (works in apex 5 too, because the code is always the same). Put this in the execute on loading of the page section:
(function(){ var _open = window.open; window.open = function(){ if ( arguments[1] === "winLov" ) { arguments[2] = "Scrollbars=1,resizable=1,width=500,height=700"; }; return _open.apply(window, arguments); }; })();
Change the settings to your liking. This will replace the existing window.open call, which is what the popup lov use and replace it with our own code. It does not interfere with other things. As the name of the new window is always "winLov" for the popup lov, it is the argument that is checked.
During the call to window.open to open a new window with the name "winLov", parameters are replaced with your own version of it. The window is called as usual, using the stored reference.
Edit:
Yes, do not use the trick of resizing. My hack can be a bit tedious, but it's much less invasive for the end user (see open, bam, resize. "Even gets funky on multiple monitors). Also, this thing in the popup lov template will affect each lov popup that you use in the application, which is much less interesting than my specific page code.
Edit2:
I did a little digging in the source code, and I don't know why it does not work. Popup lovs are actually equipped to deal with it. My guess is that the parameters are recovered only after that the lists were generated, causing the package variables global to use their default values instead of model parameters.
-
Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.
CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE
(
in_schema IN VARCHAR2,
in_tablename IN VARCHAR2,
in_datefield IN VARCHAR2,
)
RETURNS INTEGER
AS
-Declaring variables
v_is_true INTEGER.
BEGIN
SELECT
CASE
WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)
THEN 1
ON THE OTHER
0
END
IN
v_is_true
Of
in_schema.in_tablename
;
RETURN v_is_true;
END;
/
When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist
How to use the values of the input variables on the table select statement names?
Hello
Here's a way you can use dynamic SQL statements for this task:
CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE
(
in_schema IN VARCHAR2,
in_tablename IN VARCHAR2,
in_datefield IN VARCHAR2,
in_first_date DATE DEFAULT SYSDATE - 1,.
in_last_date DATE by DEFAULT NULL
)
RETURNS INTEGER
AS
-IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield
-contains all the dates in the in_first_date of the range through included in_last_date
- and it returns 0 if there is no such lines.
-If in_last_date is omitted, the search only the data on in_first_date.
-If in_first_date is omitted, it defaults to yesterday.
-Time parts of the in_first_date and in_last_date are ignored.
-Declaring variables
sql_txt VARCHAR2 (1000);
v_is_true INTEGER.
BEGIN
sql_txt: = 'SELECT COUNT (*).
|| 'FROM ' | in_schema | '.' || in_tablename
|| 'WHERE ' | in_datefield | ' > =: d1'
|| «AND» | in_datefield | '< > >
|| 'AND ROWNUM = 1';
dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE"); -For debugging
Sql_txt EXECUTE IMMEDIATE
IN v_is_true
With the HELP of TRUNC (in_first_date) - d1
TRUNC (NVL (in_last_date
in_first_date
)
) + 1 -- d2
;
RETURN v_is_true;
END is_ydaydata_to_table;
/
DISPLAY ERRORS
If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above. In this way, you can easily see exactly what will be executed. Comment out the call to dbms_output under test is completed.
Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future. For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days. The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).
-
How can I replace the value of the column with a particular value in SQL
Hi all
Is someone can you please tell me how can I format my output with the replacement of a column value with a specific value that really depends on the current value of the column
I am executing the following SQL statement
Select state, count (id) from < table_name > where composite_dn = < composite_dn_name > Group by State;
My current performance is:
State Instance number
1 3
3 28
I want to replace the value in the State column as follows
No.OfInstances State
3 filled
28 faulted
I want '1' to be reppaced of 'Done' and '3' is replaced by 'Faulted. '
Is is possible with SQL or PL/SQL, if it is then how I can achieve this required. Help, please!
Thanks in advance!
Published by: Roshni Shankar on October 27, 2012 12:38 AMHi Claude,.
I guess this CASE clause can be simulated by a DECODE and also it is very easy to use.
See - http://www.techonthenet.com/oracle/functions/decode.phpselect decode(t1.state,t2.state_id,t2.state_name), t1.count_id from
t2, (select state,count(id) count_id from where composite_dn= group by state) t1 where t1.state = t2.state_id; HTH
Vanessa B.Published by: Vanessa B on October 27, 2012 14:02
-link addedPublished by: Vanessa B on October 27, 2012 14:19
-added code sample -
function to set a default value for a column that is defined by the user
Hi all
Can use us the user-defined function to set a default value for a column?
for example:
Thank youcreate or replace function test1 return number is begin return 10; end; create table testt (id as test1, name varchar2(20)); error: ORA-02000: missing ( keyword
AshwaniAshwani says:
Can use us the user-defined function to set a default value for a column?
N °
A trigger (this function call) can be used to implement such a feature.
-
Search and replace values in the text field before the values are stored in DB
Hello
There is a question - answer and text box text field - in my application. Problem is, some of the answers are stored with the apostrophes to the DB and I have a problem while recovering in the DB. I need to replace the single quotes 1 with 2 apostrophes. The values are stored in the DB when you click on the submit button.
So, I'm using the following javascript code:
italics
< script type = "text/javascript" >
function test().
{
var str = "& P2_S1.";
document. Write (Escape (STR));
}
< /script >
italics
I need to call this javascript function, when the user clicks on the button submit, but BEFORE the values are stored in the DB. How can I get this done?
Please let me know.Hi Suzi,
Just use
begin update test set S1=replace(:P2_S1, '''', '''''') where name=:APP_USER; end;
as you did in your SELECT statement.
But I shake also why you want to do? Where do you have problems with the apostrophe?
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
Creating a function and passing the value of the query
I have what I thought, it was a pretty easy to resolve the situation: I want to concatenate two fields of the query, if the 2nd is not empty.
I created a function:
< name cfargument = "q1" value = "#query.q1 #" / > "
< name cfargument = "q1a' value =' #query.q1a #" / > "
< CFSET variables.myPunct = ":" > "
< cfset variables. ResultVar = "" >
< cfif QNE Trim (arguments.q1) "" > "".
< cfset variables. ResultVar =' #arguments.q1 # ">"
< / cfif >
< cfif QNE Trim (arguments.q1a) "" > "".
< cfif variable. ResultVar NEQ "" > "".
< cfset variables. ResultVar ='#variables. ResultVar & variables.myPunct # ">"
< / cfif >
< cfset variables. ResultVar ='#variables. ResultVar & arguments.q1a # ">"
< / cfif >
< variable cfreturn. ResultVar >
It's basically just the example they provide in online education, with the names have been changed.
In the strip of the details of my report, I have an expression builder containing field: report.mytestfunction)
When I run the present, I get: Q1 element is not defined in the ARGUMENTS.
I tried this ninety different ways (literally). It seems very clear to me that the query.q1 (Incidentally, none of the results of the query) are NOT passed to the function. I tried to make the expression: report.mytestfunction (query.q1). I tried to create an input parameter.
The documentation on this is ridiculously limited, given that the ability to implement conditional logic is entirely dependent on the 'function', I can say. I can in no way to get the function of interface with the query results. If the value fixed values in the service, rather than trying to use query variables, it shows very well.
Any ideas?Have you tried to remove the attribute "value" of your cfargument tag? The way I see it, you should have:
... rest of function...
And then you have to call it with: report.mytestfunction (query.q1, query.q1a)
-
How to pass the value entered for the parameter IN a function
Hello
I'm new to pl/sql programming.
The function below is used inside a package and the package is called in visual studio.
The function uses the input parameters 2.
Out what "in_report_parameter_id" value comes through the application of service job processor.
The second IN the parameter values are hard coded into the function.
I am not able to understand this.
If the values are hard coded, how to ensure that only the hard coded values are the right ones?
Please could someone explain?
I don't really have good idea on how to move the INPUT parameter to the function or procedure
Is there any nice document that could give me good understanding about what are the ways or types we could transmit values to the input in the subprogrammes parameter?
Thanks in advance.
Published by: user10641405 on November 19, 2009 08:16CREATE OR REPLACE FUNCTION get_class_text_str ( in_report_parameter_id IN NUMBER, in_which IN VARCHAR2 DEFAULT 'SELECT' ) RETURN VARCHAR2 IS end_text VARCHAR2 (50) := ''; my_class_text_str VARCHAR2(10000) := ''; my_class_value_str VARCHAR2(10000) := ''; CURSOR class_text(c_1_text VARCHAR2, c_2_text VARCHAR2) IS SELECT c_1_text || report_parameters.report_parameter_value || c_2_text || report_parameters.report_parameter_value || '" ' FROM report_parameters WHERE report_parameters.report_parameter_id = 3690 AND report_parameters.report_parameter_group = 'CLASS' AND report_parameters.report_parameter_name = 'CLASS' GROUP BY report_parameters.report_parameter_value ORDER BY CAST(report_parameters.report_parameter_value AS NUMBER); BEGIN IF (in_which = 'SUM') THEN OPEN class_text ( 'SUM(NVL("Class ', '", 0)) "Class ' ); ELSIF (in_which = 'PERC')THEN OPEN class_text ( 'ROUND((("Class ', '" / "Total") * 100), 2) "Class ' ); end_text := ', DECODE("Total", -1, 0, 100) "Total" '; ELSE OPEN class_text ( 'SUM(DECODE(bin_id, ', ', bin_value, 0)) "Class ' ); END IF; LOOP FETCH class_text INTO my_class_value_str; EXIT WHEN class_text%NOTFOUND; my_class_text_str := my_class_text_str || ', ' || my_class_value_str; END LOOP; CLOSE class_text; my_class_text_str := my_class_text_str || end_text; RETURN my_class_text_str; END get_class_text_str; /
Published by: user10641405 on November 19, 2009 08:30This is not a conception I would use, but should work if coded correctly. I would probably create a reference text cursor query and use a fetch of open and close.
You have 2 input parameters, in_report_parameter_id and in_which. I could not find where in_report_parameter_id has been used in the program, but the value passed to in_which is used in the logic of the FI to decide on opening the cursor. After the cursor is opened lines are to be read and possibly the cursor is closed.
The in_which values are compared to the are hard-coded. It is the programming interface to ensure that the values are the values and the measures taken are also correct. Your program is assuming that if the first 2 values are not met the third listed is the one you want.
To pass values of entry in a procedure you simply provide the values as a literal or something like variable in the call,
whatever := get_class_text_str(1,'SELECT');
-
JavaScript function to exchange the values of two text entry fields
Hello
I am a beginner APEX with the first application of the APEX. This app has a 22 page to enter data for a graph edge. There are two P22_LINK_NODE_A, P22_LINK_NODE_B text input fields.
Sometimes it is necessary to toggle (swap) the values of these two areas.
To do this, I added a button 'toggle_A_B' HTML and a Javascript function.
But... it does what it is supposed to make :(
By clicking on the button seems to send the page to the server, although this should not be the case... and the values of the fields P22_LINK_NODE_A, P22_LINK_NODE_B do not change.
I didn't expect that everything goes right on the client side.
Is it normal that the browser is trying to send the page?
Do I need to implement something on the side Server? (process, branches,...)
The "toggle_A_B" a button attribute HTML button: onclick = "toggleNodes (); »
Redirect Optioanl of the button is set to "no target". (behavior is the same with "redirecting to page 22")
In the "HTML Header" page, there is the following Javascript function (which works find in a non-Oracle-APEX HTML page).
< script type = "text/javascript" language = "JavaScript" >
function toggleNodes() {}
var x = document.getElementById("P22_LINK_NODE_A").value;
var y = document.getElementById("P22_LINK_NODE_B").value;
document.getElementById("P22_LINK_NODE_B").value = x;
document.getElementById("P22_LINK_NODE_A").value = y;
}
< /script >
There is a post on the forum with a similar topic, maybe I should also use this approach to ($s)?
Kind regards
RomanRoman:
Set the target URL of the Html button
JavaScript:toggleNodes();
CITY
-
How ro read the value of a selectOneRadio in a Javascript function?
I have a selectOneRadio, and when I change its value I need this value to something in a javascript function.
I need the value real (ONE, TWO or ALL) to this function, but it seems that I only get the index of the selected radioButton (0,1, or 2)
Here is my Page source:
< af:selectOneRadio id = "typeRadio" label = "Type".
clientComponent = 'true '.
autoSubmit = 'true '.
Binding = "#{bean." TypeRadio}.
value = "#{bean." Type} ".
valueChangeListener = "#{bean.typeChanged}" >
< af:selectItem label = "First choice" value = "ONE" / >
< af:selectItem label = "Second choice" value = "TWO" / >
< af:selectItem label = 'All' value = 'ALL' / >
< af:clientListener method = "setType" type = "valueChange" / >
< / af:selectOneRadio >
Here's my js function;
function setType (evt)
{
typeComp var = evt.getSource () .findComponent ('typeRadio');
If (typeComp! = null) {}
alert ('type =' + typeComp.getValue ());
type = compType.getValue ());
do other measures and calculations
}
}
The warning in bold shows me 0, 1 or 2 and not ONE, TWO or ALL.
Am I missing something?Hello
the selectOneChoice has a property "valuePassThrough". This true value
Frank
-
Replace a value to the last value that
Hi all.
I'm a LabVIEW' relatively new er and I have a problem that perhaps for some people is easy to solve.
I need to replace a value in a table when it exceeds a given threshold it replaces the value exceeded with the last natural not to exceed value. Make sense?
I try to integrate a case Structure and so far I think I got right with the situaiton TRUE but I need help with the WRONG situation.
Thank you!
Maybe you are looking for
-
What version of Mac OS x that I can for my old iMac
I have an old iMac with OSX 10.5.8 on it (iMac, 5, 1). I bought Toast 11 Titanium because I thought that I could use it to burn blu ray my home video HD discs, but on opening, I found I need to buy a HD/BD extra plug for it. However, he told me the
-
I have many (50 +) files in my email to contain messages from different organizations and individuals with which I match. I copy most of my incoming emails to these folders to archive my mail to the sender. In some cases, I would also like to put cop
-
Pavilion G6: Wifi adapter upgrade Windows 10 questions
I tried seriously to all solutions possible and still nothing. Not only the solution that has been proposed to this topic on the forum like many others in other Web sites, as in the windows and mediatek/ralink and same forum forum on youtube and sti
-
After a computer crash, I reinstalled Windows XP, but Windows Media Player does not work. I don't have reinstall all disks. Will install tools software system Dell, Sonic RecordNow, Sound Blaster Live, or CyberLink Power DVD play cd possible? Thank y
-
I can not start the print spooler as it says that the following file is missing. C:\WINDOWS\system32\spoolsv.exe. How can I download it?