How do I pass a table's row node currency to a managed bean via EL?
I know: I can't, cause Frank says so! http://blogs.oracle.com/jdevotnharvest/entry/passing_parameters_to_managed_bean_method_using_el
But I'd like to hear how the professionals solve this before I come up with one of my own wacky hack job solutions.
I have a table with several row nodes. In each of these nodes, I have <af:inputText> elements which need to become read only based on a method outcome:
readOnly="#{pageFlowScope.orderCreation.hasDependentRows}"However, I don't know how to evaluate for each and every row because I can't pass in the row currency to my method via EL.
The only workaround I can think of would be to create another transient attribute which holds the result of the hasDependentRows function and then reference that from EL, but I'd rather get some input before I start tinkering in the dark.
Any ideas? Using JDev 11.1.2.1.0.
Will
http://technology.amis.nl/blog/622/how-to-call-methods-from-el-expressions-pre-jsp-20-trick-for-jsps-with-jstl
Similar Messages
-
How can i get the realpath of my web application in jsf manage bean
in jsp, i can use application.getRealPath("/")
but in jsf how can i get the realpath in manage bean and initializean variable.
thanksFacesContext aFacesContext = FacesContext.getCurrentInstance();
ServletContext context = (ServletContext)aFacesContext.getExternalContext().getContext();
String rootpath = context.getRealPath("/");
i use the code like that ,it can work , but when i click a button in my web page and call a function of java bean to read a file in "rootpath" , only odd number click it do well , even number click it do nothing and navigate to a blank page.
how can i do that ,.
my english is too pool ,sorry. -
How to output some JSF codes depend on the value of a managed bean
like this:
<?
if (managedbean.propertyA == "1"){
?>
<h:commandButton action="#{managedbean.update}" value="update"/>
<?
}else {
?>
<h:commandButton action="#{managedbean.delete}" value="delete"/>
<?
?>
I know how to get the instance of a managed bean from jsp,
but i think It is not a good idea that writing scriptlets to get the instance, then writing code like above .
Is there a simple/reasonable way to implement this?
Thanks.
DavidTry this:
<h:commandButton action="#{managedbean.update}" value="update" rendered="#{managedbean.propertyA == \"1\"}"/>
<h:commandButton action="#{managedbean.delete}" value="delete" rendered="#{managedbean.propertyA != \"1\"}"/> -
How to impdp a specific table excluding rows which are corrupted using impdp
Hello,
I need some help with regard to the impdp. I have table which is corrupted and the information of corrupted rows is also available with me now i need to exclude those rows in specific and import the other error free rows.
Can you please let me know what would be the option to use with impdp.
Does the QUERY option work with impdp to exclude rows of that particular table.
Thanks,
Vinodhbut import is running for more than one day but the size of table is huge around 600GB.
Below you can find the parfile output. How to check if this process is still running. I have used dba_datapump_jobs but no use.
also truss output says thread is sleeping. Your inputs on this will be much helpful.
DIRECTORY=DUMPDIR113
DUMPFILE=expdpA_DDAPTE1_20130403_1003_%U.dmp
TABLES=A_DDAPTE1.FGBA_JBBB069
TABLE_EXISTS_ACTION=APPEND
QUERY=A_DDAPTE1.FGBA_JBBB069:"WHERE RECID NOT IN ('600KR7Feb07-5010009050','FTS100913QA-1','FTS100913QA-11','FTS100913QA-14','FTS100913QA-15','FTS100913QA-16'
,'FTS100913QA-17','FTS100913QA-19','FTS100913QA-2','FTS100913QA-25','FTS100913QA-3','FTS100913QA-31','LnLmtTst4Mar06-LMT-1015000','LndPrdMixDec16-4510003850',
'LndPrdMixDec16-4510004200','LndPrdMixDec30-4400041826','LndPrdMixJan08-1080005191','LndPrdMixJan19-1020043784','LndPrdMixJan24-1300009271','LndPrdMixJan27-20
80004131','LndPrdMixFeb08-2200008537','LndPrdMixFeb12-2061035772','LndPrdMixFeb23-4010020173','LndPrdMixFeb27-4030043858','LnLmtTst4Mar06-LMT-1015000','LndPdM
xMr17-1-2040044689','JPMF12309051824404','LndPrdMixMar31-4100030945','LndPrdMixApr26-5020016018','LndPdMxJl09-1-2090030535','JPMJ103090619303826','LndPrdMixSe
p03-4070048268','LndPrdMixSep24-4400010477','FTS100913QA-14','FTS100913QA-16','FTS100913QA-2','FTS100913QA-17','FTS100913QA-15','FTS100913QA-25','FTS100913QA-
31','FTS100913QA-11','FTS100913QA-19','FTS100913QA-3','FTS100913QA-1','JPMI22909071376392','LndPrdMixDec16-4510003850','LndPrdMixDec16-4510004200','LndPrdMixD
ec22-5020009996','LndPdMxJ317-1-2090007173','LndYr2011Jan18-4070033301','LndYr2011Feb02-4400000479','Lndn-11-671BKFeb24-2-1000091345','LndYr2011Mar11-41000182
11','RPS09090401918928','LndYr2011Feb26-3050008971','LndYr2011Mar214-4400016890','LndYr2011Apr08-4100023458','FTS09091801399914','LndYr2011May26-5010040755','
LndYr2011Jun01-4030034285','Thrd25BulkJun30-5010048461','CobRun0211Jul08-5020030807','600KCsp511Aug09-4030048518','RlTime250k2Sep09-6010025105','CCS0911060114
460','3600KR61284NOV24-4030000342','600KR7Feb07-5010009050','FTS09120801346378','600KFWDDATEDMAR09-5010016394','ST10912240129034','MMK0912300369630','600KR701
MAY04-4100000188','GBA671Tes2RemDor-3000088468','R21210JUL2012R1-3200014672','CBG1002030116505','R312G10OCT2012R3-3070047935','R312G30OCT2012RR1-3090016437','
SOLARIS07DEC2012RR1-3200011526','LINUX23JAN2013RR1-3020015180','LINUX29JAN2013RR1-3050004304','LINUX04FEB2013RT2-3020045579','MMK10032201164879','FTS100324012
16453','MMB1003260224532','LINUX14FEB2013RB2-3060003239','LINUX25FEB2013RB1-3100048142','FTS10040802260630','LINUX24MAR2013RB1-4400044062','LINUX23MAY2013RR1-
3060001245','LINUX10JUN2013RR3-3030035797','LINUX12JUN2013RR2-3060024808','LINUX14JUN2013RR2-3040046259')"
LOGFILE=YYYY069_20130702LOG.log
PARALLEL=15
Thanks,
Vinodh -
How do I pass a table of objects to global classes (creatd in class buildr)
Using local classes where I type everything in SE38, this is done using the following:
METHOD some_method
IMPORTING table_of_objects TYPE TABLE OF REF TO z_class
However, I don't know how to do this in the class builder. In the PARAMETER subscreen of the methods tab, the type column only has TYPE, LIKE, and TYPE REF TO.
Please help. Thanks!
KyleYou can also define the PUBLIC table type in the PUBLIC section. Use this table type as the type for your parameter.
In class ZCLASS, create a public table type. use Go to > Public Section and create the type, like:
types: ty_t_zclass type standard table of ref to zclass.
In your other method, use this type to define the parameter (or attributes)
IT_ZCLASS_OBJ IMPORTING TYPE ZCLASS=>TY_T_ZCLASS
Regards,
Naimesh Patel -
How can we contrrol the focus of an form Object from the Managed bean??
I am getting the following script error...
Can't move the focus to the control because it is invisible or not enabled or of the type that does not accept the focus...
I have a button whose action is mapped to a function in the Managed bean.
In the managed bean
I am making the button Invisible along with some other components.
Can any one help me out....@BalusC
You were proposing the following solution in other thread..
<html>
<head>
</head>
<body>
<f:verbatim>
<script>
setFocus('</f:verbatim><h:outputText value="#{myBean.focusId}" /><f:verbatim>');
</script>
</f:verbatim>
</body>
</html>
But it is giving the following error
javax.faces.FacesException: org.apache.jasper.JasperException: /EducationDetails.jsp(97,29) The element type "script" must be terminated by the matching end-tag "</script>". -
How to access all rows one by one of a ADF table through managed bean
Hi Experts,
Hi i am new in ADF.
Could someone help me for solving the below case?
Scenario - I have table called Test_T1 which have 4 columns C1,C2,C3,C4. Have created EO,VO and AM for test_t1.
At the time of ADF page creation i selected the option 'Automatically Exposed UI components in New managed bean' (mynewmanagedbean.java).
From Data control drag and drop Test_T1 table in the page as a ADF table.
Set the properties for C1,C2,C3 is read only and C4 is an input text.
Have add after the table and attathed button action on the managed bean mynewmanagedbean.java.
At the time of running the page Test_T1 populated with some no. of rows (like 9).
How can i access all the above rows through pressing the button without selection of any of them.
Actually i want to print all the table rows in log file at the time of pressing the button.
Thanks in advance.Hi Timo,
Thanks a lot for your reply.
I am using the JDeveloper 11.1.2.1.0.
As previously said I am totally new in this framework. So if you explain the solution given by you then it will be help full for me.
Don't know r you agree or not for this ?
When i put your resolution in the command button bean JDeveloper said TestDataRow type not found.
What will be the type and TestDataRow and what is missing in below code or how i will declare that in below code?
Also Could please mentioned the missing thing ?
package createrow.view.pagecreation.bean;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import org.apache.myfaces.trinidad.model.RowKeySet;
import oracle.adf.model.BindingContext;
import java.util.Iterator;
import java.util.List;
import oracle.adf.model.bean.DCDataRow;
import oracle.jbo.Key;
import oracle.jbo.Row;
import oracle.jbo.RowSet;
import oracle.jbo.RowSetIterator;
import oracle.jbo.ViewObject;
public class OrdCreationWithManagedBean {
public String cb1_action() {
// Add event code here...
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcIteratorBindings =
bindings.findIteratorBinding("TestOrderItemAllocationVO1Iterator");
// Get all the rows of a iterator
Row[] rows = dcIteratorBindings.getAllRowsInRange();
TestDataRow dataRow = null;
for (Row row : rows) {
dataRow = (TestDataRow)((DCDataRow)row).getDataProvider();
// work with the row...
return null;
My page bindings like below
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.81"
id="OrdCreationWithManagedBeanPageDef" Package="createrow.view.pageDefs">
<parameters/>
<executables>
<variableIterator id="variables"/>
<iterator Binds="TestOrderItemAllocationVO1" RangeSize="25" DataControl="MainAppModuleDataControl"
id="TestOrderItemAllocationVO1Iterator"/>
<iterator Binds="TestOrderItemsEOView1" RangeSize="25" DataControl="MainAppModuleDataControl"
id="TestOrderItemsEOView1Iterator"/>
</executables>
<bindings>
<tree IterBinding="TestOrderItemAllocationVO1Iterator" id="TestOrderItemAllocationVO1">
<nodeDefinition DefName="createrow.view.TestOrderItemAllocationVO" Name="TestOrderItemAllocationVO10">
<AttrNames>
<Item Value="AllocationId"/>
<Item Value="AlocationSequence"/>
<Item Value="ProductName"/>
<Item Value="AllocationPercentage"/>
</AttrNames>
</nodeDefinition>
</tree>
<tree IterBinding="TestOrderItemsEOView1Iterator" id="TestOrderItemsEOView1">
<nodeDefinition DefName="createrow.view.TestOrderItemsEOView" Name="TestOrderItemsEOView10">
<AttrNames>
<Item Value="OrderId"/>
<Item Value="AllocationId"/>
<Item Value="ProductName"/>
<Item Value="OrderItemsQty"/>
</AttrNames>
</nodeDefinition>
</tree>
</bindings>
</pageDefinition>
Thanks In Advance -
How to pass Dynamic Table(s) to FM
Hello All i hv an requirement in which i need to process a block of code recursively. right now i am trying to do the same with Subroutine but its hard i know. I have an option to use FM instead but i am not sure if we can pass dynamic tables to FM, so is there anybody who had solution for the same. otherwise i can use it using TOP include to declare dynamic table in comon arae as im calling it from another FM(RFC) but i dont want to use that as it will consume more memory.
So i have 2 question
1. should i use FM instead of subroutine for recursive operation if yes how can know if i reached the maximum alloted size of memory for a program. is there any FM which can tell me about the memory used or somethign like that so that i can avoid any ABAP dump.
2.how can i pass dynamic tables as input to parameters.
Note : i allready seen https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f50dcd4e-0501-0010-3596-b686a7b51492Hello Mani
Perhaps the sample report ZUS_SDN_TABLE_READ_VIA_RFC_XML in thread
How to return back a structure of dynamic tables in a Function Module
might be a useful approach for you.
Regards
Uwe -
Passing Internal tables between pages (in stateless appl.)
hi BSP gurus,
how do I pass internal tables from one BSP page to another. The problem is that the appl. is stateless and hence I am not able to use the appl. class.
thanks in advance,
Ashish WalkeHi Ashish,
In the onInputProcessing event of the first page , write the following code...
call method NAVIGATION->SET_PARAMETER exporting
name = 'filled_table'
value = filled_table.
Here filled_table is internal table.
NAVIGATION->GOTO_PAGE('second.htm').
In the next page , you can make the internal table as auto in the attributes.
Since you have made the itab as auto transfer , you can directly access the itab in the initialization event of the next page if it is stateless.
Regards,
Aashish Garg -
How to open a jspx in a popup from managed bean.
Hello,
I'm using Studio Edition Version 11.1.1.4.0.
I have a JSPX that is to be used as an application monitor screen. So it contains 5 af:tables with plenty of columns & query search criteria. Each of the tables has context sensitive menus as well as double click functionality.
When I write everything in a single JSPX, the code functions as expected. i.e. menu items & double click actions open new popups with requisite data. However, single JSPX becomes huge in size and hence difficult to maintain.
When I transfer code to another JSPX, How do I call the new JSPX in a popup from the managed bean?
Regards,
AmarTry this:
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/53-taskflow-in-popup-169196.pdf -
How can we pass the entire rows of a table to a web service in a VC model ?
Hi,
On the click of the submit button, I have to pass the rows of two tables into an enterprise service. This service also takes other fields of a form as an input.
How can we pass the entire rows of a table into a service ?
Regards,
NitinHi Nitin,
It seems that you have two or three different structures to pass data using your webservice. In your main question, two tables, you can join both in one table and from there call the webservice. In order to pass the entire table you need:
1. Draw a line between your joinned table and your service,
2. Map the fields,
3. Create a 'SUBMIT' in your table tool bar. Right click on your table and choose 'Create Toobar', '+', name and choose 'Submit' as your event.
4. Go to Configure Element (Table View) 'Multiple' at Selection Mode.
Reward points if helps you to solve your question.
Regards,
Gilson Teixeira -
How to pass Internal table in submit
Hi Friends-
i have a internal table with two fields it is like
begin of error occurs 0,
num(8) type n,
msg(50) type c,
end of error .
now this table i have to submit in another report and i have to use this table in that other report
but how i can pass this in submit pls guide me.
Regards
MeetaHi ,
I am writing the 2 options that I know of my knowledge:
OPTION 1 :
in prog1
loop at itab.
r_matnr-sign = 'I'.
r_matnr-option = 'EQ'.
r_matnr-low = itab-matnr.
append r_matnr.
clear r_matnr.
endloop.
submit prog2 via selection-screen
with s_matnr in r_matnr and return.
in prog2
select-options: s_matnr for mara-matnr no-display.
loop at s_matnr.
itab-matnr = s_matnr-low.
append itab.
clear itab.
endloop.
OPTION 2:
report zashish_1.
data: imara type table of mara with header line.
start-of-selection.
select * into table imara from mara up to 10 rows.
export imara to memory id 'YOURID'.
submit zashish_2 and return.
The submitted program.
report zashish_2 .
data: imara type table of mara with header line.
import imara from memory id 'YOURID'.
loop at imara.
write:/ imara-matnr.
endloop.
Hope these option might have clarified most of your doubts.
Regards,
Ashish Arora -
How to pass a table of values as input to a BAPI
I have a BAPI that is expecting a table as an input. How do I do that in Visual Composer 7.1.
I am getting an error when I try to pass the multiple selected rows from a table.
com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field null not a member of
Please advise
ThanksHi,
It sounds like a mapping problem. Just to make sure, check that all the table fields are mapped correctly (check them in the dynamic expression editor).
Also, make sure that all the fields from the table are selected and mapped at the BAPI input. If there are fields you don't want to pass, you can pass =null to them.
Best regards,
Tal. -
How to repeat 2 table header rows in adobe form
Can anybody suggest me how to repeat 2 table header rows .
one header row is for displaying only columns header list
second header row is for displaying 'from date' and 'to date'.
and i want this to be done using layout tab(palletes) in the form. will it be?
Message was edited by:
M Madhuloop at ot into wa.
at first header one
write second header.
endloop.
declear one internal table append both values in come internal table .
pass the header in comen internal table.
Message was edited by:
Karthikeyan Pandurangan -
Passing Multiple table row from one view to another view
Hi,
How to Passing Multiple table row from one view to another view in Web Dynpro Abap. (Table UI Element)
thanx....Hi Ganesh,
Kindly do search before posting.. this discussed many times..
First create your context in component controller, and do context mapping in two views so that you can get values from
one veiw to any views.
and for multiple selection, for table we have property selection mode.. set as multi and remember context node selection
selection cardinality shoud be 0-n.
so, select n no of rows and based on some action call sec view and display data.( i think you know navigation between veiw ).
Pelase check this...for multi selection
Re: How to copy data from one node to another or fromone table to another table
for navigation.. check
navigation between the views
Cheers,
Kris.
Maybe you are looking for
-
Problem in invoking TaskMAnager from another BPEL process
Hi, I have created a BPEL process having its own xsd schema file and i have also imported Task.xsd.In this process i want to invoke TaskManager Service in java Embed activity(bpel:exec language="java") in following manner: ///////////////////////////
-
No activation of relationship to object S 55000321 in pl.version 55000321 (
Hi experts, I am getting this error while transporting the Change request. " No activation of relationship to object S 55000321 in pl.version 55000321 (cl.610) " Please advise. Regards, Tomesh
-
How do I get full screen mode to work on my second monitor?
I have a MacBook Pro with Lion, and I want to open my apps fullscreen on my larger display. However, full screen always defaults to MBP screen.
-
HT4796 link to migration assistant doesn't work. Where can I find it?
link to migration assistant doesn't work. Where can I find it?
-
Hi, My emp table contains one milion of records. delete from emp; commit; select count(*) from emp; I had perform the above three queries parallely. After applying the commit operation, To retrive the no.of records in that table it takes so