Get and Set data in context
Hello Everyone,
I am new to Webdynpro ABAP world. I have got a requirement where I need to get data from a value node "Document" created by me and Assign the values to three different nodes during runtime on Action of a Button. My context structure is as follows. Please help me by giving some code for my requirement. I would appreciate your help.
Context Structure----
Context
---DocumentHeader(Model Node)
---AccountGL(Model Node)
---AccountPayable(Model Node)
---CurrencyAmount(Model Node)
---Document(Value Node)
AMT_DOCCUR(Value Attribute)
Costcenter(Value Attribute)
GL_Account(Value Attribute)
Header_Txt(Value Attribute)
Ref_Doc_No(Value Attribute)
Vendor_No(Value Attribute)
The "Document" node is bound to a Table in "Main_Document" view and the document table is filled with data during runtime. I want to get the values of the attributes from Document node and assign them to other Model nodes that are bound to a BAPI.
Please help me with some code to acheive this requirement. I would appreciate your help.
I hope you can understand my requirement. Please do let me know if my explanation is not clear and I will try to explain in more detail.
Regards,
Gopal.
---AccountGL(Model Node) - table lt_accountgl should be bound to this.
---AccountPayable(Model Node)- lt_account_payaable
---CurrencyAmount(Model Node)-lt_cuurency_amt
As per your code, read the above nodes and bind the tables to respective nodes.
method ONACTIONPOSTDOCUMENT .
DATA lo_nd_document TYPE REF TO if_wd_context_node.
DATA lt_documents TYPE wd_this->elements_document.
DATA lo_nd_accountgl TYPE REF TO if_wd_context_node.
* navigate from <CONTEXT> to <DOCUMENT> via lead selection
lo_nd_document = wd_context->get_child_node( name = wd_this->wdctx_document ).
lo_nd_accountgl = wd_context->get_child_node( name = wd_this->wdctx_accountgl ).---acountGL node
* get the contents of the document node in an internal table
lo_nd_document->get_static_attributes_table( importing table = lt_documents ).
Data: ls_documentheader type BAPIACHE09,
lt_accountpayable type table of BAPIACAP09,
ls_accountpayable type BAPIACAP09,
lt_accountGL type table of BAPIACGL09,
ls_accountGL type BAPIACGL09,
lt_currencyamount type table of BAPIACCR09,
ls_currencyamount type BAPIACCR09.
loop at lt_documents into ls_documents.
* header data
ls_documentheader-HEADER_TXT = ls_documents-HEADER_TXT.
ls_documentheader-Ref_Doc_No = ls_documents-Ref_Doc_No.
* accounts payable data
ls_accountpayable-vendor_no = ls_documents-vendor_no.
append ls_accountpayable to lt_accountpayable.
* account GL data
ls_accountGL-GL_Account = ls_documents-GL_Account.
ls_accountGL-Costcenter = ls_documents-Costcenter.
append ls_accountGL to lt_accountGL.
lo_nd_accountgl->bind_table( lt_accountgl ). -----------Similarly do for other 2 nodes.
Currency items
ls_currencyamount-AMT_DOCCUR = ls_documents-feildname
append ls_currencyamount to lt_currencyamount.
clear append ls_currencyamount.
ls_currencyamount-AMT_DOCCUR = ls_documents-feildname * -1.
append ls_currencyamount to lt_currencyamount.
DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller->execute_bapi_acc_document_post(
DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller->execute_bapi_transaction_commi(
Refresh all the tables before the next recoed
refresh: lt_accountpayable,lt_accountpayable.
clear:ls_documentheader,ls_accountpayable,ls_accountpayable.
endloop.
endmethod
Edited by: Lekha on Sep 2, 2009 2:34 PM
Similar Messages
-
Get and Set Parameter ID in BDC Call transaction
Hi all
I have written this BDC program to run a transaction eg33 to install meter. After meter get installled System generates Device location number. I need to use this device location number in calling another transaction il03. but my data fetching using get and set parameter id is not giving accurate result. Kindly check my code and suggest where should I improve. Or whatelse can I do to fullfill this type of requirement other than GET and SET PARAMETER ID.
REPORT ZAC_EG33 NO STANDARD PAGE HEADING
LINE-SIZE 100.
TABLES: EABL,
BUT000,
ZISUH0003.
DATA :
XYZ LIKE IFLO-TPLNR.
DATA: IT_STATUS TYPE ZISUH0003.
DATA: G_INDEX TYPE I,
G_START_COL TYPE I VALUE '1', "start column
G_START_ROW TYPE I VALUE '14', "start row
G_END_COL TYPE I VALUE '18', "maximum column
G_END_ROW TYPE I VALUE '75', "maximum row
G_TEXT(20), "stores error messages
G_PAGES TYPE I,
G_CURRENT_PAGE TYPE I,
G_COUNT LIKE SY-DBCNT.
data: l_file type file_table,
file1 type string,
l_title type string,
LENGTH TYPE I,
FILES type filetable,
SUBRC type i,
STR_FILE type STRING,
D_FILE type RLGRAP-FILENAME,
filename TYPE String,
L_itab_date(10).
FIELD-SYMBOLS : <FS>.
DATA: IT_EXCEL LIKE STANDARD TABLE OF ALSMEX_TABLINE WITH HEADER LINE,
IT_MESS TYPE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.
TYPES: BEGIN OF TY_OPEN,
HAUS LIKE REG30-HAUS,
EADAT(10),
GERAETNEU LIKE REG30-GERAETNEU,
MESSDRCK LIKE REG30-MESSDRCK,
ZWSTANDCE LIKE REG30-ZWSTANDCE,
END OF TY_OPEN.
DATA : T_ANLAGE LIKE EANLD-ANLAGE,
VSTELLE LIKE EVBS-VSTELLE,
S_ANLAGE LIKE EANLD-ANLAGE,
temp_c(7).
DATA: IT_OPEN TYPE STANDARD TABLE OF TY_OPEN WITH HEADER LINE.
DATA: BDCDATA TYPE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN SKIP 2.
PARAMETERS: P_FILE like RLGRAP-FILENAME OBLIGATORY.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN END OF BLOCK 1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE .
PERFORM GET_FILE_NAME.
MOVE FILENAME TO P_FILE.
START-OF-SELECTION.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = p_file
I_BEGIN_COL = 1 "VF_START_COL
I_BEGIN_ROW = 2 "VF_START_ROW
I_END_COL = 5 "VF_END_COL
I_END_ROW = 10000 "VF_END_ROW
TABLES
INTERN = IT_EXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF IT_EXCEL[] IS INITIAL.
G_TEXT = 'No Data Uploaded'.
ELSE.
SORT IT_EXCEL BY ROW COL.
LOOP AT IT_EXCEL.
MOVE : IT_EXCEL-COL TO G_INDEX.
ASSIGN COMPONENT G_INDEX OF STRUCTURE IT_OPEN TO <FS>.
MOVE IT_EXCEL-VALUE TO <FS>.
AT END OF ROW.
IF NOT IT_OPEN IS INITIAL.
APPEND IT_OPEN." TO IT_LINE.
CLEAR IT_OPEN.
CLEAR IT_EXCEL.
ENDIF.
ENDAT.
ENDLOOP.
ENDIF.
REFRESH IT_EXCEL.
ULINE.
FORMAT COLOR 3 ON.
WRITE: /1 sy-vline ,
2 'Material No.' ,
25 sy-vline,
2 'Logs' ,
100 sy-vline.
uline.
FORMAT COLOR OFF.
PERFORM BDC_OPEN_READING.
MESSAGE S013(ZPS).
*& Form GET_FILE_NAME
text
--> p1 text
<-- p2 text
FORM GET_FILE_NAME .
REFRESH FILES.
call method cl_gui_frontend_services=>file_open_dialog
exporting
window_title = l_title
changing
file_table = files
rc = subrc
exceptions
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
others = 4.
check sy-subrc = 0.
loop at files into l_file.
str_file = l_file.
move str_file to filename.
exit.
endloop.
ENDFORM. " GET_FILE_NAME
*& Form BDC_OPEN_READING
text
--> p1 text
<-- p2 text
FORM BDC_OPEN_READING .
LOOP AT IT_OPEN.
REFRESH BDCDATA.
clear : temp_c.
move it_open-MESSDRCK to temp_c.
condense : temp_c.
PERFORM MAP1.
CALL TRANSACTION 'EG33' USING BDCDATA MODE 'A' MESSAGES INTO IT_MESS.
+***changes by added on 28/02/08 +
get parameter id 'IFL' FIELD XYZ.
PERFORM MAP2.
set parameter id 'IFL' FIELD XYZ.
++*
CALL TRANSACTION 'IL03' USING BDCDATA MODE 'A' MESSAGES INTO IT_MESS.
+****end change added on 28.02.08+DATA: G_INSNO LIKE IT_OPEN-HAUS.
IF NOT IT_MESS[] IS INITIAL.
G_INSNO = IT_OPEN-HAUS.
PERFORM GET_MESSAGES TABLES IT_MESS USING G_INSNO." IT_LINE.
ENDIF.
READ TABLE IT_MESS WITH KEY MSGTYP = 'E'.
IF SY-SUBRC NE 0.
READ TABLE IT_MESS WITH KEY MSGTYP = 'S' MSGNR = '622'.
IF SY-SUBRC EQ 0.
SELECT SINGLE VSTELLE FROM EVBS INTO VSTELLE WHERE HAUS = IT_OPEN-HAUS.
SELECT SINGLE ANLAGE FROM EANL INTO T_ANLAGE WHERE VSTELLE = VSTELLE.
MOVE T_ANLAGE TO IT_STATUS-ANLAGE.
MOVE 'X' TO IT_STATUS-RFC.
*perform get_date_format using IT_OPEN-EADAT.
MOVE IT_OPEN-EADAT TO IT_STATUS-ADATE.
SELECT SINGLE ANLAGE FROM ZISUH0003 INTO S_ANLAGE WHERE ANLAGE =
T_ANLAGE.
IF SY-SUBRC EQ 4.
INSERT ZISUH0003 FROM IT_STATUS.
ELSE.
UPDATE ZISUH0003 FROM IT_STATUS.
ENDIF.
ENDIF.
ENDIF.
REFRESH IT_MESS.
CLEAR IT_MESS.
ENDLOOP.
ENDFORM. " BDC_OPEN_READING
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> SPACE.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM.
*& Form MAP1
text
--> p1 text
<-- p2 text
FORM MAP1 .
perform bdc_dynpro using 'SAPLE30D' '0100'.
perform bdc_field using 'BDC_CURSOR'
'REG30-GERAETNEU'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'REG30-HAUS'
IT_OPEN-HAUS. "'100000000033'.
perform bdc_field using 'REG30-EADAT'
IT_OPEN-EADAT. "'18.02.2006'.
perform bdc_field using 'REG30-GERAETNEU'
IT_OPEN-GERAETNEU. "'66a'.
perform bdc_dynpro using 'SAPLE30D' '0220'.
perform bdc_field using 'BDC_CURSOR'
'REG30-TEMP_AREA(02)'.
perform bdc_field using 'BDC_OKCODE'
'=SAVE'.
perform bdc_field using 'REG30-MESSDRCK'
temp_c. "IT_OPEN-MESSDRCK'0.0125'.
perform bdc_field using 'REG30-GERWECHS'
'05'.
perform bdc_field using 'REG30-ANZDAYSOFPERIOD(01)'
'30'.
perform bdc_field using 'REG30-ZWSTANDCE(01)'
IT_OPEN-ZWSTANDCE. "'10'.
perform bdc_field using 'REG30-ZWSTANDCE(02)'
'0'.
perform bdc_field using 'REG30-PERVERBR(01)'
'0'.
perform bdc_field using 'REG30-PERVERBR(02)'
'0'.
perform bdc_field using 'REG30-TEMP_AREA(01)'
'0001'.
perform bdc_field using 'REG30-TEMP_AREA(02)'
'0001'.
perform bdc_field using 'REG30-PR_AREA_AI(01)'
'0001'.
perform bdc_field using 'REG30-PR_AREA_AI(02)'
'0001'.
ENDFORM. " MAP1
****CHANGEs added BY ALKA 28.02.08
*& Form MAP2
text
--> p1 text
<-- p2 text
FORM MAP2 .
perform bdc_dynpro using 'SAPMILO0' '1110'.
perform bdc_field using 'BDC_CURSOR'
'IFLO-TPLNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'IFLO-TPLNR'
XYZ..
perform bdc_field using 'RILO0-TPLKZ'
'AO_GP'.
perform bdc_dynpro using 'SAPMILO0' '2100'.
perform bdc_field using 'BDC_CURSOR'
'IFLO-PLTXT'.
perform bdc_field using 'BDC_OKCODE'
'=T\04'.
perform bdc_field using 'IFLO-PLTXT'
'DEVICE LOCATION'.
perform bdc_dynpro using 'SAPMILO0' '2100'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'IFLO-PLTXT'
'DEVICE LOCATION'.
perform bdc_field using 'BDC_CURSOR'
'ITOBATTR-EINZL'.
perform bdc_field using 'ITOBATTR-IEQUI'
'X'.
perform bdc_field using 'ITOBATTR-EINZL'
'X'.
ENDFORM. " MAP2
*****END CHANGE added on 28.02.08
*& Form get_date_format
text
-->P_IT_ORDER_TABLE_C_DATE text
FORM get_date_format USING L_ITAB_DATE." LIKE SY-DATUM.
data: d_temp(4),
m_temp(2),
y_temp(4).
*move L_ITAB_DATE to L_ITAB_DATE.
y_temp = L_ITAB_DATE(4).
m_temp = L_ITAB_DATE+4(2).
d_temp = L_ITAB_DATE+6(2).
CONCATENATE d_temp '.' m_temp '.' y_temp into L_ITAB_DATE.
ENDFORM. " get_date_format
*& Form GET_MESSAGES
text
-->P_IT_MESS text
-->P_G_INSNO text
FORM GET_MESSAGES TABLES IT_MESS STRUCTURE BDCMSGCOLL USING G_INSNO .TABLES T100.
DATA: L_MSTRING(255).
LOOP AT IT_MESS WHERE MSGTYP = 'E' OR MSGTYP = 'S'.
SELECT SINGLE * FROM T100 WHERE SPRSL = IT_MESS-MSGSPRA
AND ARBGB = IT_MESS-MSGID
AND MSGNR = IT_MESS-MSGNR.
IF SY-SUBRC = 0.
L_MSTRING = T100-TEXT.
IF L_MSTRING CS '&1'.
REPLACE '&1' WITH IT_MESS-MSGV1 INTO L_MSTRING.
REPLACE '&2' WITH IT_MESS-MSGV2 INTO L_MSTRING.
REPLACE '&3' WITH IT_MESS-MSGV3 INTO L_MSTRING.
REPLACE '&4' WITH IT_MESS-MSGV4 INTO L_MSTRING.
ELSE.
REPLACE '&' WITH IT_MESS-MSGV1 INTO L_MSTRING.
REPLACE '&' WITH IT_MESS-MSGV2 INTO L_MSTRING.
REPLACE '&' WITH IT_MESS-MSGV3 INTO L_MSTRING.
REPLACE '&' WITH IT_MESS-MSGV4 INTO L_MSTRING.
ENDIF.
CONDENSE L_MSTRING.
ENDIF.
CONDENSE G_INSNO.
CONCATENATE 'For' ' ' G_INSNO ',' L_MSTRING INTO L_MSTRING SEPARATED BY SPACE.
FORMAT COLOR 2 ON.
*IF IT_MESS-MSGTYP = 'S' AND IT_MESS-MSGNR = '622'.
*WRITE: 1 sy-vline,
L_MSTRING under 'Error Messages',
100 sy-vline.
*ULINE.
*ELSEIF IT_MESS-MSGTYP = 'E'.
WRITE: 1 sy-vline,
L_MSTRING under 'Logs',
100 sy-vline.
ULINE.
*ENDIF.
ENDLOOP.
ENDFORM. " GET_MESSAGESi think there might be some time gap between CALL TRANSACTION and GET PARAMETER ID.....,that is to say,the new No. has not been generated and what you fetch is an old No..
i think you should use the "CALL TRANSACTION" like the following one:
CALL TRANSACTION 'EG33' USING BDCDATA MODE 'A' UPDATE 'L' MESSAGES INTO IT_MESS .
then i think you can get the right value.
P.S: the different update model(from SAP document)
upd Effect
"A" Asynchronous update. Updates of called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition was not specified.
"S" Synchronous processing. Updates of the called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition had been specified.
"L" Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it.
Other As for "A". -
Keychain problem and "Set date and time automatically"
Something very strange appened to me today. I spent a few hours to get it through.
All starts when I decided to open System Preferences and *set date and time manually* (I lost date and time because I left my PowerBook without its battery for an hour). At the next login, Leopard was no more able to access keychain's stored passwords, even if all items on Keychain Access were right there. Everytime I tried to read one item's password, a pop-up window reminded me that I had not the right to do it. As soon as I set back "date and time" on automatic (time.euro.apple.com - for me) all became normal (all iCal reminders appeared at on time) and all services started to get their passwords from the stored list.
Sorry for my English (I'm from Italy).
Someone got the same issue?That looks like the correct IP address for the Apple NTP. Not sure why your AEBS is not getting the time stamp.
Would you mind double-checking the following setting, using the AirPort Admin Utility?
AirPort Tab - Base Station Options: Logging/NTP
- Set Date & Time Automatically: time.apple.com (checked)
Is it possible that you have UDP blocked on port 123? Is your AEBS connected to another Internet router? -
Why do we need get and set methods?
It is considered good design practice to keep all class data private and
provide get and set methods for accessing the data in a controlled
manner.
So, instead of directly accessing the class data, you use getter and setters.
I do not really feel the need to use get and set methods.
How does that achieve encapsulation when ultimately the class data is being exposed?A couple of reasons why to use get and set:
1. For example you can set an int value for month, if a user sets this to somting
higher than 12 (or 11 if it's zero based) you want to handle that by either
throwing an exception or adding a year for every time it can be devided by 12.
If you dont do it in set you'll have a whole bunch of methods that might need to
correct the value before retreiving the eventual date.
2. If for some reason you have security set up for certain values you can
implement this in the get method. When this is done somewhere else you have
a whole bunch of methods retreiving the info in other classes that need to check
first. (a canGet method could allso be used). Another good reason to use get
is when the information needs to be converted depending on the consumer
calling the get method.
3. If any logic in 1 or 2 changes you'll have a bunch of code to change.
If you feel there is no need to implement any security, error handling (on
compiling because get and set might throw something) or validation when
setting/getting these values there is still the argument of readabillity.
Eclipse has a feature that will generate getters and setters for you so it's not
like there is a lot of extra typing involved.
Got interupted whyle typig so sorry to repeat any answer given before. -
How do I get and set column attributes in a table or a treetable with Java?
Using 11.1.1.4.0
Hi,
How do I get and set column attributes in a table or a treetable with Java? For a simple example, say I have a table and want certain roles to see all columns (including address), and other roles can see only certain columns (no address). In a Java method, I want to test if a table's column visible attribute is true and if so, set it to false before rendering it.
Thanks in advance,
TroyHi,
this use case would be a perfect example for using seeded MDS customization. Instead of checking what users are allowed to see or not upon rendering time, you have a customization class and thus the framework doing this for you.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/31-mds-sample-169173.pdf
In this paper and sample, specific users see different layouts. It also contains a customization class that shows how this can leverage ADF Security
Frank -
How do I get and set cookies with JSF?
How do I get and set cookies in a JSF managed bean?
Regards,
Al MalinBelow is how I did it...I am receptive to improvements.
FacesContext facesContext = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession)facesContext.getExternalContext().getSession(false);
HttpServletRequest request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
HttpServletResponse response = (HttpServletResponse)facesContext.getExternalContext().getResponse();
String cookieName = "myCookieName";
Cookie requestCookie = null;
Cookie[] cookies = request.getCookies();
logger.info("looking for cookie...");
if (cookies != null)
for (int i = 0; i < cookies.length; i++)
if (cookies.getName().equals(cookieName))
requestCookie = cookies[i];
logger.info(cookieName + " = " + requestCookie.getValue());
logger.info("done looking for cookie");
Cookie responseCookie = new Cookie(cookieName, "myCookieValue");
responseCookie.setPath("/");
response.addCookie(responseCookie); -
I want to get and set windows system time through lab view
Hi
I want to get and set windows system time with the help of lab view 8.5.
please help me out.
ekanthYou can use the call library function node. Once you drop it on your block diagram double click it and you will be able to select the dllyou want to use. Choose kernel32.dll and you will see methods listed called getsystemtime and setsystemtime. Use those
CLA, LabVIEW Versions 2010-2013 -
Code for replacing 'get' and 'set' method
Hi,
I was a struts programmer but now i am a jsf programmer :-)
I was able to do the following with struts but no with jsf...
The following code in struts allowed me to have no 'get' and 'set' method in the javabean for a property (for example, the property 'name'):
ValueStack valueStack =ActionContext.getContext().getValueStack();
valueStack.set("name", "John");
ActionContext.getContext().setValueStack(valueStack);In the jsp, using the corresponding label to retrieve the 'name' property, returned value 'John'.
Is there something equivalent in jsf?Hi, see on here.There are solutions for JSF, JBoss Seam: [Solutions for Java, JSF, JBoss Seam and Flex|http://flextrick.blogspot.com/]
-
when attempting to format region and set date and time the busy icon appears and seems to stay like this?
Click on DU's Partition tab when you have the raw drive name selected, then set it to one partition, Mac OS Extended. If it crashes or freezes, it is finding a bad block and can't write.
In any event, if you want to use the drive, and have not zeroed it before, you should now.
Click on Erase -> Security Options -> Zero out data. Still with the full drive selected and not any partition(s).
Then repartition the drive if needed.
Boot from the DVD if that doesn't work. And no, TTPro has never mapped out bad blocks let alone create partitions.
Disk Utility in 10.4.8 is quite good, excellent in fact. No need for an alternative.
Your eMac drive may need to touch of Disk Utility itself. FSCK from the command line, clear the caches with Applejack along with check for corrupt plists. Between Disk Utilty and Applejack (free/shareware) never had to use TechTool Pro - or at least there weren't any errors after those two got done. But if you want a good 3rd party, pick up Disk Warrior 4. -
Bug in "Get and Set Time.vi" example for RT systems
There is a bug in "Get and Set Time.vi" that ships as an example in the "NI System Monitor" package. The routine does *NOT* return the hour correctly.
Note the string "%#H:12:39.371" as the time of day. That should be 09:12:39.371 as it was 9 AM at the time.
Mac OS X 10.8.5
LabVIEW 14-64bit
NI System Monitor 14.0.1
Pharlap RT PXI embedded system version 14.0 updated.
NOTE: it is odd that the default "New Time" has #H as the hour but that is hard wired into the VI as a sentinel case.Rahul,
It may be only in the Mac OS X code base. But since it is one of those annoying locked VIs I can't tell. Now of course this is locked because communication with the RT system is so sensitive or just plain messy. My guess is that if I thow wireshark at it I can tell you what is inside and it shouldn't be that secret.
But let me know what you find running under Mac OS X. -
How to get and set custom tag attributes
How do i get and set custom tag attributes from a jsp page?
Not sure if this is what your looking for, but....
example...
< taglibprefix:testtag attribute1="x" attribute2="y">
...of course, the attributes have to be defined in your taglib (.tld) file -
Geting and setting date and time in oracle using jdbc
can u send me a sample snippet which shows me how to set date and time to a column in oracle database where the column datatype is date.
and also send me the sample code to get the date and time from the above said column
thanks in advanceIf you want DATE with time normalized to midnight, use java.sql.Date. If you really want time, with hours/minutes/seconds/millis, use java.sql.Timestamp.
As for the best way to interact with the database, use java.sql.PreparedStatement and its get/setDate and get/setTimestamp methods. Those will escape dates for you properly.
Look for a JDBC tutorial on-line to see how to do this, or http://www.javaalmanac.com for the java.sql package examples.
% -
How to get and set graph propertis using UIGraph instance
Hi,
I have added barGraph graph component on *.jspx and also added buttons like "Get properties" and "Set Properties". On "Get Properties" button action, I want to get all the attrributes of barGraph using UIGraph and also want to get "getGroupAttributes" and "getSeriesAttributes".
I saw examples on gettiing the Group attributes using the click event on the graph.
Is there any way to get the attributes on some button action like "Get Properties" without any click event on graph?
Thanks,
Gopal[Copying the answer here from the internal forum discussion so that other customers can benefit]
Hi Gopal,
You can call getValue on the UIGraph to get the GraphDataModel, then to use the data access APIs from there.
Once you get the DataAccess from the GraphDataModel, you can call getMemberMetadata to get the members on the row and column edge.
This method is documented in the interface CDFDataAccess:
http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17492/oracle/dss/util/CDFDataAccess.html#getMemberMetadata%28int,%20int,%20int,%20java.lang.String%29
You should use the following constants for the series and groups:
DataDirector.COLUMN_EDGE=groups
DataDirector.ROW_EDGE=series
Use the method getEdgeExtent to find out how many members are in the series and groups:
http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17492/oracle/dss/util/CDFDataAccess.html#getEdgeExtent%28int%29
Method getLayerMetadata is the correct way to get the names of the layers, a.k.a "dimensions" displayed in the graph.
DataAccess is used to read the data from the Graph. You set the data in the Graph by setting tabular data, using data binding by dragging and dropping from the data control palette, or by implementing a custom DataSource and setting it on the graph.
http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17492/oracle/dss/dataView/CommonDataview.html#setDataSource%28oracle.dss.util.DataSource%29
However, implementing a custom data source is not trivial, and you should only use that approach if you can't use tabular data or regular binding against the available data controls.
This doc chapter might help in understanding data source requirements for different Graph types:
http://docs.oracle.com/cd/E16162_01/web.1112/e16181/dv_graph.htm#CEGBGCDG
Hope this helps,
Katia -
Create, get and update web service context mapping
Hello,
I think I have a pretty common problem. I will explain it with a simple example:
I have a car object, with the attributes id, name and speed.
I have three web services: create, get and update
I have a view with the input fields id, name and speed
How to do the context mapping?
When creating a car it would be good if input fields would be mapped to the create service, when getting a car it would be nice if the input fields would be mapped to the get service....
How to deal with this situation? Do I have to create 3 views?
Thanks!
FelixHello Martin,
thnks a ton for your replies.
The '.' is a standard thing.
Its the part of the WSDL file which is a standard WSDL file for a service offered for a standard SAP BAPI. So i haven't changed anything.
Its what is standardly available. So i cant anything on that.
And the response element is not below the bapi node.
The name of the root node of the BAPI return context is
"BAPI_INQUIRY_CREATEFROMDATA2.Response"
This is what is causing the problem.
Please note here that '.' is not responsible for any hierarchy. Its the name of one single root node element. -
Getting and setting up a Skype number for all memb...
Hi,
I am an administrator for our company Skype Manager account and have been allocated a Skype business account. I want to get a skype number for our company to allow external contacts to be able to call us via landlines and mobiles.
What do I need to do to get a skype number and set it up so that any member of our team can receive external calls on it and answer them ?
Regards,
Nic
Nic Aucott
The Webmaster Centre LtdHi _onz,
Something I did several years ago (before I had Muse) when my wife began her jewelry business was create a website in the traditional way (at that time using Fireworks and Dreamweaver), but rather than have people buying directly from her site, there was a link to her Etsy shop. She could personalize the Etsy shop as much as she wanted, add/subtract jewelry on the fly, etc.
There are some good e-commerce solutions out there. One that looks promising is Shoplocket. You can check it out here at MuseThemes.
To your point about a lack of quality tutorials, I somewhat agree. The ones Adobe provide, albeit free, are more hit and miss. I've had better luck at Lynda.com where they offer video courses on the various software. Of course, they're not free, but for $25/mo. I've gotten a lot of value from them.
Good luck!
- Bob
Maybe you are looking for
-
Stored procedure could not be found.
I'm upgrading my forms 6i to 11g on Windows. There is a procedure called center_window('WIN_MAIN',TRUE); in the pre-form trigger. There is no compiling error, but when the web page opens, it says "PRE-FORM trigger raised unhandled exception ORA-06508
-
Case insensitive quick search of UCM
'Quick Search' in UCM looks case sensitive. If I create a file with title as 'Test File' it shows result in following cases Test Test File But it can't show result when I search for test test file Is there a way to make it case insensitive search? Th
-
Exchange Server 2010 - Message Tracking Logs - Log file creation
Hi, I would like to find out on the behavior of the exchange server in the way that it logs the message tracking. Currently the parameter used is MessageTrackingLogMaxDirectorySize - 10GBMessageTrackingLogMaxAge - 30daysI would like to check when th
-
Concerning midi data in GarageBand for iOS: can we copy midi data from one virtual instrument to another? For instance: I play my "lucky take" on the virtual piano, and now I am curious how it would sound on let's say a organ. Normally I would select
-
Excel connections to SQL Server 2008 R2
I am looking for the best way to connect excel to SQL Server so that I can deploy the spreadsheets to users. I don't want the users to have to mess with setting up a connection string. I just want them to click on the spreadsheet, the spreadsheet to