How to assign values to specific parts of a channel with VBS?
I need to change a continuous from one channel to a constant part, like a (30: 50) = 1 in MATLAB. It can be done with a loop, but with a very low speed. I tried for example ch (10:40:5) = 1 which does not work. And I can't think of a good keyword to search for in the help documents.
Hi reko,
If it's really just 30 values, then direct access to Channel.Values (i) will be quick plent. If it's much more values, and if you have them in another channel, you can use the DataBlCopy() command.
To find a selection of useful commands like this, go to the help system, click on the 'Content' tab, open the node 'Programming Reference', then the 'Thematic Programming Reference' node, then click on "working with data".
Brad Turpin
Tiara Product Support Engineer
National Instruments.
Tags: NI Software
Similar Questions
-
How to assign values to the application points to leave on a table
Hello
I have a FORM on a table with two or three elements. How to assign values to the elements of the application with the values in the elements of form, every time the value of the element is entry, change or page is sent?
I created a dynamic action to the region level with Event - change to run the suite of PL/SQL, I tried with 3 different ways in PL/SQL, as shown below, but it didn't work.
BEGIN
: APP_FY: =: P1_FY;
END;
BEGIN
APEX_UTIL. SET_SESSION_STATE ('APP_FY', v ('P1_FY'));
: APP_FY: =: P1_FY;
END;
BEGIN
APEX_UTIL. SET_SESSION_STATE ('APP_FY', v: P1_FY);
END;
Then I created an action dynamic at the ITEM level with change event to run the suite of PL/SQL and tried with PL/SQL, as shown below, but it didn't work.
I need to assign values to the elements of the request form as these elements of the application will be used in many other pages in the application. How to I get there?
Thank you.
If a dynamic action of PL/SQL execution, you must send your list of page elements in the parameter "Elements of Page to submit.
See the section 'run pl/sql' for this post.
If the page is submitted, the elements of the page will be automatically set to session state, and you can have a page process make the code you have.
-
How to assign values to the nested table and passes as a parameter for the procedure?
How to assign values to the nested table and passes as a parameter for the procedure?
Here are the object and its type
create or replace type test_object1 as an object
(
val1 varchar2 (50).
val2 varchar2 (50).
VARCHAR2 (50) val3
);
create or replace type test_type1 is table of the test_object1;
create or replace type test_object2 as an object
(
val1 varchar2 (50).
val2 varchar2 (50).
VARCHAR2 (50) val3
);
create or replace type test_type2 is table of the test_object2;
GRANT ALL ON test_object1 to PUBLIC;
GRANT ALL ON test_type1 to PUBLIC;
GRANT ALL ON test_object2 to PUBLIC;
GRANT ALL ON test_type2 to PUBLIC;
Here is the table object type:
create the table test_object_tpe
(
sl_num NUMBER,
Description VARCHAR2 (100),
main_val1 test_type1,
main_val2 test_type2
)
NESTED TABLE main_val1 STORE AS tot1
NESTED TABLE main_val2 STORE AS earlier2;
-----------------------------------------------------------------------------------------------------------
Here is the procedure that inserts values into the nested table:
PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
Description in VARCHAR2,
p_main_val1 IN test_type1,
p_main_val2 IN test_type2
)
IS
BEGIN
FOR rec in p_main_val1.first... p_main_val1. Last
LOOP
INSERT INTO xxdl.test_object_tpe
(
sl_num,
Description,
main_val1,
main_val2
)
VALUES
(
sl_num
description
test_type1 (test_object1)
p_main_val1 .val1 (CRE),
p_main_val1 .val2 (CRE),
p_main_val1 .val3 (rec)
)
)
test_type2 (test_object2 (p_main_val2 .val1 (CRE),
p_main_val2 .val2 (CRE),
p_main_val2 .val3 (rec)
)
)
);
END LOOP;
commit;
END INSERT_TEST_DATA;
-------------------------------------------------------------------------------------------
Here are the block anonymoys what values attributed to the object type and pass values in the procedure:
Set serveroutput on;
declare
p_sl_num NUMBER: = 1001;
p_description VARCHAR2 (50): = 'Test Val1;
inval1 test_type1: = test_type1();
inval2 test_type2: = test_type2();
Start
inval1 (1) .val1: = "testx1";
inval1 (1) .val2: = "testx2";
inval1 (1) .val3: = "testx3";
inval2 (1) .val1: = "testy1";
inval2 (1) .val2: = "testy2";
inval2 (1) .val3: = "testy3";
CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
Description = > p_description,
p_main_val1 = > inval1,
p_main_val2 = > inval2
);
end;
/
Someone can correct me.
Thank you
LavanThanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
>
How to assign values to the nested table and passes as a parameter for the procedure?
>
Well you do almost everything bad that could be hurt.Here is the code that works to insert data into your table (the procedure is not even necessary).
declare p_sl_num NUMBER := 1001; p_description VARCHAR2(50) := 'Testing Val1'; inval1 test_type1 := test_type1(); inval2 test_type2 := test_type2(); begin inval1.extend(); inval1(1) := test_object1('testx1', 'testx2', 'testx3'); inval2.extend(); inval2(1) := test_object2('testy1', 'testy2', 'testy3'); INSERT INTO test_object_tpe ( sl_num, description, main_val1, main_val2 ) VALUES (p_sl_num, p_description, inval1, inval2); commit; end; /
See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)
inval1(1).val1 := 'testx1';
Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element
inval1.extend();
And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
If you can not doinval1(1).val1 := 'testx1';
You must create an instance of 'test_object1 '.
inval1(1) := test_object1('testx1', 'testx2', 'testx3');
And so on for the other collection
You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.
-
Hi all
in the list of exceptions of cookies (Preferences-> privacy) I would need a search to a specific part of the name of cookie, which is < www.*.org & gt; < * research * of *. * > etc...
A perfect solution would deliver the use of wildcard characters. Too much!Such a solution is currently available?
Maybe like add-on?
Are there any ideas/plans established for future versions or?Thank you in advance, I appreciate your advice.
Best regards
KlausMaybe:
- CookieExFilter: https://addons.mozilla.org/firefox/addon/cookieexfilter/
-
I need to block sites internet chat specific for parental control, how?
Thank you
See block / unblock websites with parental control on Firefox
-
How to assign values in the first array 2D array
Hi in my 2D array, I would like to store the Sessions in the first table and identifiers reserved for these sessions in the second table. I want to accept three booking by session and there are altogether 4 sessions. And I want to name the session as "session1", "session2" and "session3" but I don't want to set the value of the user ID since they are going to be some user input. So I have this table 2D.
String [] [] booking = new reservation [4] [3];
How can I assign the first table (the part of session), with values session1... pleniere4 please? Hope that makes sense for you.
I tried
Reservation [0] = "session1". but it showed an error.
Thank you.Reservation [0] = "session1". but it showed an error.
Won't work because your table looks like this.
String[][] booking = new booking[4][3]; /* * booking[0][0] * booking[0][1] * booking[0][2] * * booking[1][0] * booking[1][1] * booking[1][2] * * booking[2][0] * booking[2][1] * booking[2][2] * * booking[3][0] * booking[3][1] * booking[3][2] */
If you use both indices to define each reservation
booking[0][0] = "session 1";
-
How to assign values to the current element where the cursor is?
Hi all
I have a block of "tabular" data, B_Emp (from the Employee table) and the other non-database & non tabular block consisting of a text_items B_Test.
'Emp_id' is one of the column in the Employee table and I want to attribute all the values of the Emp_id in all text_items of the B_Test in order, when you press a particular key.
Here's what I wrote in the trigger
Declare
i the number;
number of l_last_record;
next varchar2 (40); -to hold the values of cursor system of the next item in the block of B_Test
next_r varchar2 (40); -to hold the values of cursor system of the next record in the block of B_Emp
Begin
go_block ('B_Emp');
Set_Block_Property ('B_EMPLOYEES_ALL', DEFAULT_WHERE, "Emp_id is not null");
execute_query (no_validate);
last_record;
l_last_record: =: system.cursor_record;
premier_enregistrement;
next_r: =: SYSTEM. CURSOR_ITEM;
go_block ('B_Test');
Next: =: SYSTEM. CURSOR_ITEM;
because me in 1.l_last_record
Loop
go_item (Next);
: next: =: B_Emp.Emp_id;-here is the problem
next_item;
Next: =: SYSTEM. CURSOR_ITEM;
go_item (next_r);
next_record;
next_r: =: SYSTEM. CURSOR_ITEM;
WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
End loop;
End;
Now, this gives me the expected bad Bind Variable error as there is no block of data with the name "next".
However, I checked the value of 'next' and 'next_r' (message (' value = ' | next)) and I'm getting the expected values.
So if somewhere, I am able to put my value in the current item the cursor (because at the beginning of the loop, my cursor system is exactly to the text element where I need to insert the value) so I did not have to use this " : next: =: B_Emp.Emp_id;"
OR
If somewhere, I am able to return the items in my B_test block dynamically so I can simply use
Loop
": B_test." dynamic reference for the element ": = : B_Emp.Emp_id;
next_record;
WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
Please help me out of this!
Guy! I found a solution for the same thing.
We can use integrated a 'copy' to set the values of the element where currently is cursor system.
The syntax will be
Copy ((new_value): System.Cursor_Item); -where new_value is the variable that contains the data to be assigned.
In addition, we can assign the values from the system cursor to any variable.
The syntax will be '
new_value: =: System.Cursor_Value;
Thanks a lot guys for your help and concern
See you soon!
-
How to assign values to varaible without full page refresh
Hello
I am very very new to the development of the apex. I'd like to understand how I can get the suite in the form of the Apex,
I have a LOV (p2_dept) form with certain values. Depending on the value selected in lov, another control (textbox p3_dept_loc) must be made visible.
I use apex 4.1.1.00.23
Help, please.Use the dynamic Action.
based on changes in the LOV field (I assume it's a Select list), you can define visible any other section or region.
Following links should help.
http://St-curriculum.Oracle.com/OBE/DB/Apex/R40/apexdynactions/apexdynactions_ll.htm -
After insert trigger. How you assign value to variable?
Was wondering if I could get a little help please... I have no experience in PL\SQL... The underside of the trigger fires when inserting another table and this trigger adds lines to another table... When you try to assign "bdate" one value from another table, I can't compile trigger... The ORA-04084 getting when you try to compile... Can someone tell me what the problem is in the code please?
Thank you
Curtis
CREATE OR REPLACE TRIGGER "HKSM. "' CHILLPK_IAR ' AFTER
INSERT ON 'CHILLPACK' FOR EACH LINE
DECLARE
bdate SAPUPLOAD.mfgdate%TYPE;
BEGIN
IF: New.sku NOT IN ("REPRISE", "EMT") THEN
IF TO_CHAR (: new .adddate, 'HH24:MI:SS'), ' 04:00:00 ' THEN
-adddate = production, last updated date
: New.adddate: =: New.adddate-1;
END IF;
-bdate = mfgdate (date of slaughter of the inventory)
Mfgdate SELECT INTO bdate INVENTORY
WHERE RTRIM (containerkey) = RTRIM(:New.containerkey)
AND RTRIM (sku) = RTRIM(:New.sku);
INSERT INTO SAPUPLOAD)
SKU,
quantity,
WGT,
mfgdate,
PFLAG,
rtype,
containerId,
batchdate)
VALUES)
: New.sku,.
: New.traysproduced,.
: New.weightproduced,.
: New.adddate,.
NULL,
'CREATE ',.
: New.containerkey,.
bdate);
END IF;
END;user3954362 wrote:
Thanks for your reply... So why doesn't this work?Create or replace TRIGGER "HKSM. "' CHILLPK_IAR ' AFTER
INSERT ON 'CHILLPACK' FOR EACH LINE
DECLARE
bdate sapupload.mfgdate%TYPE;
BEGIN
If: New.sku not in ("REPRISE", "EMT") then
If to_char (: new .adddate, 'HH24:MI:SS')< '05:30:00'="">
bdate: =: New.adddate - 1;
On the other
bdate: =: New.adddate;
End If;
Insert into SAPUPLOAD
(sku qty, wgt, mfgdate, pflag, rtype, containerid, batchdate)
Values
(: New.sku,:New.traysproduced,:New.weightproduced,:New.adddate, null, 'CREATE',:New.containerkey, bdate);
End If;
End;Because you are not trying to change a new value that you were with this line in your original post:
:New.adddate := :New.adddate -1;
-
Hi all
I have a form that has text_field columns below, from the RECEIVED_FORM_15G table. This table is empty.
(1) CUST_CODE with 1 line item. (Number of items displayed = 1)
(2) ACCT_FD_NO with 10 line items. (Number of displayed items = 10)
There is more than 1 ACCT_FD_NO to 1 CUST_CODE.
When I enter the CUST_CODE and press tab, all ACCT_FD_NO values should appear. I take values in another table called KEC_FDACCT_MSTR ACCT_FD_NO
and in the ACCT_FD_NO, one under the other (topic). So I put in the following code:
BEGIN
PREMIER_ENREGISTREMENT;
FOR CUR_R IN (SELECT ACCT_FD_NO FROM KEC_FDACCT_MSTR WHERE STAUS = 'E' AND ACCT_CUST_CODE =: CUST_CODE)
LOOP
NEXT_RECORD;
: ACCT_FD_NO: = CUR_R.ACCT_FD_NO;
END LOOP;
END;
But the problem is that I'm not able to view the value captured in the next consecutive line items.
It appears in the first and second line item only.
The first value gets displayed in the first column, then the cursor moves to the first line item in the second line of command,
the second value is shown in the second line of billing, (it's because of NEXT_RECORD in my code)
more later all the values displayed in the second line item only. (I checked with message call.)
I want it to display one under the other.
The problem is that the cursor does not move to the third line item after the second line item.
If the remaining values gets displayed in the second line item only.
So what is the problem in my code?
Where should I put the next_record to move the cursor from one line to the next line item item IE the second line item to the third line item
& the third line item in the fourth line of billing and so on... Please let me know.
Thank you.
Is Oracle Designer 6i
Oracle 9i.
The above code is just...
The only error was in the palette property of CUST_CODE, 'required' was not set to 'Yes'.
So after the setting for the 'YES', this has worked perfectly well.
-
Hi all
I have a PCI-6221 NIC connected to a block of connection TBX-68. Once I found a drawing that shows me all the connections on my block of connection for each analog input tasks. I don't see this option now. Can someone describe to me how I can find this new?
-
How to assign variables itemrender in a global public variable of my application.
Hi friends,How to assign values to render internal elements in a global public variable. You can see example below.
List an itemrender, the itemrender breast I use the data grid. The dataGrid control have itemrender.now I tried the values to assign public variable in my application data grid itemrender, but is it from the error... How can I slove u this problem Any One can help me.
Example:
public var myData:arrayCollection;
< mx:List variableRowHeight = "true" dataChange = "validateNow ()" width = "900" id = "Lst_userlist" verticalScrollPolicy = "off" horizontalScrollPolicy = "off" "
buttonMode = "true" >
< mx:itemRenderer >
< fx:Component >
< mx:VBox paddingTop = "-5" horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >
< fx:Script >
<! [CDATA]
override public function set data(value:Object):void
{
-----------
}
[]] >
< / fx:Script >
< mx:VBox id = "vbox_grid" horizontalScrollPolicy = "off" verticalScrollPolicy = "off" width = paddingLeft '890' = "10" paddingTop = "5".backgroundColor = "#317152" color = "#FFFFFF" >
< mx:DataGrid visible = "false" includeInLayout = "false" height = "100%" id = "membershipGrid" alternatingItemColors = "[#DCDCDC, F8F8FF #]"."5" paddingLeft = horizontalScrollPolicy = "off" color = 'black '.
horizontalGridLines = "false" verticalScrollPolicy = 'auto' verticalGridLines = "false" rowHeight = "25".
borderSkin = "{null}" showHeaders = 'true' borderVisible = "false" dataProvider = "{data.dataCollection}" width = "900" > "
< mx:columns >
< mx:DataGridColumn width = "180" headerText = "Name" minWidth = "150" sortable = "true" wordWrap = "true" >
< mx:itemRenderer >
< fx:Component >
< mx:HBox horizontalScrollPolicy = "off" >
< fx:Script >
<! [CDATA]
override public function set data(value:Object):void
{
----------
}
function Click_Name (): void
{outerDocument.myData = data; Here the error came
}
[]] >
< / fx:Script >
< mx:Image id = "fileimg" buttonMode = "true" toolTip = "This is organization at the home page of the user" / >
< s:Label id = "lbl_Gridcloumn_name" width = "200" buttonMode = "true" textDecoration = "underline" click = "Click_Name ()" / > "
< / mx:HBox >
< / fx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >< / cloumn >
< / datagrid >
Error:
MyData property possibly access not defined through a reference with static type com.istmanagement.views:ProgramAcessRights_ComponentInnerClass3.
Thank you
Mamoudou R.
Have you tried outerDocument.outerDocument.myData?
-
How to assign the value to the application-level element
Hello
I'm learning to APEX. I use version 4.2.6.
My question is, I set a text field called 'FINANCIAL_YEAR' in the login page. I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.
Thank you
-Anand
anand_gp wrote:
Yes, I created a 'text area' under 'HTML' in the 'Home' page Who accepts the exercise of a table through LOV. I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application). To do this, I was intending to use "Shared components"-> "Elements of Application". I'm still not quite sure how it works.
Start by reading the documentation on elements of application.
Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.
On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.
Then, in the section of the Page processing, create a calculation:
Point Type: Application-level element
Calculate Item: Application: G_FINANCIAL_YEAR
Point calculation: After submit
Type of calculation: Value of the element
Calculation:
Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.
You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.
-
I spent over 2 hours trying to figure out how to replace a color on a part of my image with a specific color indicated on another part of the image. So far, I was able to go to "Replace color" on my version of Adobe Photoshop, but it seems that I can only change the hue and brightness of the color that it is currently. I need to use a specific color, so this didn't help me. Does anyone know how to complete the task that I refer to?
In addition, please keep in mind that I use Adobe Photoshop 6.0, not a fancy cs version or whatever it is. So it's fairly old school...
Any help/comments are greatly appreciated! Thank you.
Hello
In fact, you can choose a specific color using the replace color function!
Go to Image > adjustments >, replace color
Select the color you want to replace. Then, click on the 'Result' box in the section of replacement (see below)
A color picker dialog box opens, where you can use the eyedropper tool to select a specific color in your image, or you can enter the specific RGB/CMYK values.
Please post again if you have any other questions - I use CS6, but as far as I know, this process works the same for PS 6.0.
Good luck!
-
How can I search for a file that contains a specific part?
Hello
In Windows 7, how to search for files whose names have a specific part as "PART2"?Many thanks & best regards,
HumanWindows 7 search syntax to use would be:
name: ~ = part2
Maybe you are looking for
-
Vista and all applications of Toshiba on the recovery disk?
Hello everyone I have problem with recovery disk on my laptop.When I had formatted my HDD I lost my recovery and I can't return it.That is why I need order of Toshiba backup recovery, but I have a question about it. Could you please give me some info
-
Change the language of Windows XP.
Hi all I sell my laptop to a friend. My license is for an Italian version, but my friend is British. I would like to change the language of the OS and I appreciate this is not possible. My permit is authentic, I was wondering if Microsoft could chang
-
Help browser blackBerry Web Q10.
I have BlackBerry Q10 and Verizon is my ISP. Is there a way to set Google as the default search and not Bing? Thank you
-
Upated at 10 Windows now, Adobe Audition 3.0 wants an authorization code
Updated to Windows 10 - Adobe Audition 3.0 now wants an authorization code...Audition 3.0 ran fine under Win 7, but now it does not start without a permission - IDWhat assistance Adobe seems unable to provide. . suggested that our forumScreen displ
-
I have a lot of contacts in my Treo650. I would like to export these to the address book of my Mac to switch to an iphone. There was no information on Palm contacts right on Palm addresses. Even if I sync my Treo with the pal Office successfully, the