Call a subVI from within vi template
Hi,
I had a subVI & wanted to call it multiple times with its front panel open .As I understood I should have a vi template for this purpose.
Can I make a new VIT & then simply call the subvi i had before?
Best Regards
Hi,
You can make the subvi a VIT but now you would need to use the VI server to open a reference to the VIT which would open a new instance of the VI each time the template is called. You cannot open the VIT as a subvi because then it would not let you open multiple front panels.
Regards,
Ankita A.
National Instruments
Similar Messages
-
Calling a webservice from within Bex Web Application Designer
Hi
I have a web-template built with BEx web application designer which also contains textboxes. This text should be stored by calling a webservice (standard BI-documents are not an option).
Can anyone tell me how I could call a webservice from within the BEx web template to store the text contained in the textbox? The webservice-call should include some of the filter-varialbes of the web application.
Is this only possible by the use of a JavaScript WebItem? If so - does anyone have an example of such a JavaScript.
Thanks a lot in advance.
Kind regards.
ChristophThanks for your response. The BSP page would work out fine if I only needed to save the data.
But the next time I call the webtemplate, the textarea should be filled by another webservice call with the stored text (so the text can be modified und saved again). This will not be possible by calling a BSP page.
Do yoiu have any suggestions how to integrate the text (return value from the webservice call) into the textbox in the webtemplate?
Kind regards.
Christoph -
What is the best way to call a report from within a report
What is the best way to call a report from within a report(master / Detail concept)
A type of drill down report
Oracle Database 10g
Forms 10.1.2.0.2
Report Builder 10.1.2.0.2Hi
Have a look in this link, certainly you will get fix, if not just post a comment on blog, will get reply soon
http://windows7bugs.wordpress.com/?s=oracle+10g+bug -
Calling ORACLE Functions from within CF Builder report
Hi, I have an ORACLE function that I would like to call from within my CF REPORT.
I know there is a section in the report builder where you can write coldfusion code to perform tasks, but I would rather simply call the ORACLE function for each detail row in the report
I do not want to call this function from within my main ORACLE query that I use for the report, so please don't suggest that.
Thanks so much.
-Jim6.0.5 is not certified against 10g database, so I suggest to upgrade to 6.0.8.26 (6i patch 17) first to see if the problem is gone.
-
Hi There!
I am currently calling a vi from within my code. However, what i would like to do, is to pass it 2 int values when i call it and for it to return 2 int values when it is done!
Any advice on how i can do this please.
Thanks.
Regards,Hi Matrix,
is there a reason you do it this way? By Ref (it is called dynamically loading)
If you place the VI directly on the BD of a VI you can just wire things up.
Now if you need dynamically loading. hoover the open VI-ref function and right click on the type specifier and select create constant. Then right click browse, browse to your VI. Now you have the connector pane.
But if I were you I just use VI directly, because you'll keep connections active between the two VI's
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Calling external programs from within a Tomcat application
I've got a fairly complex existing Tomcat application (which is packaged and built as a .war file) which I'm trying to edit so that it calls a Perl script part way through the processing, which will generate an XML file used later on. I think I've worked out how to call external scripts from within Java, but at the moment when I try and access the application via Tomcat the application either hangs or bails out (I don't know which, as the log files unhelpfully don't give any error messages).
The code which is causing the problem looks like this:
System.err.println("Calling runtime...");
Runtime runtime = Runtime.getRuntime();
System.err.println("Executing process...");
Process process = runtime.exec("/path/to/ysearch.pl 'News' '\"search query\"' 'file");
System.err.println("Waiting for process...");
int exitVal = process.waitFor();
System.out.println("Exited with error code: " + exitVal);The code gets as far as "Executing process..", beyond that there is nothing in the log file so I presume the runtime.exec() call is where the problem is. I'm not interested in reading the output from the script (there shouldn't be any), so that's not an issue, and the permissions on it allow anyone to read or execute ysearch.pl so I don't think there's a problem in that area.
Does anyone have any suggestions which I could try to get this to work? I've only been using Tomcat for a week (I'm picking up on someone else's code) so I might have made a beginner's mistake. I'm using Tomcat 5 on Fedora Core 7, and Java 1.5.0_01 (I can't easily change any of those).I'm not sure, but I thing that overhead caused by calling du cannot be big enough to matter even on older machines.
But, when calling du from Perl script you are also invoking shell, and this can be a little bit more 'heavy'. -
How to call a package from within a package
How would I call a package from within a package and pass variables to it. For instance I am trying to pass variables to a log package from another package when a user inserts or updates a table
First, technical questions need to be addressed to one of the technical forums. Products | Database | SQL & PL/SQL would be appropriate for this question. Please direct any followup to that forum.
Second, you cannot call a package; a package is a collection of stored procedures and functions. You can call a packaged function or procedure from another package simply by specifying the package name and the procedure
CREATE OR REPLACE PACKAGE pkgA
AS
PROCEDURE callPkgB;
END;
CREATE OR REPLACE PACKAGE BODY pkgA
AS
CREATE PROCEDURE callPkgB
AS
BEGIN
pkgB.someProcedure( 'Some argument' );
END callPkgB;
END pkgA;In general, any packaged procedure can be called by specifying the schema, package, and procedure name, i.e.
EXEC mySchema.myPackage.myProcedurethough the schema and package can be omitted if the calling procedure is in the same schema or package.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to call a procedure from within another procedure?
What's the syntax to call a procedure from within a procedure.
I have a procedure z(user_id IN number, ....)
then
procedure a (user_id IN number, ....)
procedure b (user_id IN number, ....)
procedure c (user_id IN number, ....)
I want to call procedure a, b, c from inside procedure z.
How would I do that?Same way :
SCOTT@db102 SQL> create or replace procedure a (p1 in varchar2) is
2 begin
3 dbms_output.put_line (p1);
4* end;
SCOTT@db102 SQL> /
Procedure created.
SCOTT@db102 SQL> create or replace procedure z (par1 in number) is
2 begin
3 if par1 != 0 then
4 a ('This is proc a');
5 end if;
6* end;
SCOTT@db102 SQL> /
Procedure created.
SCOTT@db102 SQL> set serveroutput on
SCOTT@db102 SQL> exec z (1);
This is proc a
PL/SQL procedure successfully completed.
SCOTT@db102 SQL> -
Calling startrfc.exe from within a vbs script
Hello, can someone help me please
I am trying to process xml idocs into SAP on a Windows 2008 server. I have written a vbs script to process the file and am trying to call STARTRFC.EXE from within the vbs script. However I keep getting an error that it cannot open the file. The code is shown below. I have changed the server name and gateway and user/passwd for security. I'm passing the filename as a variable (str_expfile) but it does not seem to be able to extract the actual file name from the variable. I know from past experience that you can pass it variables if its running on a unix box and in a shell. But for some reason it not decipering the variable name in the vbs script
Set objShell = CreateObject("Wscript.Shell")
str_startrfc = "D:\usr\sap\SID\SYS\exe\uc\NTAMD64\startrfc.exe -d SID -3 -h hostname -s 00 -g hostname -x sapgw00 -u user -p passwd -c 100 -l EN -t -F EDI_DATA_INCOMING -E PORT=MYPORT -E PATHNAME=str_expfile"
objShell.Run str_startrfc, ,True
The error I'm getting is shown below:
ERROR file opened at 20110510 134219 GMT Daylight Time, SAP-REL 700,0,278 RFC-VER 3 1200864 MT-SL
T:2584 Error in program 'startrfc': ======> Error at OPEN 'str_expfile' (check file)
T:2584 Error in program 'startrfc': <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
T:2584 Error in program 'startrfc': <* RfcCallReceive [1] : returns 3:RFC_SYS_EXCEPTION
Thanks
Regards
SteveHi Markus
Unfortunately I can't do that because I need it to process hundreds of files one after another and I would have to hard code the file path each time. That's why I need it automated.
Can startrfc.exe not take a variable for the pathname in a vb script? It works fine in a unix shell. We are migrating from unix to windows and I need to convert all my unix scripts into vb scripts.
I notice there is a nother rfc type program available, can I use rfcexec.exe instead of startrfc.exe and would it take variables?
Thanks
Regards
Steve -
EJB 3.1 @Asynchronous and calling other methods from within
Hey all,
I am helping a friend set up a test framework, and I've turned him on to using JEE6 for the task. I am decently familiar with entity beans, session beans, and such. One of the new features is @Asynchronous, allowing a method to be ran on a separate thread. The test framework generally needs to spawn potentially 1000's of threads to simulate multiple users at once. Originally I was doing this using the Executor classes, but I've since learned that for some reason, spawning your own threads within a JEE container is "not allowed" or bad to do. I honestly don't quite know why this is.. from what I've read the main concern is that the container maintains threads and your own threads could mess up the container somehow. I can only guess that this might be possible if your threads use the container services in some way.. but if anyone could enlighten me on the details as to why this is bad, that would be great.
None the less, EJB 3.1 adds the async capability and I am now looking to use this. From my servlet I use @EJB to access the session bean, and call an async method. My servlet returns right away as it should. From the async method I do some work and using an entity bean store results, so I don't need to return a Future object. In fact, my ejb then makes an HttpClient call to another servlet to notify it that the result is ready.
My main question though, is if it's ok to call other methods from the async method that are not declared @Asynchronous. I presume it is ok, as the @Asynchronous just enables the container to spawn a thread to execute that method in. But I can't dig up any limitations on the code within an async method.. whether or not it has restrictions on the container services, is there anything wrong with using HttpClient to make a request from the method.. and making calls to helper methods within the bean that are not async.
Thanks.851827 wrote:
Hey all,.. from what I've read the main concern is that the container maintains threads and your own threads could mess up the container somehow. I can only guess that this might be possible if your threads use the container services in some way.. but if anyone could enlighten me on the details as to why this is bad, that would be great.
Yes since the EE spec delegated thread management to conatiners, the container might assume that some info is available in the thread context that you may not have made available to your threads.
Also threading is a technical implementation detail and the drive with the EE spec is that you should concentrate on business requirements and let the container do the plumbing part.
If you were managing your own threads spawned from EJBs, you'd have to be managing your EJBs' lifecycle as well. This would just add to more plumbing code by the developer and typically requires writting platform specific routines which the containers already do anyway.
>
None the less, EJB 3.1 adds the async capability and I am now looking to use this. From my servlet I use @EJB to access the session bean, and call an async method. My servlet returns right away as it should. From the async method I do some work and using an entity bean store results, so I don't need to return a Future object. In fact, my ejb then makes an HttpClient call to another servlet to notify it that the result is ready.
My main question though, is if it's ok to call other methods from the async method that are not declared @Asynchronous. I presume it is ok, as the @Asynchronous just enables the container to spawn a thread to execute that method in. But I can't dig up any limitations on the code within an async method.. whether or not it has restrictions on the container services, is there anything wrong with using HttpClient to make a request from the method.. and making calls to helper methods within the bean that are not async.
Thanks.If you want to be asynchronous without caring about a return value then just use MDBs.
The async methods have no restrictions on container services and there is nothing wrong with calling other non async methods. Once the async method is reached those annotations don't matter anyway (unless if you call thhose methods from a new reference of the EJB that you look up) as they only make sense in a client context.
Why do you need to make the call to the servlet from the EJB? Makes it difficult to know who is the client here. Better use the Future objects and let the initial caller delegate to the other client components as needed. -
Calling stored procedure from within container TX
Hi
I am calling a stored procedure that resides locally (Oracle) from within a session
bean after updating a number of ejb's. The stored procedure works fine if it performs
a simple delete. However, the stored procedure is in turn calling another stored
procedure that may reside in a different db. In such a case the update to the
ejb's in not reflected at all. Is this possible to do this within one tx? BTW
there is a reason I'm not calling the remote SP directly.
ThanksHi,
I am not sure if I fully understand your question, but here is a list of points which you
should check:
- transaction boundaries
- transaction isolation level
- XA datasources and drivers
- are the changes from the SP commited properly to the database ?
- also note that WLS5.1 (if you are using it ?) supports 2 phase commit only with a
single datasource
Regards,
Christian Buchegger
Developer Relations Engineer
BEA Support
Michael schrieb:
Hi
I am calling a stored procedure that resides locally (Oracle) from within a session
bean after updating a number of ejb's. The stored procedure works fine if it performs
a simple delete. However, the stored procedure is in turn calling another stored
procedure that may reside in a different db. In such a case the update to the
ejb's in not reflected at all. Is this possible to do this within one tx? BTW
there is a reason I'm not calling the remote SP directly.
Thanks -
Calling another cache from within AbstractProcessor.process fails, why?
I want to enrich a certain data object in a distributed cache via the EntryProcessor framework. The new data is looked up from another nearby cache.
However, when calling otherCache.get(id) Coherence throws an exception saying that it does not allow blocking calls from within a processor:
*[java] Caused by: com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread...*
Is this fixable? What am I missing? Does anyone recommend alternative ways to read data from other caches inside AbstractProcessor?
Thanks in advance,
-Stefan
This is the calling code that executes in the node where the primary object is:
public class ExternalPropertiesUpdateProcessor extends AbstractProcessor implements PortableObject {
@Override
public Object process(InvocableMap.Entry entry) {
Session session = null;
if (entry.isPresent()) {
session = (Session) entry.getValue();
NamedCache cidCache = CacheFactory.getCache("cidCache");
Long oldCid = new Long(97);
CidConversion cidCon = (CidConversion) cidCache.get(oldCid); // * it fails here with above exception!
session.setCid(cidCon.getNewCid());
session.setState(Session.SESSION_CLOSED);
entry.setValue(session); // make session changes durable in cache
return session;
Edited by: [email protected] on Dec 10, 2009 9:35 AMBen Stopford wrote:
Hi Rob
You mention:
If you call back to the same cache service via an invocation service, you still risk a deadlock or a livelock due to thread-pool depletion. It looks like it is working, then you may run into the problem. It is not 100% safe.which sparked my interest. Would you mind elaborating a little further. I'd always assumed that the threadpools for separate services were independent and thus there was no chance of deadlock from cross-service calls such as this.
Thanks in advance
BenHi Ben,
as I mentioned, it can cause a problem if you indirectly call back to a service which was on the call stack.
Let's see an example:
You send an entry processor to a cache in service A, which synchronously (with the query() method) calls to Invocation service I in which the invocable agent sends an entry-processor to service A (again) targeted to an entry on the same node.
Let's for the sake of the simplicity of the example suppose service A has a thread pool of size 2.
You send two such entry-processors on entries residing in the same node.
We now have a possible deadlock. If both entry-processors entered the first process() method (doesn't matter what entry as long as they are on the same node), they can both proceed into the invocation service call, but from that none of them can proceed further to the inner invoke() call, because there are no more free threads in service A!!! Poof, deadlock, both threads will wait until a thread becomes available... and none will become available because none of the service calls can proceed.
Of course, starting with 3.5 the Guardian will kill one of the threads (at least), and in earlier version it will also time out, but the point is that they will not be able to complete in this scenario.
Best regards,
Robert -
Calling a function from within a movieclip
How do I do this, and Is it wrong to do it this way?
I have a movieclip on the timeline and within that movieclip
it has buttons which I've placed listeners. I'm doing it this way
rather than putting the code in the document class because the
buttons don't appear right away in the movieclip (not until around
frame 10). The function is defined in the document class because it
is used with other movieclips.
Anyone have an idea on how to properly do this?Well, I'm at least not getting an error - however, nothing is
happening when I click the button to call the function (which is
indeed public). Inside the function is a simple trace. I've even
added a param to the function just for fun, and there's no error
when calling the function from the button. -
How to make a call to service from site studio templates?
Hi,
May be this is very basic but I am not able to figure out how to make a call to a service from site studio templates (hcsp). I have seen one example of service call in the dynamic list fragment. It makes a call to SS_GET_SEARCH_RESULTS service using executeService() method. But it doesn't take any parameters and also not very how returned results are captured.
I want to execute WCM_PLACEHOLDER service. It takes 2 main parameters dataFileDocName and templateDocName. The returned result is typically a html response.
The service typically is executed using http request and the url would be something like this
http://hd-pratapm/ucm/idcplg?IdcService=WCM_PLACEHOLDER&dataFileDocName=VIRTUSAINC&templateDocName=DETAILS_REGION_TEMPLATE
I think SS_GET_SEARCH_RESULTS service works in the similar fashion. I want to execute WCM_PLACEHOLDER service too using executeService() method. How to work with this? How can we pass parameters and capture returned results?
Regards,
PratapHey Pratap,
If you are on a standard Site Studio template (page or subtemplate) you should be able to call the wcmPlaceholder idoc function directly. In fact calling the idoc function provides a lot more functionality then the service call (they locked down a few things in the service call since it is designed to be called from an external application).
The idoc call would look something like: <!--$wcmPlaceholder("Sales", "placeholderDefinitionDocName=placedef_salescontact")--> (taken from page 208 in this doc: http://download.oracle.com/docs/cd/E10316_01/SiteStudio/10gr4/Pdf/Site_Studio_10gR4_Designer_Guide.pdf)
As a general note when you are in idoc script and want to execute a service you call <$executeService()$> as you saw in the dynamic list. The parameters that the service runs on are in the data binder of the current request. To set parameters for an execute service you simply set idoc variables on the page before it. Example:
<!--$QueryText="dDocType <matches> `Document`" -->
<!--$executeService("GET_SEARCH_RESULTS")-->
As for the response when you execute an idoc function, like wcmPlaceholder, that returns a String the response is immediately output to the page in the location you called the function. This would be similar in concept to a jsp scriptlet that outputs a string <%=myResponseString%>
Hope that helps,
Andy Weaver - Senior Software Consultant
Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_ECM >
Edited by: Andy Weaver on Jul 7, 2010 7:59 AM
Added response detail. -
Error calling remote oc4j from within oc4j
I'm running a session bean inside one instance of oc4j, and trying to make a remote rmi call to another oc4j instance, but running into a problem.
When both the "client" side oc4j and server side oc4j are 10.1.3.0.0, everything proceeds smoothly. When the "client" side oc4j is upgraded to 10.1.3.3.0, I get the following error when doing the lookup:
'TestBean' remote object not found during name lookup
Caused by: javax.naming.NamingException: Disconnected: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.oc4j.rmi.interceptors.PropagatedIdentity
Dependent class: com.evermind.io.ClassLoaderObjectInputStream
Loader: oc4j:10.1.3
Code-Source: /C:/java/oc4j/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in META-INF/boot.xml in C:\java\oc4j\j2ee\home\oc4j.jar
This load was initiated at testbean.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:64)
Poking around, I found that the 10.1.3 oc4j doesn't contain any "PropagatedIdentity" class, but 10.1.3.3 does contain that class in the oc4j-internal.jar.
Has anybody been seen this error or know what causes it? I assume that it should be possible to make a remote call from within one oc4j to another oc4j running a different version, but perhaps there's a conflict with the client classloading that prevents this.
Any input is appreciated.
Thanks,
-- DaveHi Stephen,
Using a registry, for example UDDI [1], would be one solution. WLS has
a complete UDDI implementation builtin [2] for this purpose.
You are correct, you need to pass the service address location found in
the <service> section of the WSDL.
Hope this helps,
Bruce
[1]
http://www.uddi.org/
[2]
http://e-docs.bea.com/wls/docs81/webserv/uddi.html
Stephen Kurlow wrote:
>
I am not sure what I need to do to be able to call a remote webservice (runs on
another weblogic server instance running on another machine in the same network)
from within a webservice. I have 2 wsdl files and I have created webservice controls
from them. I have successfully written code in the first webservice to instantiate
the parms to the 2nd webservice and invoked the 2nd webservice when both webservices
are deployed to the same weblogic server instance. So i can see the params being
marshalled and unmarshalled in the test browser.
Now how do I install the 2nd webservice on another weblogic server instance and
instruct the 1st web service to call the 2nd webservice residing on another weblogic
server instance? I presume some kind of lookup (url?) is needed and is it via
what is contained in the wsdl file?
Thanks in advance,
Stephen Kurlow
Maybe you are looking for
-
Can I use the same Apple ID for multiple devices
Can I use the same Apple ID for multiple devices?
-
Jco connection error while calling Custom FM in CRM Internet Sales Application
Hi , I am trying to do some customisation in the CRM ISA 4.0 development component. Have followed the steps given in the Development and Extension Guide and tutorial PDF Steps done for Custom RFC Call 1. Create RFCs 2. Edit file backendob
-
I've tried searching everywhere and found similar issues, but nothing exactly this. I'm trying to format a document which was created in a Windows version of Word (unsure which year). However, the document has some scientific writing and minor equati
-
I have FF and win7. Fonts turn to weird characters at more then 75% zoom when the checkbox "allow webpages to choose their own fonts" in the contents option > advanced is checked, when forced to calibri this behaviour doesnt occur An aexample of that
-
Auto GR for the same material and with different routings to diff stor loc
Hi All, I have a semi finished material having 2 different routings line 1 and line 2 and with respective 2 different storage locations but need to have Auto GR.