How to test different Select into a PL/SQL block?
HelloI'm relatively new to PL/SQL and I'm doing several int selects only one PL/SQL block. I am faced with the fact that if a single select statement returns no data, I have to go to the when exception DATA_NOT_FOUND.
Or, I would test selects different.
In an authentication script, I'm looking for a table for a USER ID (USERID) and an ID application, to check if a user is registered under this username for this APPLICATION.
There are different possibilities: 4 possibilities:
-Existing USER name or do not exist and
-Aplication ID found or not found for this particular USER ID.
I would test teas 4 possibilities to obtain the status of this user do regardin this application.
The problem is that if a select returns no rows, I'll not found exception data.
In the example below you can see that if no line is returned, with the exception
DECLARE
P_USERID VARCHAR2(400) DEFAULT NULL;
P_APPLICATION_ID NUMBER DEFAULT NULL;
P_REGISTERED VARCHAR2(400) DEFAULT NULL;
BEGIN
SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
WHERE USERID = :P39_USERID AND APPLICATION_ID = :APP_ID ;
:P39_TYPE_UTILISATEUR := 'USER_REGISTERED';
EXCEPTION
WHEN NO_DATA_FOUND THEN
:P39_TYPE_UTILISATEUR := 'USER_NOT_FOUND';
END;
I would like to first of all make this statement:SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
WHERE USERID = :P39_USERID
Do this if the user is found:SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
WHERE USERID = :P39_USERID AND APPLICATION_ID = :APP_ID ;
etc...Basically, I don't want to go to the not found exception before you have tested the 4 possibilities.
Do you have a suggestion?
Thank you very much for your help!
Christian
If you I had to check several conditions, this is how I would do:
DECLARE
P_USERID VARCHAR2(400) DEFAULT NULL;
P_APPLICATION_ID NUMBER DEFAULT NULL;
P_REGISTERED VARCHAR2(400) DEFAULT NULL;
BEGIN
SELECT USERID
, MAX(DECODE(application_id, :APP_ID, :APP_ID)) app_id_valid
INTO P_USERID
, P_APPLICATION_ID
FROM ACL_EMPLOYEES
WHERE USERID = :P39_USERID
GROUP BY USERID
IF P_APPLICATION_ID IS NULL
THEN
:P39_TYPE_UTILISATEUR := 'NOT REGISTERED TO APPLICATION_ID';
ELSE
:P39_TYPE_UTILISATEUR := 'USER_REGISTERED';
END IF;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
:P39_TYPE_UTILISATEUR := 'USER_NOT_FOUND';
END;
/
not tested
C.
Tags: Database
Similar Questions
-
selection of the results aggregated into a PL/SQL block gives me ORA-00934
Hello
I have a simple table of objects on the map that were inclusive. That is to say:
I can query the number of entries for a parent entity and the use of aggregate functions calculate the framework encompassing total for the parent entity:CREATE TABLE tbl ( id NUMBER(11,0), -- Id of this record parentId NUMBER(11,0), -- Id from some parent table bb_sw_lat FLOAT, -- SW bounding box corner - Latitude bb_sw_lng FLOAT, -- SW bounding box corner - Longitude bb_ne_lat FLOAT, -- NE bounding box corner - Latitude bb_ne_lng FLOAT -- NE bounding box corner - Longitude ); INSERT INTO tbl VALUES (1, 1, 10, 10, 20, 20); INSERT INTO tbl values (2, 1, 5, 5, 35, 35); INSERT INTO tbl values (3, 1, -5, -20, 0, 0); INSERT INTO tbl VALUES (4, 2, 9, 9, 10, 10); INSERT INTO tbl values (5, 2, 1, 1, 1, 1);
but the same select cannot be put to the PL/SQL block:SELECT count(*), NVL(MIN(bb_sw_lat),0), NVL(MIN(bb_sw_lng),0), NVL(MAX(bb_ne_lat),0), NVL(MAX(bb_ne_lng),0) FROM tbl WHERE parentId=1;
can someone please explain to me why and what to do with it? Examples are executable as they are, it should be fairly easy to reproduce.DECLARE cnt NUMBER; sw_lat FLOAT; sw_lng FLOAT; ne_lat FLOAT; ne_lng FLOAT; BEGIN SELECT count(*) INTO cnt, NVL(MIN(bb_sw_lat),0) INTO sw_lat, -- ORA-00934: group function is not allowed here NVL(MIN(bb_sw_lng),0) INTO sw_lng, NVL(MAX(bb_ne_lat),0) INTO ne_lat, NVL(MAX(bb_ne_lng),0) INTO ne_lng FROM tbl WHERE parentId=1; END;
Thank you very much!
Kuba
Published by: user3620664 on May 14, 2009 02:14 added formattingwithout testing, just an IN
DECLARE cnt NUMBER; sw_lat FLOAT; sw_lng FLOAT; ne_lat FLOAT; ne_lng FLOAT; BEGIN SELECT count(*), NVL(MIN(bb_sw_lat),0), NVL(MIN(bb_sw_lng),0), NVL(MAX(bb_ne_lat),0), NVL(MAX(bb_ne_lng),0) INTO cnt, sw_lat, sw_lng, ne_lat, ne_lng FROM tbl WHERE parentId=1; END;
Published by: Alex Nuijten on May 14, 2009 11:19
-
How to truncate the table in a pl/sql block
Hello guys, I'm trying to truncate a table that includes data using a pl/sql block, so if the table has even a single row then the truncate should run. to do this, I wrote the following code
declare
number num.
Start
Select count (*) in the num from table_name;
If num > 0 then
truncate table table_name;
end if;
end;
Now, when I execute the pl/sql block, I get the following error.
PLS-00103: encountered the symbol "TABLE" when the expected in the following way:
When I run the truncate without pl/sql command, it runs very well.
Can someone please where I'm wrong.
Thank you
Published by: 969224 on April 23, 2013 08:08969224 wrote:
Hello guys, I'm trying to truncate a table that includes data using a pl/sql block, so if the table has even a single row then the truncate should run. to do this, I wrote the following codedeclare
number num.
Start
Select count (*) in the num from table_name;
If num > 0 then
truncate table table_name;
end if;
end;Now, when I execute the pl/sql block, I get the following error.
PLS-00103: encountered the symbol "TABLE" when the expected in the following way:
When I run the truncate without pl/sql command, it runs very well.
Can someone please where I'm wrong.
Thank you
Published by: 969224 on April 23, 2013 08:08
DDL is not allowed directly within PL/SQL procedures.
You must (ab) use EXECUTE IMMEDIATE issuing the DDL
-
How to combine different photos into one image selections?
I can't understand how to open multiple images at once and then select sections of them and the selections in a single complete picture. Can someone tell me how to proceed?
HI T.Bux and welcome to the forum.
This video tutorial should help you with the composition of the basic photo:
-
Don't know how to test the output of the PL/SQL function
I have a function in the package '. " XCCC_PO_APPROVALLIST_S1' called 'does_cpa_exist ':
The pl/sql valid and commits OK in TOAD.FUNCTION does_cpa_exist( p_document_id IN NUMBER ) RETURN BOOLEAN IS l_cpa_exists VARCHAR2(100); BEGIN SELECT 'Y' INTO l_cpa_exists FROM po.po_requisition_lines_all prla , ap.ap_suppliers pv , ap.ap_supplier_sites_all pvsa WHERE prla.vendor_id = pv.vendor_id AND prla.vendor_site_id = pvsa.vendor_site_id AND pv.vendor_id = pvsa.vendor_id AND prla.requisition_header_id = p_document_id AND EXISTS( SELECT pha.vendor_id FROM po.po_headers_all pha WHERE pv.vendor_id = pha.vendor_id AND pvsa.vendor_site_id = pha.vendor_site_id AND pha.org_id = fnd_profile.VALUE('ORG_ID') AND pha.type_lookup_code = 'CONTRACT' AND pha.authorization_status = 'APPROVED'); RETURN TRUE; IF (p_document_id IS NULL) THEN RETURN FALSE; END IF; EXCEPTION WHEN OTHERS THEN RETURN FALSE; END does_cpa_exist;
I ran the sql in the EBS, and took the path of the workflow looks like that function returned a value of false.
I pass to the function a document_id.
I was wondering how I might test the output of the function from TOAD?
I tried:
But get errors:select XCCC_PO_APPROVALLIST_S1.does_cpa_exist(1017934) from dual;
I do probably bad 101 things here, but I would still ask thinking and risk of being shouted at.ORA-06552: PL/SQL: Statement ignored ORA-06553: PLS-382: expression is of wrong type
Any advice appreciated,
Thank youI was wondering how I might test the output of the function from TOAD?
Try
begin if xccc_po_approvallist_s1.does_cpa_exist (1017934) then dbms_output.put_line ('True'); else dbms_output.put_line ('False'); end if; end; /
-
How to initialize the Java variable within pl/sql block in the ODi procedure
I have a step in the procedure of odi that using oracle technology.
I want to initialize the java variable inside that.
Please help me for this.
< @ if (odiRef.getOption ("USE_PUBADMIN_PARAM_TABLE").equals("1")) {@ >}
DENIZ
EH_FAILURE_MESSAGE_TEXT VARCHAR2 (4000);
EH_FIXED_VERSION VARCHAR2 (4000);
EH_ISSUE_TYPE VARCHAR2 (4000);
EH_PRIORITY VARCHAR2 (4000);
EH_SUMMARY VARCHAR2 (4000);
EH_DESCRIPTION VARCHAR2 (4000);
EH_PROJECT_ID VARCHAR2 (4000);
EH_COMPONENT VARCHAR2 (4000);
EH_AFFECTED_VERSION VARCHAR2 (4000);
EH_CUSTOMPROPXML VARCHAR2 (4000);
EH_LOG_JIRA VARCHAR2 (4000);
EH_CONTINUE_ON_ERROR VARCHAR2 (4000);
EH_SEND_MAIL_NOTIFICATION VARCHAR2 (4000);
EH_NOTIFICATION_RECIPENTS VARCHAR2 (4000);
EH_JIRAJARPATH VARCHAR2 (4000);
BEGIN
SELECT
DECODE ('< % = odiRef.getOption ("FAILURE_MESSAGE_TEXT") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_FAILURE_MESSAGE_TEXT'),' < % = odiRef.getOption ("FAILURE_MESSAGE_TEXT") % >") IN EH_FAILURE_MESSAGE_TEXT.
DECODE ('< % = odiRef.getOption ("FIXED_VERSION") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_FIXED_VERSION'),' < % = odiRef.getOption ("FIXED_VERSION") % >") IN EH_FIXED_VERSION.
DECODE ('< % = odiRef.getOption ("ISSUE_TYPE") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_ISSUE_TYPE'),' < % = odiRef.getOption ("ISSUE_TYPE") % >") IN EH_ISSUE_TYPE.
DECODE ('< % = odiRef.getOption ("PRIORITY") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_PRIORITY'),' < % = odiRef.getOption ("PRIORITY") % >") IN EH_PRIORITY.
DECODE ('< % = odiRef.getOption ("SUMMARY") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_SUMMARY'),' < % = odiRef.getOption ("SUMMARY") % >") IN EH_SUMMARY.
DECODE ('< % = odiRef.getOption ("DESCRIPTION") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_DESCRIPTION'),' < % = odiRef.getOption ('DESCRIPTION') % >") IN EH_DESCRIPTION.
DECODE ('< % = odiRef.getOption ("project") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_PROJECT_ID'),' < % = odiRef.getOption ("project") % >") IN EH_PROJECT_ID.
DECODE ('< % = odiRef.getOption ("ELEMENT") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_COMPONENT'),' < % = odiRef.getOption ('ELEMENT') % >") IN EH_COMPONENT.
DECODE ('< % = odiRef.getOption ("AFFECTED_VERSION") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_AFFECTED_VERSION'),' < % = odiRef.getOption ("AFFECTED_VERSION") % >") IN EH_AFFECTED_VERSION.
DECODE ('< % = odiRef.getOption ("CUSTOMPROPXML") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_CUSTOMPROPXML'),' < % = odiRef.getOption ("CUSTOMPROPXML") % >") IN EH_CUSTOMPROPXML.
DECODE ('< % = odiRef.getOption ("LOG_JIRA") % >', '0', PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_LOG_JIRA'),' < % = odiRef.getOption ("LOG_JIRA") % >") IN EH_LOG_JIRA.
Decode('%=odiRef.GetOption("CONTINUE_ON_ERROR") % > ', '0', PBA_PARAM_PKG. ("GET_PARAMETER ('EH_CONTINUE_ON_ERROR'),' < % = odiRef.getOption ("CONTINUE_ON_ERROR") % >") IN EH_CONTINUE_ON_ERROR.
DECODE ('< % = odiRef.getOption ("SEND_MAIL_NOTIFICATION") % >', '0', PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_SEND_MAIL_NOTIFICATION'),' < % = odiRef.getOption ("SEND_MAIL_NOTIFICATION") % >") IN EH_SEND_MAIL_NOTIFICATION.
DECODE ('< % = odiRef.getOption ("NOTIFICATION_RECIPENTS") % >', NULL, PBA_PARAM_PKG.) ("GET_PARAMETER ('EH_NOTIFICATION_RECIPENTS'),' < % = odiRef.getOption ("NOTIFICATION_RECIPENTS") % >") IN EH_NOTIFICATION_RECIPENTS.
PBA_PARAM_PKG. GET_PARAMETER ('EH_JIRAJARPATH') IN EH_JIRAJARPATH
Double;
/ * I want to start as it is below. idon't want to control user source and control target conecpt.
Please help me to below concept.
*/
< @.
String V_EH_FAILURE_MESSAGE_TEXT = EH_FAILURE_MESSAGE_TEXT;
String V_EH_FIXED_VERSION = EH_FIXED_VERSION;
String V_EH_ISSUE_TYPE = EH_ISSUE_TYPE;
String V_EH_PRIORITY = EH_PRIORITY;
String V_EH_SUMMARY = EH_SUMMARY;
String V_EH_DESCRIPTION = EH_DESCRIPTION;
String V_EH_PROJECT_ID = EH_PROJECT_ID;
String V_EH_COMPONENT = EH_COMPONENT;
String V_EH_AFFECTED_VERSION = EH_AFFECTED_VERSION;
String V_EH_CUSTOMPROPXML = EH_CUSTOMPROPXML;
String V_EH_LOG_JIRA = EH_LOG_JIRA;
String V_EH_CONTINUE_ON_ERROR = EH_CONTINUE_ON_ERROR;
String V_EH_SEND_MAIL_NOTIFICATION = EH_SEND_MAIL_NOTIFICATION;
String V_EH_NOTIFICATION_RECIPENTS = EH_NOTIFICATION_RECIPENTS;
String V_EH_JIRAJARPATH = EH_JIRAJARPATH;
@ >
END;
{< @} @ >
I have corrected this problem. No need to search on that.
-
How can I check what happened when PL/SQL blocks
Hi Experts,
I have a program running on the Oracle database pl/sql code. Due to performance issues, executing the pl/sql code crashes when data becomes large. I wonder where I can check what is happening to the pl/sql code? What part of the code is it run and where the side database Oracle can I get some details of what's going on?
Thanks a lot for your help.I don't have to use any api monitor or package in pl/sql code. Pl/sql is suspended right now. Is it possible that I can see on the side of the database (for example, session), which makes the process?
In addition to the above options, you can also query V$ SESSION or V$ SESSION_LONGOPS, identification of the correct current session and see what SQL is running.
See:
http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:497421739750
http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:767025833873
for the examples. -
How to modify a statement "select into" how to use a cursor
The following code fails with an exception too many lines. How can I modify statement Select Into the procedure to use a cursor?
CREATE OR REPLACE PROCEDURE Track_Asset( business_date IN NUMBER DEFAULT NULL, missing_table_name OUT VARCHAR2) IS ln_business_date NUMBER; incorrectdateformat EXCEPTION; BEGIN IF business_date < 0 THEN RAISE incorrectdateformat; ELSE DECLARE ln_business_date NUMBER; BEGIN SELECT MAX(business_date) INTO ln_business_date FROM sproof ; EXCEPTION WHEN NO_DATA_FOUND THEN dbms_output.put_line('NO MATCH FOUND'); WHEN OTHERS THEN dbms_output.put_line('ORACLE ERROR :' || SQLERRM); END; DECLARE missedfeedfnd EXCEPTION; BEGIN SELECT 'Missing Value : ' || table_name INTO missing_table_name FROM ( SELECT UPPER(table_name) table_name FROM filespec WHERE data_table_name IN ('TABLE1','TABLE2','TABLE3') MINUS ( SELECT DISTINCT UPPER(first_table_name) FROM dpca WHERE business_date = ln_business_date AND first_table_name IN ('TABLE1','TABLE2','TABLE3') GROUP BY UPPER(first_table_name) UNION SELECT UPPER(first_table_name) FROM dpca WHERE business_dt_num = TO_NUMBER( SUBSTR('201111', 1, 6) || '01' ) AND first_table_name = 'TABLE4' GROUP BY UPPER(first_table_name) )); IF missing_table_name IS NOT NULL THEN dbms_output.put_line('Missing Value : '|| missing_table_name); RAISE missedfeedfnd; ELSE NULL; END IF; EXCEPTION WHEN TOO_MANY_ROWS THEN DBMS_OUTPUT.PUT_LINE (' SELECT INTO statement retrieved multiple rows'); WHEN missedfeedfnd THEN raise_application_error ( - 20003, 'Missed Feed'); END; END IF; EXCEPTION WHEN incorrectdatevalue THEN raise_application_error ( - 20001, 'Incorrect/Bad Date Entered'); END;
OK, try this - OUT param will be filled with the table names comma-separated list:
PROCEDURE Track_Asset( business_date IN NUMBER DEFAULT NULL, missing_table_name OUT VARCHAR2) ... ... cursor c_table_names is select datatablename from ( select upper(datatablename) datatablename from filespec where data_table_name in ('TABLE1','TABLE2','TABLE3' ) MINUS ( select upper(first_table_name) from dpca where business_dt_num = [-- this date is retrieved by getting the MAX(business_date) from sproof table] and fus_data_table_name in ('TABLE1','TABLE2','TABLE3' ) group by upper(first_table_name) UNION select upper(first_table_name) from dpca where business_dt_num = to_number( substr('201111',1,6) || '01' ) and first_table_name = 'TABLE4' group by upper(first_table_name) )); ... ... begin ... for rec in c_table_names loop missing_table_name := missing_table_name || rec.datatablename ||','; end loop; missing_table_name := rtim(missing_table_name , ','); ... ... end ;
HTH
Published by: user130038 on December 28, 2011 08:46
-
How can I connect three different files into one? Thank you.
I need to download copies, but I need to combine into one file
Hello
Here is the link for the steps on how to merge several PDF' into one.
As shown above, you would need Acrobat for that.
Concerning
Sukrit diallo
-
How to test the following?
I want to test the functionality by using the method public void moduleDeletionsPending (String [] moduleNames). I had written logic that removes files from an SD card and it works when I call a menu inside my application item.
However, it should only be run when I uninstall the application.
In 9700 Simulator, if I select Options > Applications > [highlight the application] > [open the menu by pressing the Insert key on my keyboard] - I don't see the option to remove the application.
I don't see the delete option for other applications, such as the Klondike card game.
Should I set a property or the permissions of my app should be deleted in a simulator, so I can test the moduleDeletionsPending method?
Thank you.
You will need to 'install' the app in the BlackBerry smartphone Simulator so that your application appear in the list of applications. You won't see here when you perform an execution/debug as, when you use the file, the option of loading or copy it into the directory of Simulator.
The following link explains the different ways to install an application.
How to deploy and distribute Applications
Note that you can install using a simulated so USB connection. Click on the menu of the smartphone Simulator simulation BlackBerry and check USB cable connected. Note that you can not the debugger attached when installing via a simulated USB connection.
-
How to test the stored procedure in SQL Developer or SQL Plus
Hello
It's small, but I am confused. Can someone give me the EXACT command to run to test my stored procedure described below. Please don't refer me to the documentation or offer some sort of pseudocode. I've been through the documentation - and through it again - and I just don't get it. I know that the procedure works in general because I'm calling ColdFusion, but I want to test developer SQL or SQL more before I call my ColdFusion page - it only makes sense. I'm probably not initialize variables right or something - not sure.
You will see that it is a line right insert in the firstname and lastname data base and there are 2 IN OUT values as well. Please use a fake name for the firstname and lastname values to demonstrate. I appreciate it!
create or replace
procedure sp_insertDirector_A)
vFirstname IN Directors.Firstname%TYPE,
vLastname IN Directors.Lastname%TYPE,
vInsertStatus in on NUMBER,
vNewDirectorID IN OUT NUMBER
)
IS
row_count NUMBER;
BEGIN
SELECT Count (*) FROM directors WHERE Lastname vLastname = row_count;
IF row_count > 0 THEN
vInsertStatus: = - 1;
RETURN;
END IF;
INSERT INTO administration)
FirstName, Lastname)
VALUES)
vFirstname, vLastname
);
SELECT Directors_Seq.CURRVAL INTO vNewDirectorID FROM DUAL;
vInsertStatus: = 1;
END;
If someone can tell me exactly how to test, I'd appreciate it. I asked on another site and got many responses that I tried and did not work due to various errors. Once I get a working example, I'm sure I can get the idea and continue on. I mainly use the SQL Developer.
Thank you, mallethead
p.s. I think that my if - THEN followed by the instruction INSERT is fixed - it is woring. Seems a little odd to me however.declare l_instatus number; l_newdirid number; begin sp_insertDirector_A('bob','smith',l_instatus,l_newdirid); dbms_output.put_line(l_instatus); dbms_output.put_line(l_newdirid); end; /
-
How to copy and paste into the search engine does not work?
How to copy and paste into the search engine does not work?
It should be.
Restart your Mac and try again.
Other than that, make sure that OS X is updated.
Open the App Store, and then select the updates menu.
-
How to test a motherboard for fualts?
Looking for means test a Toshiba Satellite L20/L25 for fualts. How to test to see if it has a graphics chip fail or its ram reading high because it sounds like the RAM fail if I go out and if I put it in it beeps once like it wants to start
As far as I know that it can be tested using diagnostic tools special but these tools are not for public use and are designed by Toshiba to only service providers.
Have you tested different RAM modules?
-
How to test if the pc is connected to the TCP/IP protocol?
Hello
I have a VI how should the data received from another PC, using a TCP/IP connection.
My VI could connect, receive data, but if I lose the connection im not able to reconnect, because I do not know how to test if my pc is connected to the other.
Thank you for your help,
Best regards
salim_mjs wrote:
Hey,.
I was checking for error 66, I think that it check if the connection has been closed in order to reconnect
do you not think that the error 56 or 60 are better?
with respect,
56 is the time-out. This will depend on your remote service if this should be considered as error or ignored. If it is a server application, it should certainly be able to respond within the time limit. But if your host application is the server and the remote application is the client it is very common to receive a time-out error when querying the client if it has new data to send.
Order the examples mentioned previously, they really give you a good idea on how TCP/IP network communication must all work, even if there is still a lot to improve to create a truly reliable connection. But start from there come back if you get into trouble.
Rolf Kalbermatter
-
How can I dynamically select the shared Variable API programming data type?
I am trying to create a configuration of open connections of variable shared using the programming API. It seems to me that the cleanest way to do would be to put one "open and check" routine in a loop, then call it for each variable in the library.
The question that I am running is that I have different types of data in my library (to help a server Modbus i/o and data types 'boolean' and 'single' in my library.) How can I dynamically select the data type of the shared variable API?
See the attached snipit.
Thank you
What I ended up doing was doing a Subvi to open, read, write, and close each data type, I use the packaged in 4 polymorphic SubVIs (polymorphic Open, read, etc...)
Now all I have to do I drop in the polymorphic Subvi and it switches automatically to the appropriate data type
Maybe you are looking for
-
Create new user appears to work, but do not create a profile or a directory, logon fails
Connections for existing accounts will continue to work. But no new account create via the Control Panel does not work. The Control Panel accepts the name of the new account, allows me to change the icon for the account, allows me to set the passwo
-
AutoPlay does not start for my Canon camera
AutoPlay does not start for my Canon camera now that I have installed a new hard drive. Dell has spent an hour setting up AutoPlay to open Windows Live, which is what I did before. Is there a solution to this? I can access Live, but I just want to do
-
Keep the Magnifier to start with Windows
original title: magnifying glass 'OFF' stop the magnifying glass so it does not appear again when you restart you Office >
-
N500 BIOS necessary help/walkthru
Hi all When I turn on my laptop, I am presented with a very pale blue/pink screen with lots of vertical grayish lines faded. After a time, as then the screen goes black, except for the thumb of the left hand, or so who has about 6 or 8 vertical lines
-
Recovery Copyright OS 8 times merged partitions recovery in other partitions
Could you please help me one more problem. My laptop is copyright OS 8. When I divided the 700 GB partition into 3 partitions (C, D, E) to the desired capacity (100 GB, 300 GB, 300 GB). But then the OS cannot be opened. I've converted type GPT to MBR