WD ABAP: How to get the contents of selected table lines?
Hi,
I'm trying to figure out how to get the contents of table lines back from the UI. I display a table with several lines of data. The user selects some rows. I want to move the contents of the selected rows to another table. I have a context attribute, say DATA, with attributes FIELD1... FIELDn, using a DDIC structure. These are bound to the table UI element and the corresponding table columns. To get the selected rows, I use wd_context->get_selected_elements(). This works, but what I get from this method is references to if_wd_context_element. How do I know which row (row number = ?) this corresponds to? And how do I get the actual data? I want a structure with FIELD1 = value1 FIELD2 = value2 etc. My context attributes FIELD refer to table columns, but I'm looking for the table line...
Can somebody help me?
Thanks,
Ira
Hi Ira,
wd_context->get_selected_elements() returns WDR_CONTEXT_ELEMENT_SET which is a table type of IF_WD_CONTEXT_ELEMENT. You can loop through the WDR_CONTEXT_ELEMENT_SET, get into variable say node_elelement which is of type ref to If_Wd_Context_Element. Then you could use the method GET_STATIC_ATTRIBUTES of If_Wd_Context_Element which returns a structure with values of all the attributes in the selected row.
If you need the row number, while populating the node you could have an additional attribute called rowno and populate it correctly. When you select the data using method GET_STATIC_ATTRIBUTES, you would get the appropriate row number.
Regards,
Srini.
Similar Messages
-
I have iTunes on an old pc and am thinking of buying a MacBook Air. I am wondering how to get the content of my iPad on to the Mac as I know that sync only happens in one direction, from pc to device. I assume therefore that when I attach my pad to the new Mac it will sync to an empty iTunes and I will have lost all the content of my pad. I know I can restore purchases, but what about contacts, calendar, photos and music not purchased from apple. I have a fairly recent backup on a pen drive but it is a usb2 device and is formatted for a pc. Any advice would be appreciated.
Do I copy my media library or from a backup. I have a backup on my pc and on an external drive. This drive is usb2 and formatted for windows so I can't connect it to a MacBook Air to make the transfer. Equally I don't think there is a way to connect the 2 computers via a cable ie usb2 one end and usb3 the other. Will the computers talk to each other via wifi if I enable home share although I think this is only for music which still leaves contacts, mail etc.
I am sorry to be such an ignoramus but any further help would be appreciated. -
How to get the content in embed swf file in Swf Loader on run time
How to get the content in embed swf file in Swf Loader on run time
[Bindable]
[Embed(source="assets/index.swf")]
private var SWFSRC:Class;
<mx:SWFLoader id="_swfloader" source="{SWFSRC}" />Hi Flex harUI,
Throw the error.
Access of undefined property content -
How to get the content of the uploaded file.
Hi Experts,
I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
Regards,
Arun>
ARUN KUMAR.S wrote:
> Hi Experts,
>
> I am using a input box to get the path of the file to be uploaded.(I am not using FILE UPLOAD UI Element).Could you please let me know how to get the content of the uploaded file.
>
> Regards,
> Arun
You will not be able to use a normal InputField to upload file contents. This is not allowed by the browser security model. You must use one of the upload specific UI mechanisms - the FileUpload UI element or as of 7.01 ACFUpDownload or FlashIslands. -
How to get the contents associated with a component.
How to get the contents associated with a component.
Like i have 2 buttons and i want to get the contents associated with these button without clicking them i.e without firing the event.
By Contents i mean, whatever things we get after firing the event,we get some other window and some thing is added to the current page and so on.grab all the code inside the actionPerformed(ActionEvent e) method
-
How to get the content of a jTextArea?
hi everyone
can some body provide me with some help???
I want to know how to get the content of a jTextArea
it may be a String and i want to use that String to make some applications
I've use this :
String ch=jTextArea.getSelectedText()
but i'm not sure it will work and i'm not sure it will take the text writen inside the jTextArea ... please help
Thankshttp://forum.java.sun.com/thread.jspa?threadID=778988&tstart=0
-
How to get the values of Select-options from the screen.
The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.
Hi,
Refer this following code..this will solve your problem...
"Following code reads value entered in s_po select options and willprovide search
"help for s_item depending upon s_po value.
REPORT TEST.
TABLES : ekpo.
DATA: BEGIN OF itab OCCURS 0,
ebelp LIKE ekpo-ebelp,
END OF itab.
SELECT-OPTIONS s_po FOR ekpo-ebeln.
SELECT-OPTIONS s_item FOR ekpo-ebelp.
INITIALIZATION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
DATA:
dyn_field TYPE dynpread,
temp_fields TYPE TABLE OF dynpread,
zlv_dynpro TYPE syst-repid.
zlv_dynpro = syst-repid.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = zlv_dynpro
dynumb = syst-dynnr
request = 'A'
TABLES
dynpfields = temp_fields
EXCEPTIONS
OTHERS = 0.
LOOP AT temp_fields INTO dyn_field.
IF dyn_field-fieldname EQ 'S_PO-LOW'.
SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
WHERE ebeln EQ dyn_field-fieldvalue.
EXIT.
ENDIF.
ENDLOOP. -
How to get the data from Pooled Table T157E.
Hi Experts,
How to get the data from Pooled Table T157E.
Any help.
Thanks in Advance,
Ur's Harsha.create some internal table similar to T157E and pass all data as per SPRAS.
After that use internal table in your program as per the requirement.
Regds,
Anil -
How to get the Deliver Quantity against Schedule Line Quantity
Hi,
I have specific requirement for a report where we need to determine the delivery qty against the schedule line qty for a sales order. In sales order in schedule line tab system shows the delivery qty. The field is VBEPD-VSMNG. VBEPD is a structure and I could not find the table in which this is actually stored. Does anybody know how to get the delivery qty for schedule line?Hi,
U can check the following tables:
VBEP (Sales ScheduleLines) VBEP-VBELN =VBAP-VBELN and VBAP-POSNR = VBEP-POSNR
LIPS (SalesDoc:Delivery Items) LIPS-VGBEL =VBAP-VBELN and LIPS-VGPOS =
VBAP-POSNR
VBEH (Schedule LineHistory) VBELN POSNR ETENR
Regards
Kannaiah -
How to get the index of selected values in SelectManyChoice...
How to get the index of selected values in SelectManyChoice... the value which i get is coming when i submit the value second time
By using the given code i get the value of the selected indices, but problem here is i get the value when it get submits at the second time... First time the length of that int array is 0.
Second time it shows the value two times (i.e) First time submitted value and the second time submitted value. After that it works fine.. I have problem while clicking first time only..
The Following error also raises.. One multiselect is dependent on other multiselect.
DF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase PROCESS_VALIDATIONS 3
java.lang.ArrayIndexOutOfBoundsException: 6
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.findObjectFromIndex(FacesCtrlListBinding.java:334)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.getInputValue(FacesCtrlListBinding.java:199)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:2416)
at oracle.jbo.uicli.binding.JUCtrlListBinding.internalGet(JUCtrlListBinding.java:3717)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.internalGet(FacesCtrlListBinding.java:500)
at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749)
at javax.el.MapELResolver.getValue(MapELResolver.java:164)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
at com.sun.el.parser.AstValue.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source) -
How to get the dialog of select ODBC source
how to get the dialog of select ODBC source which system provide.
JNI.
Or buy/find a library that does it for you (using JNI.) -
How to get the baselinegrid position for a line?
Hi All,
How to get the baselinegrid position for a line in a paragraph?Hi,
2nd line baseline grid for yourPara paragraph is:
yourPara.lines[1].baseline;
last line baseline is:
yourPara.endBaseline;
Jarek -
How to get the contents of more than one comments of human task?
The human task have more than one comments. I use the following functions to get the contents but still only get the first comment. Append function only returns the first comment.
How to get all conents of comments?
<while name="While_1"
condition="bpws:getVariableData('Variable_int_i')<number(bpws:getVariableData('Variable_comment_node'))">
<sequence name="Sequence_3">
<sequence name="Sequence_3">
<assign name="Assign_7">
<copy>
<from expression="string(bpws:getVariableData('single_approve_1_globalVariable','payload','/task:task/task:userComment/task:comment'))"/>
<to variable="Variable_comment_string"/>
</copy>
</assign>
<assign name="Assign_6">
<copy>
<from expression="bpws:getVariableData('Variable_int_i')+1"/>
<to variable="Variable_int_i"/>
</copy>
</assign>
</sequence>
</sequence>
</while>You also have to test the value:
REPORT ztest MESSAGE-ID 00.
DATA: BEGIN OF itab OCCURS 0,
f1 TYPE i,
f2 TYPE i,
f3 TYPE i,
f4 TYPE i,
END OF itab.
DATA: sel_field(20),
value TYPE i.
DO 5 TIMES.
itab-f1 = sy-index.
itab-f2 = sy-index + 10.
itab-f3 = sy-index + 20.
itab-f4 = sy-index + 30.
APPEND itab.
ENDDO.
LOOP AT itab.
WRITE: /001 itab-f1, itab-f2, itab-f3, itab-f4.
HIDE itab.
CLEAR itab.
ENDLOOP.
AT LINE-SELECTION.
CLEAR: sel_field,
value.
GET CURSOR FIELD sel_field.
IF sy-subrc = 0.
CASE sel_field.
WHEN 'ITAB-F1'.
value = itab-f1.
WHEN 'ITAB-F2'.
value = itab-f2.
WHEN 'ITAB-F3'.
value = itab-f3.
WHEN 'ITAB-F4'.
value = itab-f4.
ENDCASE.
MESSAGE s001 WITH 'Value of' sel_field 'is' value.
ELSE.
MESSAGE s001 WITH 'Invalid field selected'.
ENDIF.
Rob -
How to get the content of a DTD ?
(i'm French, please excuse my English)
I'm trying to get the content of the DTD corresponding to the file "fic"
fic is like : "....../XXXXXX.xml"
and contains : <!DOCTYPE composants SYSTEM "test.dtd">
Here is my code :
org.w3c.dom.Document Doc = DBXML.newDocument();
Doc = DBXML.parse(fic);
//Doc is a correctly parsed Document
org.w3c.dom.DocumentType DT = Doc.getDoctype();
System.out.println(DT.getSystemId());
//echo : "test.dtd" so I think that DT is good
System.out.println(DT.getNodeType());
//Echo "10" ==> DocumentType Node
System.out.println(DT.getNotations().getLength());
//Echo "0" !!!!!!!!!
I can't figure why getNotations() can't give me the DTD definitions
Please tell me if I try to use a wrong way or if I missed something.
Thanks a lot ...getNotations() method returns Dtd NOTATIONS when the NOTATIONS are referenced in the DTD.
Dtd:
<!ELEMENT map (entry*) >
<!ELEMENT entry (#PCDATA)>
<!ATTLIST entry value NOTATION (n1|n2) #REQUIRED>
<!NOTATION n1 SYSTEM "n1-url">
<!NOTATION n2 SYSTEM "n2-url">
/* getNotation() returns NamedNodeMap*/
DocumentType docType=xmlDocument.getDoctype();
System.out.println(docType.getName());
NamedNodeMap nnm=docType.getNotations();
System.out.println((nnm.item(0)).getNodeName());
System.out.println((nnm.item(1)).getNodeName());
System.out.println(docType.getNotations().getLength());
Output:
map
n1
n2
2 -
Web Dynpro ABAP: How to access the content of a mime object?
Hi everyone,
does anybody know how to access the content of a mime object of a Web Dynpro component? I added a XML file as mime object to a web dynpro component. Now I want to read the content of this xml file within a method of the component controller. The code would look something like:
DATA: xml_content type xstring.
xml_content = read_mime_object("test_123.xml").
Any ideas?
Regards,
Nilsdude here's the modification that i've done but I can't still access the content of the properties...
Mail mail = new Mail();
String message2 = sqlException.getMessage();
File file = new File("Add.properties");
Properties props = new Properties();
props.load(new FileInputStream(file));
String[] emailadd = {props.getProperty("emailadd","defaultValue")};
mail.postMail(emailadd,"An error has occurred, Auto-archive was unsuccessful.", message2,"[email protected]");
Message was edited by:
ryshi1264
Maybe you are looking for
-
How Do I Use iTunes with Multiple iPods?
How do I use iTunes and keep 2 iPods music libraries separate? When I plug in my iPod (2nd one), it brings up the music from the 1st iPod registered. Thanks
-
Stop scroll bar in JScrollPane from updating viewport when dragging knob
Hi, Does anyone know if it's possible to stop the JScrollPane from updating the viewport whilst dragging the knob of the scrollbar and only update once released. The problem I have is that the view of the scroll panes viewport is a JList that has an
-
How to unzip a .tar.tar file
Hi , I have downloaded jexel api from net. But it come as jexcelapi_2_5_9.tar.tar. i tried to unzip using winzip. But its not working. Can anybody tell how to unzip this?
-
VDI 3 Final version, SSGD in array??
Hi there in a production environment, the installation script (vda-config) recommends three Sun Ray servers for FOG and VDI! I got that one, but what about SSGD. Do I create an array of servers? Is that in the license as well? Great product btw. Rega
-
i have install new hard drive 500gb and i still have 400gb available but my macbook run very slow getting rainbow all the time on screen. need help