Object trough vi
Hello,
I had a sight at lvoop examples but i didn't see examples where
objects are used just with their names through vi, objects are passed via terminals.
How do you pass object from a vi to another without wiring it, using another vi implementing
shift register saving and restoring object thrue vi like a FGV ?
Regards
Tinnitus
CLAD / Labview 2011, Win Xp
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Solved!
Go to Solution.
I looked at the earlier versions of OOP for LV but since my apps demand high perfomance and the old version used a "core" that I could not touch, I avoided those version since the buffer copies would kill all of my apps.
LVOOP seems very well behaved buffer wise so I started LVOOPing when it ws first released (not on customers project until latter). I think it was LV 8.2 where I had a project spec that required I be able to deploy enhancements with out updating the exe that drove me into LVOOP since dynamic dispatching allows this type of upgrade.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Similar Messages
-
Hi guys
i'm trying to write a small client / server application where the server will send an sql query to a jdbc database and then send the results to the client.
So far i have set up the database and have got the server to succesfully send the query and store the result in a ResultSet object. The problem i have now is sending this object through a stream to the client.
To do this i have a class called ResultOBJ that implements the serializable interface and has a result set object inside, the server sets this to the ResultSet that contains the results of the query. It then sends this to the client using the ObjectOutputStream and is read using the ObjectInputStream.
However whenever i try this the server produces a NotSerializableException and i can't figure out what is going wrong.
This is the part of the code that sends the object .....
out = new ObjectOutputStream(skt.getOutputStream());
resu = new ResultOBJ(out);
Class.forName(driverName);
conn = DriverManager.getConnection(dbURL, username, password);
Statement stmt = conn.createStatement();
String SQLcmd = "SELECT * FROM BOOKS";
resu.setResultSet(stmt.executeQuery(SQLcmd));
out.writeObject(resu);
out.flush();
System.out.println("Results sent");
out.close();
skt.close();
To read in the object i use ......
inst = new ObjectInputStream(in.getInputStream());
rs = (ResultOBJ) inst.readObject();
where rs is a ResultOBJ class.
Finally the ResultOBJ class is defined as follows ....
public class ResultOBJ implements Serializable
private ResultSet rs;
private ObjectOutputStream outst;
public ResultSet getResultSet(){
return rs;
public void setResultSet(ResultSet in){
rs = in;
public void next() throws SQLException{
rs.next();
public String getString(int columnIndex) throws SQLException{
return rs.getString(columnIndex);
public ResultOBJ(ObjectOutputStream oos)
outst = oos;
I've spent about a week on this single problem and haven't been able to solve it, i know everything should work because if i change the line that send the object i.e.
out.writeObject(resu);
to
out.writeObject("Some Text");
and then print the result after reading it in it all works, so i know the connection works, i know the jdbc query was successful.
I'd REALLY appreciate any help you can give me with this because it's driving me madpogotc,
ResultSets objects are not serializable, so you cannot send directly a ResultSet object trough a stream. To send your query results over serialization, you must read and store each returned record in a specific object that represents data stored in your table BOOK, and add this object to a list, like ArrayList. -
Create a entity using a session bean in web dynpro
Hi.
I want to create an entity bean object trough an EJB session bean in web dynpro, e.g using a form in a WD application filled in by a user.
I understand how to display a list of entity beans through a session bean and a table, but I don't understand how to create (or edit or remove) such information.
My session beans look like this:
@Stateless
public class MyObjectBean implements MyObjectLocal {
@PersistenceContext(name = "MyObject", unitName="ProjectPU")
public EntityManager em;
public void create(MyObject myObject) {
em.persist(myObject);
public void edit(MyObject myObject) {
em.merge(myObject);
public void remove(MyObject myObject) {
em.remove(em.merge(myObject));
public MyObject find(Integer id) {
return em.find(MyObject.class, id);
@SuppressWarnings("unchecked")
public List<MyObject> findAll() {
return em.createNamedQuery("MyObject.findAll").getResultList();
So the model class would be called Request_MyObjectLocal_create.
I attempted to use [this|http://help.sap.com/saphelp_nwce10/helpdata/en/45/dd45e4bc295595e10000000a1553f7/frameset.htm] help file but I find the answer (step 17) quite unclear.
Help is greatly appreciated!
Vincent.I've just found the solution from Steve Muench weblog, always useful by the way!
You can find the solution at this link http://radio.weblogs.com/0118231/stories/2004/05/07/handcodingDynamicDiscoveryOfEjbdeployedAppmodule.html
In summary, we need to use the class com.evermind.server.rmi.RMIInitialContextFactory, which supports dynamic lookup, and implement the lookup ourselves.
The code I've written to lookup the service is listed below:
public static ApplicationModule getAppModuleManutencao() {
try {
Context ctx = getContext();
ManutencaoFacadeHome home = (ManutencaoFacadeHome) ctx.lookup(EJB_MANUTENCAO_BEAN_NAME);
ApplicationModule am = ApplicationModuleProxy.create(home, null);
return am;
} catch (NamingException nex) {
nex.printStackTrace();
return null;
private static InitialContext getContext() {
try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "welcome");
env.put(Context.PROVIDER_URL, "opmn:ormi://dsv008:OC4J_dvt20/mct");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
return new InitialContext(env);
}catch (NamingException e) {
e.printStackTrace();
return null;
I hope this helps someone!!!
Cheers! -
I'm trying to connect the HR user to be able to view the schema objects owned by the user.
SQL> connect HR/Passwd
ERROR:
ORA-28000: the account is locked
Why can't HR connect, I gave it the same attributes as SYSMAN. Also, if I'm in SYSMAN I can do the SQL> alter session set current_schema=hr; but I still can't see the schema objects trough SELECT * from USER_OBJECTS; and my SHOW user; always comes back as either sys or syman. Please tell me what I'm doing wrong.
Here's the output from EM...
General
Name HR
Profile DEFAULT
Authentication Password
Default Tablespace USERS
Temporary Tablespace TEMP
Status UNLOCK
Default Consumer Group None
Roles
Role Admin Option Default
AQ_ADMINISTRATOR_ROLE N Y
AQ_USER_ROLE N Y
AUTHENTICATEDUSER N Y
CONNECT N Y
CTXAPP N Y
DBA N Y
EJBCLIENT N Y
EXP_FULL_DATABASE N Y
RESOURCE N Y
System Privileges
System Privilege Admin Option
ACCESS_ANY_WORKSPACE N
ALTER SESSION N
CREATE DATABASE LINK N
CREATE SEQUENCE N
CREATE SESSION N
CREATE SYNONYM N
CREATE VIEW N
UNLIMITED TABLESPACE N
Object Privileges
Object Privilege Schema Object Grant Option
EXECUTE SYS DBMS_STATS NThe hr user account is unlocked, however I still get this error: ORA-01017: invalid username/password; logon denied
I know it's valid because all my accounts have the same password.
Any ideas? -
ORA-01840 error on inserting row trough object browser
Dear Oracle Community,
I'm getting the ORA-01840: Input value not long enough for date format error when I try to insert a row with the date value 24-MAY-10 with my object browser.
This is the problem column:
Column Name | Data Type| Nullable| Default | Primary Key
SIGNUPDATE |DATE |No | - | -
Now this will look like I'm using the wrong date format so I have googled and found that I should use the following query to check for the correct date format my database uses.
select * from nls_session_parameters where parameter = 'NLS_DATE_FORMAT';
This returns the DD-MON-RR format so I think I'm inserting the correct date format here.
What am I doing wrong?
I have already tried inserting with the following formats and tried replacing the - sign with the / sign.
DD-MON-RR
DD-MON-YY
DD-MON-YYYY
I have also tried using the SYSDATE is in the DD-MON-RR format trough the SQL commandline.
I'm feeling like an idiot this should be simple right?
Please help me out here this is frustrating, many thanks in advance.
J Nijmanusing the SYSDATE is in the DD-MON-RR format trough the SQL commandlineIn sqlplus try:
insert into <tablename> ( <date columnname> [, ... ] ) values ( sysdate [, ...] );
To get a sysdate date value added. Or specify the format string with a to_date expression:
insert into <tablename> ( <date columnname> [, ... ] ) values ( to_date( '24-may-10', 'dd-mon-yy') [, ... ] );
The engine isn't picky about separators agreeing with the format string, most any character in place of the '-' dash is acceptable.
Now to get an ora-1840 out of the object browser (Table/Data/Insert Row), I'm not having any luck trying to duplicate that. With the default nls_date_format 'DD-MON-YY' even trying bad dates (i.e. 30-feb-10 or 30-feb-2010, or even 31-apr-10) it either does an ora-1839: date not valid for month specified, or with a four digit year it gives an ora-1830: date format picture ends before converting entire input string.
Any RDBMS presents programmers with date and datetime challenges, its not just an oracle-frustration thing ;) -
DB2 Connectivity Trough ADO Objects in Adobe Form Designer
Hi,
We are using
Adobe Workflow Server 6.2 and
Adobe Form Designer 5 to develop forms. In forms we have to display some information retrieved from IBM's DB2 database at two different stages. First at the beginning of the process, for which we have scripts in the process which are working fine. Second at run time, i.e., the user will enter ID of an employee and we have to retrieve the corresponding information of that employee. For that we are using ADO objects, provided in the form designer.
The problem that we are facing is that these forms uses ActiveX controls and they are executed on the client's PC. At run time when we try to access the DB2 database we get an ODBC error:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, because the DSN is on the server not on the client's PC. The forms are working fine on those PC that have DB2 client installed on them.
We want that ADO object to be executed on the server not on the client's PC. Is there any way or doing so? Or is there any other solution?
Please let me know asap as I have been facing this problem for many days.
Thanks.
--Khan.Khan--
Your best bet in my opinion would be to drop the use of the Adobe ADO Object and switch to one of the following db connectivity scenarios.
- MS Remote \ RDS; has some MS security draw backs but allows remote access to a db from a single DSN.
"+" : Much faster to deliver
"-" : Have to work around MS server \ browser security issues
- Custom solution using xml DOM \ SOAP calls to pass your data requirements to an ASP \ ASP.NET component. This component would be used to execute the sql statement read from xml package then return that result back to the form.
"+" : Increase in performance due to server side execution, very little MS Security implications
"-" : Not a quick solution to build as it involves many different components to function
Hope this helps somewhat... -
EJB3 & Patterns: Transfer Objects
EJB3 Entities look really nice, but I have a couple of slightly related questions...
Now that our entities are also POJOs, do we need the TO pattern all that much?
With EJB2 I would have the heavy entity/session beans create light POJO TOs to pass trough the session beans on to the client, this would decouple the clients from the entity beans and if we refactored the entities the clients wouldn't need to know as long as we didn't refactor the POJO TOs.
With EJB3, the entity beans are also POJOs when they leave the container... thus I don't have to write two sets of classes... but I lose the decoupling...
I'm not entirely sure I wanted the decoupling all that much for most of the time... and I suppose if we do refactor, I can just keep the former EJB3 Entity/POJO TO as a POJO TO and generate it from the now refactored EJB3 entities... but I'll still have the annotations in the class (unless I strip them... which means recompile the client) so now I have TOs which were EJB3 Entities and are still annotated as such, but which are not being used as such anymore... sounds like a mess!
And now for the more specific question:
@Entity
class Customer {
private List<Project> projects;
@OneToMany
public List<Project> getProjects() { /* ... */ }
@Entity
class Project {
private Customer customer;
private List<Task> tasks;
private boolean active;
@ManyToOne
public Customer getCustomer() { /* ... */ }
@OneToMany
public List<Task> getTasks () { /* ... */ }
public boolean isActive() { /* ... */ }
@Entity
class Task {
private Project project;
@ManyToOne
public Project getProject() { /* ... */ }
}Now in the above situation, customers have 100s to 1000s of projects each with 10s to 100s of tasks... i.e. the projects are not exactly light objects in and of themselves. (note: i've refactored the object names into a more easily identified problem domain)
I want to pass a customer object to the client app...
in some situations the client app does not need to know all the past projects of the customer, only the active ones
in other cases the client app needs to know nothing about projects (active or not)
in other cases the client app needs to know only the project names...
Question: (obviously we'll use LAZY fetching) what's going to happen to my customer entity when I detach it to use it as a TO?
Will it only have those child objects that I accessed before detaching? Or will it have the potentially megabytes of data for all the inactive projects and all their tasks? My guess is that it depends on the container... and it looks like I'm back to having building TOs in order to guarantee good performance across container vendors
Or have I got it all wrong?
Do I just have to have three getClient methods in my CustomerRepositoryBean...
public Customer findCustomer(...) /* before we detach, recurse all the projects and their associated tasks in the customer to ensure it's all been fetched */
public Customer findCustomerWithActiveProjectNamesOnly(...) /* before we detach, recurse all active projects, but only access the project name field of the projects */
public Customer findCustomerWithoutProjectDetail(...) /* detach without accessing the projects */OK, I'm not the only person thinking that DTOs are note so necessary anymore with EJB3...
http://www.jroller.com/page/raghukodali?entry=dto_an_antipattern_in_ejb
But I'm wondering if I have a case for them with my code sample... -
Hi everyone,
I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
And the notifications configured on approval task does not start either.
The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
Has anyone passed trough this situation in SP09?
I think there is an issue with the runtime components delivered with this initial package of SP09.
Suggestions?Hi Kelvin,2016081
The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
For more info about the issue and the patch please refer to SAPNote 2016081.
@Michael Penn - I might be able to assist if you provide the ticket number
Cheers,
Kristiyan
IdM Development -
Objects look like bitmaps when importing vector files
Hello,
I am absolute beginner with ID CS5. I am going trough a bunch of tutorials, and there is one thing I cannot solve.
When I am importing vector file content (Illustrator CS5 file with vector objects - strokes) into InDesign frame,
imported object looks like low resolution bitmap. What am I doing wrong? Is there any option I should enable or disable
to have imported objects in vector format?
Thanks in advance for answers,
Best Regards,
MiYup! Try View -> Display Performace -> High Quality. InDesign substitutes low-res previews when you're in Standard display mode. (And ID tends to run a great deal faster when it's not rendering print-res images, so you're probably best off working in Standard mode unless you have a monster of a desktop machine, or unless your work requires that you see the high-res image while you're doing other tasks in ID.)
-
Forward PO as pdf attachment from Services for Object to external emails.
Hi, I am trying to forward PO to external email address from PO services for objects. I could not send as pdf document to external email address. SAP users are receving as SAP object in inbox. I can achieve this trough Message Determination for vendors. However my requirement is to forward to muliple external parties and internal users who do not have SAP access. Please advise any configuration or development need to be carried out to forward PO as pdf attachment. Advance thanks for your valuable inputs.
check answer given by Soumyaprakash in below thread:
http://forums.sdn.sap.com/thread.jspa?threadID=2111142 and
also have a look at below thread
http://forums.sdn.sap.com/thread.jspa?threadID=1324971
but i would like to know why you need to send PO to anybody but supplier?
yogesh
Edited by: Yogesh Lohiya on Feb 8, 2012 7:25 PM -
Indesign CS5 - how to align objects
Dear All,
I have a problem with Indesign that is present from CS2 trough CS3 & CS4 version. I thought that CS5 version finaly will solve this issue, but it seems to me that nothing changed.
When we have to align two objects lets say in Illustrator, we may always mark the reference object by second click (then it is locked). In different software the sequence of marking objects for aligment is important (even better solution in my opinion than in Illustartor). But in Indesign things work different. If we align objects to the top - the most top object is reference. When we align to the left the object most to left is the base for aligment.
I think that everyone learned to live with that by right placing the objects before aligment. Sometimes by centering (in past versions) we were forced to lock one of the objects before aligment. But now in CS5 locked object is not selectable. Besides that I never liked this long "work around" method.
My question is how to easy align vertical centres of the objects shown on the picture below when I want object A to stay on place and object B to be centered to A. I don't want to use smart guides.
PaulHello Peter,
thank you for fast feedback. I appreciate it.
I don't want to use smartguides because when there are more objects around it will be confusing to guess if you have right center or not.
Changing preferences for locked objects will not help much I guess. I like the way the locked objects are unselctable now and of course, as you mentioned, it is time consuming way to go.
The case is, that I would like Adobe to add this issue to the wish list. If this "double click" way is good for Illustrator, why it is not implemented in Indesign, forcing users to use some magical, time consuming, workarounds.
To be honest, I hopped that I miss the point in this case and someone will tell me some obvious shortcut to use by selecting the objects to get the things right.
Paul -
When is object type decided?
I'd like to know when "OLTP Object Type(*)" is decided.
Though I created the planned order in APO, "OLTP Object Type" wasn't determined.
I checked existed planned order in my system and I found some planned orders have already been assigned "5" for "OLTP Object Type" but the others haven't been assinged yet.
When is object type decided? And how can we control this?
*OLTP Object Type = R/3 Object Type = Order_Type (import parameter of "BAPI_MOSRVAPS_SAVEMULTI3"(Order Category in OLTP System))
The selectable values are the following.
0 Stock
1 Purchase Requisition
2 Purchase Order
3 Sales Order
4 Planning
5 Planned Order
6 Production Order
7 Reservation
8 APO Local Order
9 Advanced Shipping Notification
A Order Confirmation
B Delivery
I Inspection Lot
M Maintenance Order
P Project Order
R Proposed Order
T Shipment
V VMI Stock Transfer Order
Not yet determined
You can check the "OLTP Object Type" from transaction code "/n/sapapo/om16" (Ordmap Anchor Table tab).Hello Shohei,
"OLTP Object Type(*)" is of more importance to the external system; surely, it would be assigned after the number is changed by the CIF .
The document is created an send it to R/3 or ECC (if you have publication types, Integration models, etc...); when the external system confirm the document and return it to SCM via CIF, the "OLTP Object Type(*)" should be assigned.
Probably you only have this number for documents working on planning version 000, and not for other planning versions.
At the end: "OLTP Object Type(*)" is decided by the external system, when documents go trough CIF.
Please check the following documentation:
"Order Category in OLTP System
The (OLTP or R/3) order category is used in addition to the order number to identify an order that has been transferred from an external (or R/3) system to the APO system.
Some examples of order categories are sales orders (fixed value 3), purchase orders (fixed value 2), and production orders (fixed value 6).
You can use various (OLTP or R/3) order categories for certain APO business objects, such as production orders or in-house production.
For example, a procurement order (BUS10502) in the APO system can contain both procurement orders (category 2) and purchase requisitions (category 1). In APO, the order category is only used to identify an order in combination with the order number. The category is also used in part to determine if an order/schedule line in the APO system can be changed by a user or not (a purchase order, for example, may no longer be changed, while a purchase requisition may still be changed). Generally, the order category is of more importance to the external system. For example, the R/3 system needs to know whether it is a purchase order or a purchase requisition that is being dealt with.
If an SAP (e.g. R/3) system is not linked to the APO system, and this system is to be used to exchange the order information that requires a certain order category, we recommend that you use the standard values, for example category 2 for business object BUS10502.
Orders that are created within an APO system, for example in a planning run, are not given an (OLTP) order category when created, since they were not transferred to the APO system from an external system. These orders all automatically receive (for example, when they are imported) the order category 8 (APO local order). These orders have an APO internal order category which distinguishes between criteria such as in-house production or external procurement. In a subsequent (optional) step, an external system can then decide whether an order created in APO is a purchase order (category 2) or a purchase requisition (category 1) and assign it an (OLTP) order category and an (external) order number.
You find these values in the documentation of the respective function or of the domain fixed values.
Note that certain functions (for example, configurations) are only possible for certain order categories."
Regards,
Gustavo Pérez -
How to use a path (mask) as a guidance path for an object?
Hello,
I want to use a path / mask as a guidance line for an object. I know i can draw a mask, then cut the path parimeter and paste it into the the position, but that seems to come with all kinds of restrictions. For example; when i use that method, i can't make the object stop moving halfway trough the animation. Also i cant animate the object further along because the object starts to do all kind of weird things, like flipping horizontally / vertically.
I was wondering if there isn't just a function build in After Effects to track a path? Or a plugin?
Any help would be much appreciated
Thanks in advance!
Kind regards,
YoriMy keyframing skills are pretty developed, but all rules i know regarding keyframing seem to go out of the window as soon as i paste the path into my position parameter... How come it flips the object for example?
What i went to do is: have my object follow a path, then stop, move up a bit, stop again, and then follow another path, but i can't seem to get that done. Also, when i have animated the first path, and i put another keyframe 12 frames further AE makes up some kind of extra path which is supposed to fill the gap between the last keyframe of the path animation, and the next keyframe. I really don't get it... -
Applying materials to loaded objects
Hi,
I'm trying to develop a program whereby users can change the colour of an object. The object is loaded from a 3ds file. Colour accuracy is important, so I was wondering if anyone had experience with altering the properties of a loaded objects material within java3D, as creating several objects with different materials is unfeasible due to the number of choices potentially available (several thousand).
Thanks in advance :)as far as i know
when you load an obj you get a branchgroup underneath the branch group you have some geometry.so run trough the enumeration of the branchGroup's child and go down all the branch (depending of the complexity of the object) until you get a shape3d and get the geometry.
like this it should work
Scene s1 = null;
try {
s1 = f1.load("test.obj");
} catch (Exception e) {
System.exit(1);
BranchGroup bg = s1.getSceneGroup();
Enumeration enum =bg.getAllChildren();
then underneath you'll have you shape3d where you can apply your Appearance
it work like the rest of the graphscene
cyril -
Flash Log In From with Shared Objects
So i want to create a flash log in and registration form for my flash game. THis game is played on your local PC not in the internet and i am using AS 2.0. So on the registration from i want to have two input text fileds: username and password. When you click on register the data from those fields to be saved as Shared Object and then on the log in when you type something in the log in fields (again two fields : username and password) the data that you wrote in those fields to pass trough the saved data as shared objects and if those two are the same then the log in is successfull if i want the movie to go on a certain frame whare it says access denied. pls help
if you use the obviously named textfields:
var so:SharedObject = SharedObject.getLocal("login","/");
if(so.data.username==undefined){
//need to register and assign:
so.data.username=usernameTF.text
so.data.password=passwordTF.text
loginBtn.onRelease=function(){
if(so.data.username==usernameTF.text && so.data.password==passwordTF.text){
//successful login
} else {
//login failure
Maybe you are looking for
-
I'm creating a connection pool for soademo and having issues setting the JDBC URL to access the database. This is what have:jdbc:oracle:thin:@mydb.com:1521:orcl and this is what I get when the URL is tested: Unable to establish connection. Error mess
-
SLA issue - disabling wip journals
Hi, I need to disable the wip journal entries for my secondary ledger. Trying to disable the create accounting for each wip event class and I am promped with the following error: APP-XLA-95474 This event class has details. Please delete all details f
-
CS4 Flash. First attempt to save a file creates an unknown error.
I bought CS4 when I bought my first Mac. I started building an inventory of production software but had only used Photoshop and Adobe. I tried to do my first Flash project today and following a tutorial, I tried to save the initial file and it erro
-
I have iPhoto and it remains to be the most difficult thing for me to learn. I have never quite figured it out, and no matter what I do, I cannot get rid of a single photo to save my life. Sure, I can delete hundreds of photos but they ALWAYS return
-
I like creating reports in VWP - I Type from Brazil
Friend I need help for creating reports in the VWP Anybody knows? Thank�s