By passing the values to and from Excel
All,
I'm building a program to collect data of a group of gauge via RS232. One of the requirements of the program is to have the user to tell the program which sample they are on where their samples are not in order. I also need to check my Excel sheet if this sample has already been tested. Some of my code in a module looks like this:
Function HasSampleBeenTested(dblSample As Double, strSG As String) As Boolean
"Learn if the test sample has been tested.
HasSampleBeenTested = False
Range ("B14"). Select
"First of all, find the number of sample group
Until ActiveCell.Value = «»
If ActiveCell.Value = strSG Then
ActiveCell.Offset (0, - 1). Select
Exit Do
On the other
ActiveCell.Offset (1, 0). Select
End If
Loop
"Then look for the real sample.
Until ActiveCell.Value = «»
If ActiveCell.Value = ActiveCell.Offset (0, 1) and strSample. Value = strSG Then
HasSampleBeenTested = True
Exit Do
On the other
ActiveCell.Offset (1, 0). Select
End If
Loop
End Function
I also have a diagram that is connected to this exact instance of Excel, but I'm not sure I know how to wire my type (Boolean) in and out data like a Boolean value by the variation of data VI.
If the variant data type is a Boolean value, then what you need to do is to wire a Boolean constant (its value is irrelevant) to the variant to the data to convert the variant to a Boolean type.
: Note "Sample #" and "Previous Sample" supposed to be integer values? If so, you should do the data instead of DBL I32 type. If the value is really floating point, then you should NOT use a function equal to compare floats. Do a search on this topic (by comparing the floats).
In addition, no particular reason why you use a local variable to 'Raw Data Report' instead of a thread?
Tags: NI Software
Similar Questions
-
Call AJAX process and pass the value on request
Hello
I want to call a process on demand by a button. So I added the following for her javascript code:
function update_bp1()
{
Alert ('hhhhi');
Alert (document.getElementById('P11_PATIENTID').value);
var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is update_bp', 0);
ajaxRequest.add ('patient_id1', document.getElementById('P11_PATIENTID').value);
ajaxResult = ajaxRequest.get ();
Alert (ajaxResult);
}
< /script >
The called application process is:
declare
number of v_id;
number of v_visitno;
v_patientid varchar2 (10);
BEGIN
Select max (id), max (VISITNO)
in v_id, v_visitno
of TBL_PATIENT
where PATIENTID =: patient_id1;
Update TBL_PATIENT
the SYSTOLIC value = 10,
DIASTOLIC = 20
where id = v_id
and visitno = v_visitno
and patientid =: patient_id1;
commit;
HTP. PRN ('process value'-|: patient_id1);
end;
It seems there is error in the ajaxrequest.add clause, as after commenting on the function is executed. Alert print correctly the value P11_PATIENTID.
The alert of the ajaxresult gives the complete HTML code and the process is not running. How interpreet ajaxresult error.
Please help me to identify the problem.
Thank youHello
I think that it is not relative browser, but Firefox with the module Firebug is just a better tool for web developer.
It is easier to debug problems you have now.Is the point of application patient_id1? You need also to pass the value to the application process?
If you don't need it another vise, it is better to use variables global apex_applicationTry this
JavaScript for HTML page headerThen, create the new process On demand application named UPDATE_PATIENT. Please note that the name of this process is case sensitive.
DECLARE v_id NUMBER; v_visitno NUMBER; v_patientid VARCHAR2(10); v_count NUMBER; BEGIN SELECT MAX(id), MAX(visitno) INTO v_id, v_visitno FROM tbl_patient WHERE patientid = apex_application.g_x01 ; UPDATE tbl_patient SET systolic = 10, diastolic = 20 WHERE id = v_id AND visitno = v_visitno AND patientid = apex_application.g_x01 ; v_count := SQL%ROWCOUNT; COMMIT; htp.prn(v_count || ' rows updated'); EXCEPTION WHEN NO_DATA_FOUND THEN htp.prn('error: patientid ' || apex_application.g_x01 || ' not exists in tbl_patient'); WHEN OTHERS THEN htp.prn('error: ' || sqlerrm); END;
Kind regards
Jari -
Passing the value from one page to the other page
Hi gurus,
I need to pass the value from one page to the other page and two pages use different AMs.
In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.
can someone help me on this?
Thank you
Vincent.
Published by: user4933347 on December 4, 2009 12:19 AMYou can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.
Try:
pageContext.putParameter ("Parameter1", value1);
pagecontext.setForwardURL (second page)Concerning
Sumit -
I have my old laptop work, admin access, and I need to pass the parameters of language from German to English, especially the menus. Can you please indicate.
A.I have changed the time zone.
But I can't understand how to move to the menus in ENGLISH and the keyboard settings. They are in German. Need urgent help
The system is running on Windows XP Professional
Thank you for your help in advance.
(Yes the multi language pack is somewhere on the laptop... where I'm not sure)
Hello
1. - you want to say that you have an administrator access on this computer?
2. What is the operating system default language when the laptop was purchased?
If the default language is German so it is not possible to change it to English.
Reference: to change the language used for menus and dialog boxes
-
How to pass the value of the element from one form to another form?
Hi all
I need your help to complete this task.
I have a form page named reserve form.i have some five fields selection list in the form of reserve, after I chose the first value from the selection list, I create a button in the form of reserve, when I click on the button create, it will open another form page named set form in this form page , I have a field selected, the list of values in configure the form depends on the values selected as a reserve, it means that I have to change the value of page of a form to another form.
Please suggest a solution, how to pass the value?
Thank you
Robette.Check out the button create on Page 8.
In the Action when the button is clicked, the configuration is
The value of these P35_IT_PRODUCT
With these values & P8_IT_PRODUCT.Kind regards
-
Hello.. I'm creating an application of streaming, in which I have a list field in a screen like this...
1
--------
2
--------
3
--------
and when the item 1 is selected means a url must be passed to the video player...
I created the list field screen in a package and a video player in other package... but I do not know how to pass the value of the field from the list to the player... Help, please... its URGENT...
You can get the index selected by the listname.getSelectedIndex () method and compare that value with Vector data (data store URL) .that you will give a correct value from the URL and pass it.
-
Passing the value of the SQL query select list
Hello
In my application users have in their homepage to a region which has two simple things, a part of LIST SLECT lov function and a BUTTON
There is also another page which has a normal life to report which shows the employees.
Homepage the user can select certain number of Department in its 'SLECT-LIST' and click 'open '.
For example: If the user has selected a DEP_NUM_5 and click on the BUTTON it will be redirected to the page of a report and gets only showed the employees belonging to the Department 5.
The report page contains a simple SQL query, and I understand that somehow I must pass the value in the SELECT LIST, where I now have the '?
How can I do this, where should I start?
Of course I would really appreciate an example of code, if anyone has time to do a.
select "EMP_ID", "EMP_FORNAME", "EMP_SURNAME", "DEP_NUMBER" from EMP E where E.DEP_NUMBER = ????????
Hi Sozua,
1. create an item hidden on the page where you have the report.
I say P2_DEPT_NO
2 assign to that in your sql query
select "EMP_ID", "EMP_FORNAME", "EMP_SURNAME", "DEP_NUMBER" from EMP E where E.DEP_NUMBER = :P2_DEPT_NO
below the area source ther is also an option
Elements of page to submit-> put this element in this.
for example;
Page to submit items: P2_DEPT_NO
3. change your button
Action: Redirecting to page of this application
Page: 2 / / assuming that page 2 is the report page
Place these items: P2_DEPT_NO
with these values: & P1_SELECT_LIST. assuming that selection list is on page 1
Hope this helps you,
Kind regards
Jitendra
-
Dynamically by passing the values in the columns
Hi all
I'm trying a pl/sql block that take a string and execute it dynamically. Suppose that here is the string
M_COL: = Q' [(Code_P = > ': DEPTNO', P_CODE_TYPE = > "ÉTAT")]';
Now try to run. using below
M_STR: = 'SELECT CHK_DEPT ' | M_COL | ' FROM EMP WHERE EMPNO = "7499" ';
RUN IMMEDIATELY M_STR
IN M_DATE;
Now what I want is M_STR vairable executed as
SELECT CHK_DEPT (Code_P = > DEPTNO, P_CODE_TYPE = > 'STATE') FROM EMP WHERE EMPNO = '7499'
Instead of
SELECT CHK_DEPT (Code_P = > 'DEPTNO', P_CODE_TYPE = > 'STATE') FROM EMP WHERE EMPNO = '7499'
another other way in the Code_P column DEPTNO value parameter must be passed. Also note that the DEPTNO column in the M_COL string is Dynamic.i.e
M_COL: = Q' [(Code_P = > ': DEPTID', P_CODE_TYPE = > "ÉTAT")]'; OR
M_COL: = Q' [(Code_P = > ': EMP_ID', P_CODE_TYPE = > "ÉTAT")]';
Any suggestions, please share with me.
And also, please don't bother much about the data and the output of function. If I get a way to pass the value of the column in function, my problem is solved.
-
Pass the value in the search on an interactive report string
Hello
I have a report interactive (page 2) page which I navigate from a main navigation page that contains a text box (: P1_PART_NO) and a button (which has details of the branch).
Can someone tell me how to pass the value of: box at the top of the interactive report of P1_PART_NO in research and have the results filtered as a result that the page is loaded.
I use apex v4.0
Thanks in advance,
ChrisIf you google
put Apex ir report
You should get some answersGus
-
Passing the value of the element of a page to the other
I have the following requirements.
Page 1: Register Username (form)
-Insert the user name in A Table
-Redirect to the new page
Page 2: Collect modules (form)
-Insert the info collected in table B
-User name of Page 1 is the primary key
My problem:
I can't understand how to use the value of the username (Item1) from Page 1 to Page 2.
What I tried:
(A) Item2 created in Page 2
-After that treatment direction Page 1 value with the value of Item1 Item2
-no value not transferred (failure)
(B) source edited Item2 on Page 2 for:
-Used: Always, replacing an existing value in session state
-Type: point
-Session State: per session
-Value of source: P1_ITEM1
& Several combinations of the two
My question:
Passing a value of item from a page to another seems to be a relatively basic operation.
Am I trying to do something that APEX isn't designed to handle?
Is there a practical way more traditional or better to deal with these issues?
Any comments I can get would be great
Thank you
Dan
Published by: 903485 on December 20, 2011 06:26If the value of the item has been saved in session state (it is generally except if you explicitly Apex to not save the value in session state), then you can reference any element in your application to any other page or another process. So in other words you have a process on page 2 that runs before your page content (FRONT header, AFTER the header or BEFORE REGIONS) that does something like this:
:P2_ITEM := :P1_ITEM;
If you do that, then should have recorded the value on your other section of the page. This can also be done with calculations. It can also be done with the attribute of the SOURCE of your page, article, and there is probably some other ways to do it as well. One of these should be able to meet your need. Good luck.
Earl
-
How to pass the value of the variable record type in the procedure
Hai All
My Question is
I have a table named Emp and the structure
ID Varchar2 (25)
Name varchar2 (25)
Number of salary
And now, I created a folder named Rec_Emp
Like this
Type Rec_emp is made
(Rec_Id varchar2 (25),)
rec_name varchar2 (25).
Number of Rec_salary);
rec_emp emp_record;
I created a SQL type
Now how to pass the value type in the procedure
Thanks and greetings
SrikkanthMYou are looking for something like this
create table my_emp (id integer, name varchar2(100), sal number) / create type my_emp_obj as object(id integer, name varchar2(100), sal number) / create or replace procedure insert_into_my_emp(pEmp_Obj in my_emp_obj) as begin insert into my_emp (id, name, sal) values(pEmp_obj.id, pEmp_Obj.name, pEmp_obj.sal); end; / begin insert_into_my_emp(my_emp_obj(1,'karthick',1000)); end; / select * from my_emp /
-
passing the value of the table to the point
Hi guys,.
I have a question about flash cards. I created a Flash (3D Pie) chart and an element. At present the 'link' of this table column is NULL, but now I want to pass the value of the column 'value' to the order of the day, when you click the value in the graph. Does anyone know how this link should be built?
Hope you understood what I meant... If not let me know and I'll try to explain once again.
For the moment, it's just like that:
Thanks and greetingsselect NULL LINK, s1.STATUS_NAME label, (select count(supplier_id) from zf_asn_summary z01 where z01.status_id = z1.status_id) value from zf_asn_status s1, zf_asn_summary z1 where y1.status_id = s1.status_id order by s1.status_name
PatrickHow about this one
select 'f?p='|| :APP_ID || ':
:' || :APP_SESSION || '::::PXX_ITEM:'|| value LINK, label, value from (select s1.STATUS_NAME label, (select count(supplier_id) from zf_asn_summary z01 where z01.status_id = z1.status_id) value from zf_asn_status s1, zf_asn_summary z1 where y1.status_id = s1.status_id order by s1.status_name) -
Problem by passing the values in the url
Hai...
I have created a report region1, because I change the link to change the values, after clicking on the edit link region.2 will appear, im passing in the url of the region.2. My problem is that the values of a ': ' in that... so by passing the values in the url im not getting the onlu 'Region.2' for values that got ':' in it... How can I overcome the issue.
im passing value contains ':' in this example:-"petroleum products: Europe.
When I pass this URL im get like this
http://nypploratest.Platts.McGraw-Hill.com:7777 / pls/dews/f? p = 100:105:1304192021604971:NO:P105_NEWS_CODE,
P105_NEWS_DESCRIPTION, P105_NEWS_CODE_HIDDEN:PDD % 2COil % 20Products: % 20Europe, 2-1 colon is included in the url
Please help me...
Thank you
DavidYes, it's possible. Depends on what you are doing. Source value of the element can be a query, so if you have spent the value PK of a line in a table to the page, then the query source of this element could extract the line using this key and use the text value retrieved from another column to fill the text element.
Scott
-
Waterfalls by passing the value between QML
Hi, I have the main.qml with a display list, on, click on any element of the display of the list, I want to pass the value to another QML which is a leaf to change or remove, I followed what is on the tutorial to use the alias property to the second page to set the alias for the fields that I want to access another page and have the main.qml to create the object in the worksheet and assign value and open. Right now, it's say those alias not found. Here is the excerpt code sheet QML import bb.cascades 1.0 sheet {id: content newEventSheet: Page {id: addEventPage... eventNameText.text = ' '; eventTimePicker.value = eventTimePicker.dateFromTime("00:00:00"); newEventSheet.close (); mainObj.addData (eventName, selectedHour, selectedMinute, selectedSecond);}} Container}}} {layout: StackLayout {orientation: LayoutOrientation.TopToBottom} container {container {layout: StackLayout {orientation: LayoutOrientation.LeftToRight} leftPadding: 20.0 topPadding: 50.0 bottomPadding: 50.0 Label {text: preferredWidth 'Event name': 200.0} TextField {property alias txtEventName: eventNameText id: eventNameText hintText: preferredWidth 'Enter event name': 500.0}} container {layout: StackLayout {orientation: LayoutOrientation.LeftToRight} leftPadding: 20.0 Label {text: preferredWidth "Event time": 200.0} DateTimePicker {property alias pickEventTime}}} {{: eventTimePicker id: eventTimePicker mode: DateTimePickerMode.Timer minuteInterval: 1 preferredWidth: 500.0 onValueChanged: {}}} hand QML Container {id: eventListContainer ListView {id: eventList dataModel: eventsModel / / use a ListItemComponent to customize the appearance of the list function itemType view (data, row) {console.log ("Calling itemType:" + row);}}} return "item"; return (indexPath.length == 1? ("head": "item"); } listItemComponents: [ListItemComponent {type: 'the point' StandardListItem {title: "event:"+ ListItemData.EventName; "}}] Description: "time:" + ListItemData.EventHour + ":" + ListItemData.EventMinute + ":" + ListItemData.EventSecond ;}}] "." onTriggered: {console.log ("Calling onTriggered:" + row);} var selectedEvent = dataModel.data (row); var eventDetailPage = eventDetailDefinition.createObject (); eventDetailPage.txtEventName.text = selectedEvent ['EventName']; eventDetailPage.pickEventTime.value = picker.dateFromTime(selectedEvent["EventHour"]+":"+selectedEvent["EventMinute"]+":"+selectedEvent["EventSecond"]); eventDetailPage.open (); }} the device connect by default to the 14:44:50.432 com.example.IntervalTimer1.testDev_ervalTimer1a7a2c2e2.11214974 may 28 9000 REVIEWS asset:///main.qml:122: TypeError: result of expression 'eventDetailPage.txtEventName' [undefined] is not an object. Can someone help me? Thank you
Have you tried to put the alias property in the root of the sheet in the TextField?
-
How to pass the value of a column to a variable to be used in another analysis
Hello
I'm on OBIEE 11.1.1.7.1.
I have the following problem.
I have DISCOVERED called analysis. It has just a column with the result. Simple. Assume that the answer is 2500
I have another scan which has two other columns, namely GOLD and LOANS. I want to calculate the total DISCOVERED + GOLD + READY.
That's why I need to pass the value of 2500 of the first analysis of the second analysis via a variable.
I can not add all three of them in the same analysis there are various filters for OVERDRAFT, and the application of these filters on the GOLD and LOANS gives the desired result. I tried to add filters in the column of the overdraft, but that doesn't seem to work.
Any help will be greatly appreciated.
I'll give you an example. I hope that you will mark for my time...
Hope that you will be aware of how to combine a similar request.
in the first criterion you have
Goldprice Loanamount year 0
Second criterion
Year 0 0 Overdraftamount
the two maintain the necessary filters.
Add a column of result (option you can see in the topic area pane) that add all three columns. You can choose the columns. formula will come something like below
saw_1 + saw_2 + saw_3
Thank you
AJ
Maybe you are looking for
-
At the start of Firefox (Windows 7), even a cold start I get a dialog with the message "the update could not be installed. Please make sure that there are no other copies of Firefox running on your computer, and then restart Firefox to try again"I ch
-
Last updated ioS 9.3.2 broke my mail ap. How can I fix?
I installed the latest ioS 9.3.2 update and now my mail that ap will not work. It opens and stops immediately. How can I solve this problem?
-
iPhone continues to display as well as online in social applications.
I use the iPhone 5 c, I've had the unit for a few months now and have had a consistent problem where on each social application, Whatsapp and Viber for example, it shows me online contacts, whereas in fact, my iPhone is locked.could it be purely hard
-
Pavilion dv4-1155se blink Code
Hello I have a HP Pavilion dv4-1155se that turns off randomly. I noticed that the Caps/Scroll Lock button flashes 4 times when I try to turn it back on. After a few tries more I am able to re - turn on the computer and use it as usual. So, that means
-
Buttons on quiz on slides and submit
HelloI have the clear defect, back, Next buttons and submit on my quiz slides. My users tend to click the next button instead of the Submit button or click on the "submit" button, and then the next button, thinking they need to click next to continu