How to access an object's variable from native code
i am passing an object in a native method.i have to change the value of the object's variable.how do i access the variable of object and assign it new value from c++ code.when i try to access it i get a message that the variable must have a class/sruct/union type.
pl. help.
I'll tell You if You send me the structure of this object in Java. And a name of field what are You thinking about.
Maciek
Similar Messages
-
How to access a JAVA Script variable in JSP Code
How to access a JAVA Script variable in JSP Code. I have been unable todo this.
Plz Suggest a way.
Thanks
Soumyatry to do this code
String s=request.getParameter("javascriptvariablename"); -
How to invoke BPM object instance variable from interactive activity?
I have a screenflow with an automatic activity "A" followed by an interactive activity "B". "B" calls a BPM object "X" and uses a JSP presentation to show its attributes. Is there a way to use another BPM object, say type "Y", create an instance variable of that type inside "A", and get its attributes values from the JSP page associated to "B"?
Edited by: user6473912 on 20/07/2010 03:37 PMTry this. It assumes you have:
<li> a user named "auto"
<li> a project variable named "customerType"
<li> an instance variable named "orderAmount" that is a decimal
<li> an instance variable named "order" that is a BPM Object that has attributes named "customerName" and "amount"
ps as ProcessService
xmlObject as Fuego.Xml.XMLObject
do
connectTo ps
using url = Fuego.Server.directoryURL,
user = "auto",
password = "auto"
instF as InstanceFilter
create(instF, processService : ps)
addAttributeTo(instF, variable : "customerType", comparator : IS, value : "Gold")
instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS)
for each inst in getInstancesByFilter(ps, filter : instF) do
// here's how to get the value inside a primitive instance variable
orderAmtObj as Object = getVar(inst, var : "orderAmount")
// here's how to get the value of attributes inside a complex BPM Object instance variable
// - in this case this is an "order" object with two attributes (customerName and amount)
orderObj as Object = (getVar(inst, var : "order"))
xmlObject = Fuego.Xml.XMLObject(createXmlTextFor(DynamicXml, object : orderObj, topLevelTag : "xsi"))
logMessage "The value of the order object's customer name is: " +
selectString(xmlObject, xpath : "customerName")
logMessage "The value of the order object's order amount is: " +
selectNumber(xmlObject, xpath : "amount")
// here's a rather uninspired way to retrieve who the participant is that was assigned the instance
logMessage "The participant assigned to this instance is: " + inst.participantId
end
on exit
disconnectFrom ps
endDan -
How to access Business object type attribute from a method/function modul ?
Hello,
i have created a business object type object along with attributes and methods. Now inside the method i want to access the attributes. inside the method i am writing:
data a type XXX.
a = me->attribute
this is creating a compilation error.
Now the method is defined as a function module in some package, so can anyone inform me how to access object attributes from the function module ?
pointes are awarded
RegardsHello,
thanks for your answer, but this too did not work, "=>" is for static attributes and the attributes i have are not static. Moreover, i tried it but it gave the same error :
the abap error was when i was checking the code is :
the type me=>documenttype is unknown
as you know in SWO1 i created an object and when i create a method you link it to a function module and this is where you have the implementation of the method, so from this method how can i access the attributes on the main object that i created in SWO1
regards -
How to access TestStand Event and variables from external application?
Hi all
The test system was built by TestStand, now there is a new requirement to filter the test report without change the sequence file. The task must be done without any impact to previous software system, so I decide to write a tool by VC++.
My idea is to deal with the reports after every UUT loop, but I need to monitor the UUT loop status by VC++, if an unit is tested, pass or fail, raise a event and pass to VC++ application. In a word, I would like to access TestStand internal event and variables.
Anyone has ideal on this case? ActiveX or something.
thanks .
Rexxar
*The best Chinese farmer*paulbin,
While sharing variables via COM or DCOM is certaintly possible, I don't think you need to go down that route. I think that there is probably an easier way to limit your report. In your Configuration menu, under the Report Options item, there is a field at the top that will allow you to filter what steps go into your report.
This will not affect any sequence file you may have already created, all it does is change a few options in the ReportOptions.ini file in the <TestStand>\cfg directory.
This is a much simpler option than trying to write a program to interface with a running TestStand engine.
Josh W.
Certified TestStand Architect
Formerly blue -
How to Access a BPM container variable in XI graphical message mapping
Hello XI BPM and Mapping experts,
is it possible to access a BPM container variable from an graphical mapping?
If yes, how ?
We need this for the following scenario:
IDOC to BPM.
BPM transforms and sends transformed IDOC to fileadapter
If both steps are successful a STATUS.SYSTAT01 IDOC should be send back to SAP-ISU with status 06.
If one of these steps fails the status in the SYSTAT01 should be set to 05. (Exception branch of block)
We want to avoid to write 2 mapping programs for mapping the SYSTAT01.
Instead we would like to use a BPM Container Variable which contains the status.
In the mapping for the SYSTAT01 we want to use this Container Variable.
Is this possible?
Thanks for soon answers.
Regards MarliesHi Marlies,
Is not possible to acces a BPM container variable from graphical mapping. For other hand, you can to use runtime variables for this purpose.
You could create an abstract interface with a message type having a single node with the required value and using this message in other mapping.
Best regards
Ivá -
How to access Business Objects Explorer?
I am new to Business Objects and would like to know how to access Business Objects Explorer from my local system. I have Business Objects XI 3.1 installed on my system.
I would like to know if BO explorer requires a separate installation package? If yes, how can I acquire it?
If No, what are the steps to integrate the BO Server with the BO explorer?
Edited by: Bhavani I on Jan 28, 2010 11:23 AMHi,
You can refer to the below link for more details on BO EXplorer,
https://cw.sdn.sap.com/cw/servlet/JiveServlet/previewBody/119973-102-1-220562/BO%20Explorer%20Implementation%20checklist.pdf
Regards,
Balajee
Edited by: Balajee Sivakumar on Apr 27, 2011 6:30 PM -
How To Access PAGE ITEM (single row) from HTML source
Hi Guys,
I have a page Item that return a string.
I would like to show this string
How To Access PAGE ITEM (single row) from HTML source?
My desire final output is
<marquee>:P1_PAGE_ITEM</marquee>
Can please help me
ThanksHi,
You can refer the page items in your page header as &itemname. For example, if I have page item P15_TEST, I will add the following in header:
<marquee>
&P15_TEST.
</marquee>But make sure that you have a process before header to populate the value in your page item. Otherwise, there will be a null scrolling (which you can't see!) :)
Regards,
Zahid -
How to execute a Command Prompt command from J2SE code executing on Windows
How to execute a Command Prompt command from J2SE code executing on Windows??
Please help me[http://java.sun.com/docs/books/tutorial/getStarted/]
~ -
How to send SMS ( Short Message Service ) from java code
Hi
How to send SMS ( Short Message Service ) from java code.
Thanks
GauravDo you need to receive SMS? If you need to receive SMS, you will need to host your own GSM device or modem so that people can send you SMS.
If not, you can just use internet SMS gateways like clickatell as mentioned above will do the work, and post to them by HTTP, XML or email. The cost is about 6-8 cents per SMS. There are cheaper services, but not always reliable. If you need to host your own GSM device, you can use software like http://www.kannel.org (GPL Open Source) or http://www.visualgsm.com. Alternatively, you may obtain a shortcode from your Telco - but these come with monthly subscription of maybe one or two hundreds.
Regards,
Joshua
<SMS Gateway>@Expert -
How to access the parent class variable or object in java
Hi Gurus,
I encounter an issue when try to refer to parent class variable or object instance in java.
The issue is when the child class reside in different location from the parent class as shown below.
- ClassA and ClassB are reside in xxx.oracle.apps.inv.mo.server;
- Derived is reside in xxx.oracle.apps.inv.mo.server.test;
Let say ClassA and ClassB are the base / seeded class and can not be modified. How can i refer to the variable or object instance of ClassA and ClassB inside Derived class.
package xxx.oracle.apps.inv.mo.server;
public class ClassA {
public int i=10;
package xxx.oracle.apps.inv.mo.server;
public class ClassB extends ClassA{
int i=20;
package xxx.oracle.apps.inv.mo.server.test;
import xxx.oracle.apps.inv.mo.server.ClassA;
import xxx.oracle.apps.inv.mo.server.ClassB;
public class Derived extends ClassB {
int i=30;
public Derived() {
System.out.println(this.i); // this will print 30
System.out.println(((ClassB)this).i); // error, but this will print 20 if Derived class located in the same location as ClassB
System.out.println(((ClassA)this).i); // error, but this will print 20 if Derived class located in the same location as ClassA
public static void main(String[] args) {
Derived d = new Derived();
Many thanks in advance,
FendyHi ,
You cannot access the controller attribute instead create an instance of the controller class and access the attribute in the set method
OR create a static method X in the controller class and store the value in that method. and you can access the attribute by
Call method class=>X
OR if the attribute is static you can access by classname=>attribute.
Regards,
Gangadhar.S
Edited by: gangadhar rao on Mar 10, 2011 6:56 AM -
How to access Captivate Objects From Widget
Using the widget factory, is there a way to access a specific property such as a button or textbox in a captivate movie from an widget?
The button in captviate does have an instance name called button_mc. In my widget, I do have
myRoot = MovieClip(root);
mainMov = MovieClip(myRoot.parent.root);
Also, how can you get the slide properties such as total frames?
Can't seem to find out how or I am just missing something
ThanksHi Ukie,
Here's an article on how to access objects on the Captivate slide with WidgetFactory: http://www.infosemantics.com.au/widgetking/2010/10/slip-sliding-away/
In short, pass in the instance name of the button into the getSlideObjectByName() method:
var myButton:Sprite = getSlideObjectByName("button_mc");
Also, WidgetFactory has a property widgetSlide wich gives you access to the slide that the Captivate Author placed the widget on. This is a MovieClip, so if you wanted to read its total frames, you'd write:
widgetSlide.totalFrames;
Hope that answers your questions. -
How to access COM+ Objects From JSP
Friends,
We have a requirement to access COM+ objects from JSP. Please guide me on this.
Thanks in advance.
TaraniSanyam wrote:
if there is any .dll extension file, how can we read that file in labview?
You can use Call Library Function node to call that dll file and use it in LabVIEW. Read the help and you will get more details. -
How can you get the public variables from object that extends JLabel?
I'm using the mouseClickedListener method e.getComponent(); to get the component that is clicked on the sceen. The component i clicked is type "object" and extends a jlabel, and i really need to acces a variable from it. Heres the code i'm using-
MouseListener listenerDown=new java.awt.event.MouseListener() {
public void mousePressed(MouseEvent e){
paintAll();
mX=e.getX();
mY=e.getY();
public void mouseClicked(MouseEvent e) {
Component c = e.getComponent();
drawResizeBox(c);
selected=c;
public void mouseReleased(MouseEvent e) {
public void mouseEntered(MouseEvent e) {
public void mouseExited(MouseEvent e) {
package javapoint;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.geom.Line2D;
import java.awt.image.BufferedImage;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
public class object extends JLabel{
public object(Rectangle rect,int id){
idNum=id;
Rect=rect;
BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
Graphics2D g = (Graphics2D) image.getGraphics();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g.drawRect((int)rect.getX(), (int)rect.getY(), (int)rect.getWidth(), (int)rect.getHeight());
Icon icon = new ImageIcon((Image)image);
setIcon(icon);
setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);
mainFrame.slideArr[mainFrame.sIndx].add(this);
setVisible(true);
r=true;
object(Oval oval,int id){
idNum=id;
setBounds(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
getGraphics().drawOval(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
o=true;
setVisible(true);
object(Line2D line,int id){
idNum=id;
setBounds((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2()); //Not gunna work
getGraphics().drawLine((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2());
l=true;
setVisible(true);
object(Icon icon,int id){
idNum=id;
setIcon(icon);
setBounds(50,50,icon.getIconWidth(),icon.getIconHeight());
i=true;
setVisible(true);
void drawObject(object obj){
if(r){
Rectangle rect=obj.Rect;
setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);
Rect=rect;
BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
Graphics2D g = (Graphics2D) image.getGraphics();
g.setColor(Color.red);
g.drawRect(0, 0, (int)rect.getWidth(), (int)rect.getHeight());
Icon icon = new ImageIcon((Image)image);
setIcon(icon);
}else if(l){
}else if(o){
}else if(i){
public boolean r=false;
public Rectangle Rect;
public boolean o=false;
public Oval Oval;
public boolean l=false;
public Line2D Line;
public boolean i=false;
public Icon Icon;
public JLabel label;
public int idNum;
}Edited by: ghostbust555 on Feb 12, 2010 2:14 PMghostbust555 wrote:
Well see the problem is i have an array of 200 objects.What does that have to do with anything? And if it does, why isn't it in the code you posted?
I dont understand what you mean in your "Edit..." part. could you show some code/ explain farther? sorry if its a dumb question I'm still a bit of a novice at java.Yeah.
object yuck = (object) e.getComponent(); // That's a cast.
boolean yucksR = yuck.r; // Get the "r" variable from the object. -
Access a instance level variable from activity in a subflow
I have a flow such that it calls a number of subflows chained together.
I have defined a instance variable to store a flag when a perticuler activity has been executed.
in one of the subflows, there is an activity which i need it to update the parent level instance variable when it has done its task.
but, i'm not sure how to get access to the parent level instance variables from an activity with in a subflow.
I have PAPI code polling on the instance wating for this variable to change.
any ideas?in a clip on the main timeline:
var mc = this.parent;
in a clip on the main timeline that was added with a loader:
var mc = this.parent.parent;
the first parent would be the loader
the second parent is the loader's parent, or, the main timeline
Maybe you are looking for
-
How to use my apple id in app store
I want use that below
-
The group policy client service failed the logon access is denied.
This one is starting to get on my nerves now. We've had 2 users suffering this problem on our Remote Desktop server. We are running two Windows Server 2008 SP2 domain controllers, with two Windows 2008 R2 servers running RD Gateway and Remote Desktop
-
Oracle BPM 12c: getting error while opening of bpm project in bpm composer
Hi, I am importing bpm project into bpm composer from jdeveloper using PAM and export/import utility but I am not able to open it into the bpm composer. I am getting following error: javax.faces.el.EvaluationException: java.lang.NullPointerException
-
Slackware to Arch server switch questions
I want to have this setup, with all PCs running arch: http://img.photobucket.com/albums/v637/ - SYSTEM.jpg I currently run NTL and the modem has a eathernet port on it so its all easy and good with my slackware server DHCP on one network card and fix
-
Reducing Project Size, Removing unused media
I just finished a project and now I'd like to reduce the size to free up some hard drive space. I'd like to keep the captured media files that were actually used in case there are any changes from the client, but delete the ones that were not. Is the