How to set value for table lines in web dynpro ?
Hi experts,
I'm new in webdynpro. My requirement is to set value to the second line when user press expand on first line.
In method ONACTIONLOAD_CHILDREN , I use get_static_attributes_table to get the current table records and change return table value .
Then i user bind_table to pass table to the screen.
It works fine for first time i press expand and collaps, but when i expand it again it throw out a dump 'OBJECTS_OBJREF_NOT_ASSIGNED'.
Could any one please help to solve that?
Thanks
Hi Harsha,
Thanks for your reply,I've check the dump details and it display like this:
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_CONTEXT_ELEMENT========CP" -
in "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE".
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 40
of the (Include) program "CL_WDR_CONTEXT_ELEMENT========CM007".
The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
procedure "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE" "(METHOD)", but it was neither
handled locally nor declared
in the RAISING clause of its signature.
The procedure is in program "CL_WDR_CONTEXT_ELEMENT========CP "; its source
code begins in line
1 of the (Include program "CL_WDR_CONTEXT_ELEMENT========CM007 ".
First time i debug it work fine but the next time it dump with same import values. And it even did not reach the logic i add when i expand it again.
I'm not sure why it happen.
My code in ONACTIONLOAD_CHILDREN is like this.
*navigate from <CONTEXT> to <ITEM_DATA> via lead selection
lo_nd_item_data = wd_context->path_get_node( path =
`COMP_CONTEXT.ITEM_DATA` ).
*get element via lead selection
lo_el_item_data = lo_nd_item_data->get_element( ).
*get all declared attributes
lo_nd_item_data->get_static_attributes_table(
IMPORTING
table = lt_item_data ).
LOOP AT lt_item_data INTO ls_item_data.
IF sy-tabix = 2.
ls_item_data-description = 'TEST'.
MODIFY lt_item_data FROM ls_item_data TRANSPORTING description.
ENDIF.
ENDLOOP.
lo_nd_item_data->bind_table( new_items = lt_item_data
set_initial_elements = abap_true ).
lo_nd_item_data->set_lead_selection_index( 1 ).
First line was set selected but still got dump.
Could you please help to check this ?
Thanks & Regards
Eric Li
Similar Messages
-
How to set value for trim and bleed using jsx script?
I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
Following is the code I am trying with:
var _saveName = new File ( root_path +_strFileName+".pdf");
var _saveOpts = new PDFSaveOptions();
_saveOpts.printerResolution = 300;
var bleedarray = new Array();
bleedarray[0] =9.00;
bleedarray[1]=9.00;
bleedarray[2]=9.00;
bleedarray[3]=9.00;
_saveOpts.bleedOffsetRect = bleedarray;I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds. -
How to set optional for table structure in functiona module
hi experts,
as i have small doubt regarding
while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure ....
reagrds prabhanjanIgnoring the TABLES/CHANGING/EXPORTING argument...
while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure
Why not? There's no issue with marking a TABLES interface parameter with 'Optional' and publishing the function module or function group as a web service... -
How to set value for radio button in sap crm survey suite
Hi ,
I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
Thanks & Regards,
SeshuHi,
I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
Regards,
Seshu -
How to set value for selectOneChoice
Hello,
How to set value for selectOneChoice defined as:
<af:selectOneChoice label="Label" id="soc1" binding="#{DepositorMergingBean.socSurnameComponent}">
<f:selectItems id="si1" value="#{DepositorMergingBean.socSurnames}"/>
</af:selectOneChoice>
where socSurnames is List<SelectItem> - manually filled list of SelectItem(SomeObject, (String)text_description), so - SOC is filled manually (no binded iterators, etc..)
Neither socSurnameComponent.setValue( new Integer(0) ) nor socSurnameComponent.setValue( socSurnames.get(0) ) do not help.
Thanks in advance.this.selectOneChoice.setValue(selectItems.get(2).getValue());Try as per the following sample:
SelectOneChoiceTest.JSPX:
<af:form id="f1">
<af:selectOneChoice label="Select One Choice" id="soc1"
binding="#{SelectOneChoiceTestBean.selectOneChoice}">
<f:selectItems value="#{SelectOneChoiceTestBean.selectItems}"
id="si1"/>
</af:selectOneChoice>
<af:commandButton text="Set Selected Value" id="cb1"
actionListener="#{SelectOneChoiceTestBean.onClick}"/>
</af:form>
SelectOneChoiceTestBean.java:
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class SelectOneChoiceTestBean {
private RichSelectOneChoice selectOneChoice;
public SelectOneChoiceTestBean() {
super();
private List<SelectItem> selectItems;
public void setSelectItems(List<SelectItem> selectItems) {
this.selectItems = selectItems;
public List<SelectItem> getSelectItems() {
selectItems = new ArrayList<SelectItem>();
selectItems.add(new SelectItem("One", "One"));
selectItems.add(new SelectItem("Two", "Two"));
selectItems.add(new SelectItem("Three", "Three"));
return selectItems;
public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
this.selectOneChoice = selectOneChoice;
public RichSelectOneChoice getSelectOneChoice() {
return selectOneChoice;
public void onClick(ActionEvent actionEvent) {
this.selectOneChoice.setValue(selectItems.get(2).getValue());
Thanks,
Navaneeth -
How to set value for Dropdown control using Querystring filter wepart
Hi,
I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
I am able to set value for textbox control using Query String Filer web part.
But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
How to load the values in dropdown control on form load and set a value using Query String filter webpart?
Thanks,
dhijitHi,
According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
Now it would be filter by the value you have set.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How to set value for html:img
i am using <html:img tag to render image and i need to set some value to that image when selected and that value need to be checked in java code.
How i can set the value for that image.
Thanks,use javascript and hidden input to do this:
<html:img src="your_img.gif" ononclick="document.getElementById('your_hidden_input_id').value='your_value' ">
<input type="hidden" name="your_hidden_input_name" id = "your_hidden_input_id" value="" />Hope that Helps -
How to set value for slis_selfield-tabname
Hi!
I'd like to change the value of the field slis_selfield-tabname.
It will be used to handle different alv's!
One ALV is shown and after double-clicking, another one is shown.
If the user double-clicks now on one alv line he should be forwarded to a transaction!
Therefore I'd like to check the field slis_selfield-tabname to differ the two tables.
In both cases in my report slis_selfield-tabname is '1'.
Regards,
JackoI was looking for the same thing and I found what you were looking for originally. The value of slis_selfield-tabname is set when you build the columns of your ALV. For example:
wa_fieldcat-tabname = '1'. " this is were you set the cvalue for slis_selfield-tabname
wa_fieldcat-fieldname = 'CAT'.
wa_fieldcat-seltext_m = 'Category'.
wa_fieldcat-col_pos = 1.
wa_fieldcat-outputlen = 12.
append wa_fieldcat to i_fieldcat.
clear wa_fieldcat.
wa_fieldcat-tabname = '1'.
wa_fieldcat-fieldname = 'VAL'.
wa_fieldcat-seltext_m = 'Value (EUR)'.
wa_fieldcat-col_pos = 2.
wa_fieldcat-outputlen = 25.
append wa_fieldcat to i_fieldcat.
clear wa_fieldcat. -
How to set values for Parameters?
Hi,
I have the following Selection Screen;
SELECTION-SCREEN BEGIN OF BLOCK prog WITH FRAME TITLE text-001.
parameters: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1.
parameters zw_laufd like reguh-laufd.
parameters zw_laufi like reguh-laufi.
parameters zw_BELNR like BKPF-BELNR.
SELECTION-SCREEN END OF BLOCK prog.
For Parameter zw_laufd the following Module is written;
MODULE F4_LAUFD_0200.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'zw_laufi'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
ENDMODULE.
The Module Pops up a window for selection for Parameter zw_laufd. When I select a value from the popup zw_laufd gets a value and long with that Parameter zw_laufi gets a value too, but this value does not get refelcted in the screen. How to show this in the Selection screen?
Thanks,
KishanHi Kishan,
Just try this code in a separate program . On selection screen do an F4 on ZW_LAUFI, select any value and then execute . You will see the selected values in list output . I am not sure what is your probelm. Are you doing some other processing in selection screen apart from this code. Or is it that you want to do F4 on LAUDF and want LAUFI to be populated ?????
<b>data tlaufk like ILAUFK occurs 0 with header line.
SELECTION-SCREEN BEGIN OF BLOCK prog WITH FRAME TITLE text-001.
parameters: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1.
parameters zw_laufd like reguh-laufd.
parameters zw_laufi like reguh-laufi.
parameters zw_BELNR like BKPF-BELNR.
SELECTION-SCREEN END OF BLOCK prog.
AT selection-screen on value-request for ZW_LAUFI.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'ZW_LAUFI'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
AT selection-screen on value-request for ZW_LAUFD.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'ZW_LAUFI'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
START-OF-SELECTion.
write :/ zw_laufi.
write :/ zw_laufd.</b>
Cheers. -
How to set value for skip condition in train stop property of train compnt
Hi,
Iam using JDev 11.1.1.5 version, i have created a TaskFlow where having train components pointing to different jsff pages, moving from one jsff page to another jsff page.
I want to validate the input fileds in one of the jsff page, then only have to move to next jsff page. For this, how can i set skip property of train component....to disable to go for next train component...?
Note: I want to set boolean value(returns 'True', if all input fileds are filled, otherwise 'False') into skip property of train component.
Regards.You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
Also, you can try navigating to different train stops programmatically.
Check: 082. How-to programmatically navigate ADF train models
in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html -
PAAPINVW -- how to fetch values for invoice line level details
My requirement is such that we define one of our account segments at invoice line dff's while creating the invoice against a project. So the ccid would need to driven from this invoice line dff, to be complete and valid.
Project Supplier Invoice Account Generator (PAAPINVW) has already defined attributes for Invoice Header DFF's and Invoice Distribution level DFF's; but Invoice line level DFF's have not been defined.
Also there are no attributes that would help me query the invoice line to fetch these details.
Working on this workflow in R12. Has anyone tried to fetch any sort of details from invoice lines, using any existing attributes in PAAPINVW; or has anyone done something in accordance to this??
Looking for suggestions.. have anyone faced a similar situation before??Hi user;
Pelase check below note cause and solution part please,which at least can gives u some ideas
Projects Supplier Invoice Account Generation Error: APP-SQLAP-97734: The System Cannot Generate Distributions [ID 823787.1]Regard
Regard
Helios -
How to set value for Next Auto Restart for components
Hi All
When I checked my SPS13 portal in component monitoring area, I found that one of file server repository etc is not running. To get rid of the problem, we had to restart the portal.
On the same page there is a column for Next Auto Restart which was empty. Any idea where do we set it so that we do not have to restart entire portal for such kind of error.
Any help will be appreciated.
Regards
Prabhakar LalQuoting a mail by Akhilesh:
"Until EP6 SP2 you could have done this via
System Administration -> System Configuration -> Monitoring Configuration,
but this iView was deleted in SP3 and now this configuration needs to be done using the VA
In the VA navigate to Server -> Services -> Monitoring
In the Monitor Tree navigate to Root -> Applications -> KMC - > Repository Framework -> Components -> Repository Manager
You can set the "next auto restart" parameter for managers individually."
Regards, Karsten -
How i can capture the value for ovs selector in web dynpro application
hi
i create one OVS for SALES DOCUMNT MY PRIMARY KEY
FILED IS VBELN AND I WANT GENERATE ONE REPORTS FOR SALES DOCUMENT HOW THIS SERCH HELP IS CAPTURE THE VALUE I WANT TO SOULATION>
awadhesh chandel wrote:
> hi
> i create one OVS for SALES DOCUMNT MY PRIMARY KEY
> FILED IS VBELN AND I WANT GENERATE ONE REPORTS FOR SALES DOCUMENT HOW THIS SERCH HELP IS CAPTURE THE VALUE I WANT TO SOULATION
I am afraid that you are going to have to supply a few more details. What exactly are you having problems with? Do you need help creating the OVS? Or perhaps on how to capture the input from the OVS? Or do you nee dhelp actually generating the report of the sales documents itself? -
How to set mandatory a InputField in standard Web Dynpro component?
Hi guys.
A very weird thing is happening. I am trying to validate that a non-mandatory STANDARD input field (COST_ASSIGNMENT) does not to be empty. This input field belongs to GENERAL_DATA_VIEW, FITE_VC_GENERAL_DATA WD component. The entry fields at screen belong to this GENERAL_DATA_VIEW, but navigation is allocated in buttons that belong to another component (LAYOUT_VIEW in the FITV_FPM WD component). All the views and components are standard and they seem to be in the same screen from user's point of view. I was able to put my own code at WDDOAFTERACTION method in LAYOUT_VIEW to raise an error message.
Incredibly, my error text message appears in the MESSAGEAREA, and the UI components from GENERAL_DATA_VIEW are rightly still in the screen waiting for user answer since I set CANCEL_NAVIGATION = 'X', but the UI components from LAYOUT_VIEW (the buttons with navigate functions) changed like they had accepted my entry in spite of I set the code in this view. In fact, below my error text displayed, there is other (success) text which communicates "Standing approval for business trips exists" with a green tick.
The success text should not be displayed since I raised an error message, even after (I think so) the system created the success message. I suspect that the standard positive message with the green tick indicates that my error is being taking into acccount by the system to be displayed but the LAYOUT_VIEW UI components dont stop navigation and the data is wrongly saved from the code where the success message was generated.
I think there would be another way to define an standard inputfield mandatory, but I dont know how to do it. Do you know that? I really appreciate all help. Thankshi,
just make the input feild as mandatory in properties and use the following code.
data:
lo_view_controller type ref to if_wd_view_controller,
lo_dyn type ref to cl_wd_dynamic_tool.
Create Object
create object lo_dyn.
data lt_messages type lo_dyn->t_check_result_message_tab.
Get view controller reference
lo_view_controller = wd_this->wd_get_api( ).
Call Method to verify the element has the value or not
call method cl_wd_dynamic_tool=>check_mandatory_attr_on_view
exporting
view_controller = lo_view_controller
display_messages = ABAP_TRUE
importing
messages = lt_messages .
endmethod.
Regards,
Kranthi -
How to set values to the structure containing a node with cardinality 0..n
Hello.
I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
<xsd:complexType name="Field">
<xsd:sequence>
<xsd:element name="fieldCode" type="xsd:string"></xsd:element>
<xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Fields">
<xsd:sequence>
<xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
I need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
Best regards,
Timur SemenchukHi Marcus,
If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);
Hope this explains a bit!
Best,
Robin van het Hof
Maybe you are looking for
-
How do I insert/Delete/Update a row to the DB Table from Business Component Browser
I am using the wizard and created a project containing Business component which contain some table. When I run the project I could see "Oracle Business Component Browser(local)" and when I select some table from "View Object Member" I get a window di
-
Multiple inputs in NI usb 6008
I have to measure phase difference between two analog input signals. I did this by using two Ni daq assisstants but at a time I could only read one and an error comes. Kindly help me with examples if any of you have them.
-
Lightroom has been installed on my Laptop with a DVD. In the Adobe Programm Folder on my harddrive I do not find a *.msi file. Any ideas ?
-
Problems with InDesign CC 2014 tool palettes on an extended display
We have a Mac in our group set up with an extended display. With Indesign CC and before, we were able to move our InDesign tool palettes to the extended display, giving us a full view of our work on the main display. Now with the new upgrade to Indes
-
Disk Utility _ Disk Erase failed with the error
I have a 1GB Kingmax USB Stick which I am trying to erase or restore. I used in a PC at uni and it no longer works. When I try to erase or restore with Disk Utility I get an error message 'Disk Erase failed with the error: Input/output error' I have