How can I configure the Databse Options to save an array of strings to a table?
I have a list of devices associated with a particular test and I have an array with the serial numbers of all the devices. In order to log this information to a database, I created a table with two fields: UUT_RESULT_ID, and DEVICE_SERIAL_NUMBER. Both of this make-up the Primary Key. I need to store each element in my array to a different row in the table and use the ID from the UUT_RESULT table as a foreign key in my new table.
I could write some code to log this data in the database afterwards but I need to know what was the ID generated in the UUT_RESULT table, and I would not like to assume that the last record in that UUT_RESULTS table is what I'm looking for.
Any ideas?
Well, well, well! Looks like I'm answering my own question here! After trying many many things, I finally figured this out and I wanted to share the information in case anyone else needs it.
I needed to save multiple rows of data in a table of my database for every UUT. The configuration screen for the database options allows you to insert statements into your schema. By inserting multiple statements that save data in the same table, you insert multiple rows in that table. The problem with this solution, is that you must know how many elements or how many rows you will be saving and you should create a statement for every element in your array.
In my case the array could have any number of elements.
The solution is to modify the DatabaseOptions parameter in
the process model dynamically. There is a callback in the process model called LogToDatabse. It calls a sequence in Database.seq. To dynamically modify the DatabaseOptions insert steps before this call that insert the elements you need into Parameters.DatabaseOptions.DatabaseSchema.Statements.
This worked great for me!
Similar Messages
-
How can we pass the select-option value to modulepool program?
hi,
how can we pass the select-option value to modulepool program ?
Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
How i get select-option values to PAI of call screen for getting the data from database table to my internal table?Oh I thought that you have selection-screen and again you are working on dialog programming.
if you want to use select-option directly in module pool then it is not possible.
but you can do other way.
create two varaiables
data : v_kun_low like kna1-kunnr,
v_kun_high like kna1-kunnr.
use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
use can enter only low value and high value.
when you come to program point of view
declare one range
ranges r_kunnr for kna1-kunnr.
do the coding like
r_kunnr-low = v_kun_low.
r_kunnr-high = v_kun_high.
r_kunnr-options = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
now you can use r_kunnr in select query ,it will work like select-option.
other than this there is no option.
Thanks
Seshu -
How can I get the frame option that diffuses the edges of a picture in pages 5.2
I recently updated to Pages 5.2 and have discovered that my favorite and most used framing option is no longer a choice. How can I get the frame option that allowed you to diffuse the edges to soften a picture edges on 5.2?
That is called the vignette, and yes Apple has removed it from Pages 5 along with 100 other features.
Pages '08/'09 should still be in your Applications/iWork folder so use that.
Be aware that Pages 5.2 is not only short of features it is also buggy and prone to leaving you with files that won't open.
Peter -
How can I find the "organize" option or export my bookmarks to HTML when no "organize" option appears when I click on the "bookmarks" word on the menu bar?
Menu changed to show "Show All Bookmarks" see item #7 "Menu changes (wording)" in
You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)] -
HOW CAN I CUSTOMIZE THE FIND OPTION OF A LOV
1. Can anybody tell me how can i customize the find option of a LOV....
2. Is it possible to add more then one find option in a LOV
HOW??????????????????????
Can you help me...............no chance with the default-LOV.
You have to create a similliar control on your own. -
How can we configure the width of the table in SAP DB
Hello sirs,
How can we configure the width of the table in SAP DB? (<b>i.e to specify the total width of the sum of all columns</b>). I need to change the default value of table width for adding fields with biggger sizes...
With best regards,
Sudheesh....Hi,
The restrictions for using SAPDB are available at the following link http://dev.mysql.com/doc/maxdb/en/f6/069940ccd42a54e10000000a1550b0/content.htm
The 'internal length of the table' is 8088 bytes, which intern maps to the column width attribute.
Can we change the column width?
The answer is 'NO'.
check the general Column width error (-1115) at link below where it is specified that the column width can be altered http://dev.mysql.com/doc/maxdb/en/bb/57f18204fd11d2a96c00a0c9449261/content.htm
Refer link below for more details on the width of each column (based on the datatype associated with the column). http://orgs.man.ac.uk/documentation/mysql/manual_Column_types.html
So we will have to judiciously look into the boundary values for each column and set the right length because if the column is char(200) and it holds a null value then length allocated is 200 bytes.
The restriction cannot be broken.
Regards,
S.Divakar -
How can i asign value to variables stored in an array of string?
hi
how can i asign value to variables stored in an array of string. i need to do it so that i can evaluate a math expression by usin those values. for example, i have a string array like [x, y, z, k]. now i need to asign 2.0 to x, 3.0 to y and so on. then if i type x+y, the program should evaluate the expression by usin x=2.0 and y=3.0. i am usin JEP for parsing and evaluating.
any help or suggestion would be much apreciated.
here is how i got the array
System.out.println("Type first expression");
BufferedReader br1 = new BufferedReader( new
InputStreamReader(System.in));
String expression1 = br1.readLine();
Jep jep = new Jep();
Node node1 = jep.parse(expression1);
TreeAnalyzer Ta1 = new TreeAnalyzer(node1);
Map<Variable, Integer> map1 = Ta1.getVariables();
/**The following will convert the variable names to a sorted array*/
/**with the result in varNames.*/
String[] res1 = new String[map1.size()];
int i=0;
for(Variable v:map1.keySet())
res1[i++]=v.getName();
System.out.println(Arrays.toString(res1));I could not use HashMap as those variables are to be retrieved from any expression typed by user and thus unknown to me beforehand.
System.out.println("Type first expression");
BufferedReader br1 = new BufferedReader( new
InputStreamReader(System.in));
String expression1 = br1.readLine();
Jep jep = new Jep();
Node node1 = jep.parse(expression1);
TreeAnalyzer Ta1 = new TreeAnalyzer(node1);
Map<Variable, Integer> map1 = Ta1.getVariables();then i have converted them to a sorted array
String[] res1 = new String[map1.size()];
int i=0;
for(Variable v:map1.keySet())
res1[i++]=v.getName();
System.out.println(Arrays.toString(res1));now i need to assign random double values to those variables.
and then use those double values for variables when evaluating the expression.
pls help. -
How can I configure printer with iPad to print only grey tones? This works fine from my laptop - not air printing from that one though. I can't find anywhere on the iPad how to do printer settings and this also seems not to be available as an option when doing a printout. In fact, no options seem to be available. Thanks in advance for reacting!
HermiThere is currently no option for this. You can give Apple feedback here:
http://www.apple.com/feedback/ipad.html -
How can I set the window options for command-N?
Hi,
I have let the Mac OS-X software update run (Java and a few other things), and now when I want a finder window by clicking on the smiling blue face or with command-N, I get a stripped window with only the volumes but no tool bar nor the folders short cuts. How can I restore the full window by default? I can still get the whole window set from the menu bar or with a 3 keys command, but I don't remember where I can set that to be the default window... thanks!Oh Sorry, I have found it "show tool bar" in the Presentation menu!
-
In Multimapping how can we configure the Receiver , Interface Deter for BPM
Hi Friends ,
I am trying the the BPM scenario using Integration Process
BpmPatternCollectTime
from SAP BASIS ® SAP BASIS 7.00 in the namespace http://sap.com/xi/XI/System/Patterns
I have done the scenario like the above . I have followed all the Steps which are used in above scenario.
I am using a File Sender Adapter and Receiver Adapter .
It is Successfully picked up the File but nothing is happening after that .
I am using two receiver Determination one from Ob to IP and other from IP to FIleReceiver ( IB) .
But, I am Getting error as Block1 (No agent) Error in the PE graphical diagram
I have checked in SWWL my Integration Process Return code is "0"
The steps Which i have followed in BPM are
1. Block with Deadlkine branch and Exception handler( as TimeOut Exception)
Block Start and Block End as New Transaction
2. Inside Block infinite Loop which contains Receive step ( Actives the Correlation ) and Multiline Container element which appends the Messages with CollectMessage
3. Transformation Step
It creates the New Transaction and Interface Maping from CollectMessage List to New Mesage
4. Send Step
It sends the New Message . It creates the New Transaction .
Can you Please tell me how to configure the Receiver and Interface Determination for the above scenario ?
Regards.,
V.RangarajanHi Ranga
have a look at these
you can ref: this link to find example where a receiver determination step is used in BPM- http://help.sap.com/saphelp_nw04/helpdata/en/43/6211b11c895f6ce10000000a1553f6/content.htm
More abt RD step in BPM - http://help.sap.com/saphelp_nw04/helpdata/en/14/d5283fd0ca8443e10000000a114084/content.htm
if useful pls reward -
How Can I configure the 6024E board for reading the voltage from a source?
Hi, I have a little problem, I want to use the 6024E board for reading voltage from a source and then display this on the monitor, and also I want to change the voltage from the output using the computer. I read the manual but I don't understand how to connect and configure the board. It is to proof that the board receive and send information.
Thanks, sorry for my english, I'm from Mexico, if you don't understand something about my explanation tell me.Thank you, now I'm trying to do my project and I have another question, there are differents ways to connect the source and I choose the NRSE configuration because I'm going to use a grounded signal source... well in the manual says "The signal is then connected to the positive input of the PGIA, and the signal local ground reference is conenected to the negative input ot the PGIA. The ground point of the signal should, therefore, be connected to the AISENSE pin." I don't understand this because I only have two wires and here is talking about three connections, please help me, how do I connect the source to the board? I have the positive wire and the negative wire.... maybe is because I don't have a perfect english and I don't understand the sentence...
-
I'm using the BNC-2120 DAQ and LabVIEW for interfacing with an ultrasonic position sensor. The sensor is the "PING))) ultrasonic range finder." It measures the distance from PING))) to some object directly in front of it. It has 3 pins (5V, ground, and a signal pin). The 5V and ground are easily taken care of with the 5V and digital ground outputs on the DAQ. The signal (SIG) pin works in the following way:
1) Send a 10us, 5V pulse to SIG. This triggers PING))).
2) Wait 200us. PING))) takes a distance measurement.
3) SIG outputs a square wave with a specific pulse width.
The pulse width varies with the distance of the object away from PING))). I've tried using CTR 1 OUT to generate the pulse, and then using CTR 1 GATE to measure the pulse width. However, the measurement is stuck measuring 0V because CTR 1 OUT is on the same pin! So PING))) tries to output a pulse, but cannot due to the fact that CTR 1 OUT forces the SIG voltage to be 0V. So I need to use just one counter I/O line to trigger and measure. How can I do this?Hi Matttastica,
What DAQ
card are you using? The reason I ask is that the PFI lines on some cards can be
used as PFI lines and digital I/O lines, while on others they can only be used
as PFI lines. The pinouts and diagrams for our cards can be found at www.ni.com/manuals. You can accomplish
what you are looking to do if your PFI line is a DIO lines as well.
I would
suggest doing two tasks, one for counter output and one for counter input.
(Note that both these are not going to be the same line). The counter output
will be used to do a single pulse generation, while the counter input will be
used to read back the period.
This will
work because, at first, we are going to route the line from the counter output
to the counter input line by using a ‘DAQmx connect terminals’ (basically
making the input line an output line for a moment). First, setup the tasks and
the DAQmx connect, start the tasks and have the counter output do a ‘wait until
done’ to ensure the pulse is sent. After this is done, do a DAQmx disconnect
terminals (turning the input back from an output to an input), and then do a
DAQmx read for your counter input (period measurement). You may look at the
shipping examples for pulse generation and period measurement in LabVIEW (Help »
Find Examples... » Search tab … search for examples)
One note is
that since this is software timed, it may not be fast enough to meet your 200us
timing. If this ends up being the case, please look at the 6552, as it can do
per clock cycle direction change very fast.
David L.
Systems Engineering
National Instruments -
How can I edit the share options in Safari 7?
Right next to the forward button where it lets you share to facebook, twitter, ect. how can I change/remove some of those items?
Settings, Internet Accounts and add the account. I had Linkedin on my share tab, canceled my linkedin because of course, and when I removed it from the Internet Accounts, it removed it from my Share tab.
-
How can I configure the Java ME Emulator (3.0) on Mac to launch a browser?
Hi all.
I'm a non-developer user of the Java ME Emulator, where I need to test J2ME applications. I run the Java J2ME ME Emulator on my Mac, version 3.0.
I usually run the emulator as such:
/Applications/Java_ME_SDK_3.0.app/Contents/Resources/bin/emulator -Xdescriptor:/path/to/jad
However, in our application I'm testing - whenever I click a URL/Link that normally opens a browser on a real device - it does nothing on the emulator. How can I get this to work? I've loaded up the 'Java_ME_SDK_3.0' App (/Applications/Java_ME_SDK_3.0.app) and found the settings there for this (Preferences -> General -> Web Browser) however, no matter what I put in there seems to work. (No browser even launches/opens)
Can someone please help me?
Thanks
Ryan Hunt.Hello TwoTankAmin, the Java deployment Toolkit is for developers and used by Java applications to help manage getting the right version of Java for a user’s system. Are you sure the problem is there ?
Do you have it '''Always Activate''', in Add-ons Manager tab and the Java TM platform SE 7 U67 also? [https://support.mozilla.org/en-US/kb/troubleshoot-issues-with-plugins-fix-problems#w_determining-if-a-plugin-is-the-problem Determining if a plugin is the problem].
thank you -
How can I enable the GPU option on a new mac pro with 2 AMD D700 graphic cards?
I have recently purchased the new mac pro and I saw the GPU option is not enable and only recognizes the CPU one, what is frustrating. Does anybody know how to enable the GPU option?
thanksSee this for details of how the GPU is used in After Effects:
http://blogs.adobe.com/aftereffects/2012/05/gpu-cuda-opengl-features-in-after-effects-cs6. html
Note that your card will be used for all of the GPU acceleration features but one---the ray-traced 3D renderer---which requires an Nvidia GPU. That is an obsolete feature that you don't need to worry about, anyway. There are many better alternatives to using 3D in After Effects, including Cinema 4D, which is now included with After Effects:
http://blogs.adobe.com/aftereffects/2013/04/details-of-cinema-4d-integration-with-after-ef fects.html
Maybe you are looking for
-
A photo database? On a Mac.
I'm doing it in Excel, but it's a monstrous job to create hyperlinks to hundreds of photo titles to view them, one, by one, by one. I can't automate it in Excel for mac. I've tried automate and macros, but none will simply: take the selected photo-ti
-
Keynote 6.1 won't open an old files.
I just bought Keynote 6.1 (and installed Maverick to run it) and have found that it won't open old files created with version 4.something. It tells me to save them with Keynote 09 which I don't have and can't buy. On the face of it, it looks like I
-
Hi, I have a requirement in web-dynpro where i have to display a warning message to user as soon as he clicks on F4 help, that warning message is displayed in a popup with two buttons 'OK' and 'CANCEL'. If he clicks OK then, the search should be cont
-
Hi, I have a simple question that is causing to me a big problem. Just to follow as an example : I have a STANDARD ISR/PCR Scenario : SPTR(Transfer), now, what are the "steps" to create another PCR based on "SPTR"? I tryed to create a copy from SPTR
-
Define exchange rate types according to ledgers
Hi Everyone, I am facing a problem about the exchange rate types. I want to set different exchange rate types for my leading ledger and local ledger. for example, the leading ledger 0L is defined for IFRS with default exchange rate type M. the local