Using Radiobutton in a table in Column
Dear all,
Can anyone please help me how to use radio button in a webdynpro table in a column?, In a column i want to use radio button and i want to select one button at a time in a column.
Hi kavin,
Try dynamic lead select option.if u select one Radio button means the particular row will get lead selected.i think that ll solve your problem.check the coding
DATA LO_ND_BBU_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_BBU_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
LO_ND_BBU_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'VENDOR_DETAIL' ).
LO_EL_BBU_NODE = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
LO_ND_BBU_NODE->SET_LEAD_SELECTION( ELEMENT = LO_EL_BBU_NODE ).
Edited by: Gowtham.A on Oct 3, 2011 1:30 PM
Similar Messages
-
Using variables to specify tables and columns in a function
All,
I'm trying to create a function to select a random table, random column, random row, and return the data. I'm not quite sure how to use the table_name once I have it stored in the variable and I'm hoping someone can help.
Here is the code:
create or replace function sknddstr (asdf in varchar2)
return varchar2
is
v_table varchar2(50);
v_column varchar2(50);
v_data varchar2(50);
v_return varchar2(160);
begin
select asdf.table_name into v_table
from dual
, (select table_name
from user_tables
where table_name not like 'TEMP%'
order by dbms_random.random) asdf
where rownum < 2;
select fdsa.column_name into v_column
from dual
, (select column_name
from user_tab_cols
where table_name = v_table
and nullable = 'Y'
order by dbms_random.random) fdsa
where rownum < 2;
select v_column into v_data
from dual
, (select v_column
from v_table
order by dbms_random.random)
where rownum < 2;
select v_table || ' | ' || v_column || ' | ' || v_data into v_return
from dual;
return v_return;
end;
Any suggestions? BTW, I know I don't use the IN asdf, but I'm not sure how to create a function with no parameters.
Thanks again!You need to use dynamic SQL whenever you substitute object names (table, column, etc.) at runtime. I would suggest something like (note I have changed the filters to match my data):
sql>create or replace function f_random_data
2 return varchar2
3 is
4 v_table_name user_tab_columns.table_name%type;
5 v_column_name user_tab_columns.column_name%type;
6 v_data varchar2(4000);
7 begin
8 select table_name, column_name
9 into v_table_name, v_column_name
10 from (select table_name, column_name
11 from user_tab_columns
12 where table_name = (select table_name
13 from (select table_name
14 from user_tables
15 where table_name in ('EMP', 'DEPT')
16 order by dbms_random.random)
17 where rownum <= 1)
18 -- and nullable = 'Y'
19 order by dbms_random.random)
20 where rownum <= 1;
21
22 execute immediate
23 'select *' ||
24 ' from (select ' || v_column_name ||
25 ' from ' || v_table_name ||
26 ' order by dbms_random.random)' ||
27 ' where rownum <= 1'
28 into v_data;
29
30 return (v_table_name || '|' || v_column_name || '|' || v_data);
31 end;
32 /
Function created.
sql>select f_random_data from dual;
F_RANDOM_DATA
EMP|COMM|500
1 row selected.
sql>/
F_RANDOM_DATA
DEPT|DNAME|SALES
1 row selected.
sql>/
F_RANDOM_DATA
DEPT|DEPTNO|40
1 row selected.
sql>/
F_RANDOM_DATA
EMP|ENAME|SCOTT
1 row selected.
sql>/
F_RANDOM_DATA
DEPT|DNAME|OPERATIONS
1 row selected. -
Guys,
I need to update table A columns col3, col4, col5 and col6 by table b columns col3, col4, col5 and col6 however table b col5 and col6 values need to come from table c col1.
Means table b col5 and col6 have values in it however i need to replace them with value from table c col1 and need to update table a col5 and col6 accordingly.
table a and table b has col1 and col2 in common.
i am trying something like this.
Update a
a.col3 = b.col3,
a.col4 = b.col4,
a.col5 = (select col1 from table_c c where c.col2=b.col5),
a.col6 = (select col1 from table_c c where c.col2=b.col6)
from table_A a inner join table_b
on a.col1=b.col1 and a.col2=b.col2
can someone help me reframe above update query?
thanks in advance for your help.Try the below:(If you have multiple values, then you may need to use TOP 1 as commented code in the below script)
create Table tableA(Col1 int,Col2 int,Col3 int,Col4 int,Col5 int,Col6 int)
Insert into tableA values(1,2,3,4,5,6)
create Table tableB(Col1 int,Col2 int,Col3 int,Col4 int,Col5 int,Col6 int)
Insert into tableB values(1,2,30,40,50,60)
create Table tableC(Col1 int,Col2 int,Col3 int,Col4 int,Col5 int,Col6 int)
Insert into tableC values(100,50,30,40,2,2)
--Insert into tableC values(200,50,30,40,2,2)
Insert into tableC values(100,60,30,40,2,2)
Select * From tablea
Update a Set
a.col3 = b.col3,
a.col4 = b.col4,
a.col5 = (select col1 from tablec c where c.col2=b.col5 ),
a.col6 = (select col1 from tablec c where c.col2=b.col6 )
from tableA a inner join tableb b
on a.col1=b.col1 and a.col2=b.col2
--Update a Set
--a.col3 = b.col3,
--a.col4 = b.col4,
--a.col5 = (select Top 1 col1 from tablec c where c.col2=b.col5 Order by c.Col1 asc),
--a.col6 = (select Top 1 col1 from tablec c where c.col2=b.col6 Order by c.Col1 asc)
--from tableA a inner join tableb b
--on a.col1=b.col1 and a.col2=b.col2
Select * From tablea
Drop table tablea,Tableb,TableC -
Using of already existing logical tables and columns in a new subject area.
Hi Every one,
i am new to OBIEE technology.
In my project i need to create a new subject area for already existing RPD.
In that RPD there are some logical tables and column created for previous project and i need to use those in this new subject area that i am going to create.
My question is what is the best way to use them .
I mean just to drag and drop them into new subject area or any other way.
please have your valuable suggestions
thanking youYes, you can basically copy paste all the tables that you need from BMM layer into your new folder in the presentation layer. Just make sure all the joins are defined well between all the tables that exists in the new folder, so you wont end up running into ODBC errors when you run analysis.
Hope this helps.
Thanks,
-Amith. -
How to use a radiobutton group on table control ?
In the selection screen ,i could define a variable as radiobutton group xxx .It's just so easy ,button when I want to use it in the table control through the the wizard ,but in the 4.6c version there is simply no such as radionbutton component in the panel .how could i do ?
Hi Jack,
It's a bit tricky to get the Radio Button in the Table Control. Only a few things needs to be done.
1. Create a structure with an Checkbox field of TYPE CHAR 1.
2. Create the Table Control with Wizard and mark the Checkbox field as CHECKBOX in one of the popup.
3. In the Screen, right-click on the Checkbox field. You will get a list of options and there you should check the radio button option. You will get the selection as Radio button available across all the rows.
You can check out the demo codes at SE38 by searching DYNPRO.
Also have a look at this following link.
http://www.esnips.com/doc/48bd95e8-facc-4932-b923-465ba59bad24/Table-Control
Hope this will help.
Thanks,
Samantak. -
Tables and Columns used in Universe (BO 6.5)
Hi All,
Please help me out with the below queries:
1. Is there any automated way to find out which report is using which universe? (may be through a SQL fired in BO repository)
(Note: As per the BO Documentation, OBJ_X_DOCUMENTS This is the only table in the document domain. It stores the binary content of all documents sent to the repository (through the user actions Publish to corporate documents, Send to users or Send to Broadcast Agent). The document contents are stored as BLOBs (Binary Large Objects) stored in slices.)
2. I need to identify the universes which use certain tables and columns.
I fired the following SQL in BO repository:
SELECT
UNV_UNIVERSE.UNI_FILENAME,
UNV_UNIVERSE.UNI_LONGNAME,
UNV_TABLE.TAB_NAME,
UNV_COLUMNS.COLUMN_NAME
FROM UNV_UNIVERSE, UNV_TABLE,UNV_COLUMNS
WHERE
UNV_UNIVERSE.UNIVERSE_ID = UNV_TABLE.UNIVERSE_ID
AND UNV_TABLE.TABLE_ID = UNV_COLUMNS.TABLE_ID
But as 'UNV_COLUMNS' table is empty, no data is returned. My question is is this table supposed to be empty in BO repository?
Is there any other way to find out this (identify the universes which use certain tables and columns)?
Many Thanks & Regards,
SandeepHi,
Please find the below list of tables created in the BO repository, which helps you to retrieve the information related to reports, universes, users e.t.c.
OBJ_M_ACTOR
OBJ_M_ACTORDOC
OBJ_M_ACTORLINK
OBJ_M_CATEG
OBJ_M_CONNECTDATA
OBJ_M_CONNECTION
OBJ_M_DOCAT
OBJ_M_DOCATVAR
OBJ_M_DOCCATEG
OBJ_M_DOCCST
OBJ_M_DOCUMENTS
OBJ_M_GENPAR
OBJ_M_MAGICID
OBJ_M_OBJSLICE
OBJ_M_REPOSITORY
OBJ_M_RESERVATION
OBJ_M_RESLINK
OBJ_M_TIMESTAMP
OBJ_M_UNIVCST
OBJ_M_UNIVDBCST
OBJ_M_UNIVERSES
OBJ_M_UNIVSLC
OBJ_M_USRATTR
OBJ_X_DOCUMENTS
UNV_AUDIT
UNV_CLASS
UNV_CLASS_DATA
UNV_COLUMNS
UNV_COLUMN_DATA
UNV_CONTEXT
UNV_CONTEXT_DATA
UNV_CTX_JOIN
UNV_DIMENSION
UNV_DIM_OBJ
UNV_JOIN
UNV_JOINCONTENT
UNV_JOIN_DATA
UNV_JOIN_OBJECT
UNV_OBJCONTENT
UNV_OBJECT
UNV_OBJECT_DATA
UNV_OBJECT_KEY
UNV_OBJ_COLUMN
UNV_OBJ_TAB
UNV_PROPERTY
UNV_PROP_DATA
UNV_PROP_TAB
UNV_RELATIONS
UNV_TABLE
UNV_TABLE_DATA
UNV_TAB_OBJ
UNV_TAB_PROP
UNV_UNIVERSE
UNV_UNIVERSE_DATA
UNV_X_UNIVERSES
Hope this tables helps you. -
Sql query parsing (retrieve tables and columns used in query)
Hi,
1. Is there any view in Oracle which can tell me, which tables and columns were used in the last ran query, no matter how complex the query is.
2. Secondly I can get table names, used in stored procedures and views, using USER_DEPENDENCIES VIEW, however this System View does not return column names, used in that procedure / view, any idea please .
Thanks and Regards,
Luqmanluqman123 wrote:
Hi,
1. Is there any view in Oracle which can tell me, which tables and columns were used in the last ran query, no matter how complex the query is.I don't believe so. You can look at V$SQL and retrieve the actual SQL text from there.
2. Secondly I can get table names, used in stored procedures and views, using USER_DEPENDENCIES VIEW, however this System View does not return column names, used in that procedure / view, any idea please .Oracle added fine grained dependency tracking in 11g, but didn't expose any views to query this information. However, it has been reverse engineered a bit: About Oracle: DBA_DEPENDENCY_COLUMNS -
Npe when using popup inside adf table column
hi i have a popup witch is inside adf column table but when i click the button i get this npe error
<af:column id="c7" headerText="Action">
<af:commandButton text="Add" id="cb2">
<af:showPopupBehavior popupId="p1" triggerType="click"/>
</af:commandButton>
<af:panelGroupLayout id="pgl2" inlineStyle="width:1042px;"
layout="horizontal" valign="middle"
halign="right">
<af:popup id="p1" contentDelivery="lazyUncached">
<af:dialog id="d1" type="cancel">
<af:region value="#{bindings.usrtaskflowdefinition1.regionModel}"
id="r1"/>
</af:dialog>
</af:popup>
<af:commandButton text="Cancel" id="cb1" rendered="false"/>
<af:commandButton text="Remove" id="cb3" visible="false"/>
</af:panelGroupLayout>
</af:column>
am geting this NPE ERROR
<FacesCtrlSearchBinding> <release> ADFv: release():: Release all resources.
<ADFLogger> <end> ADF web request
<XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
javax.el.ELException: java.lang.NullPointerException
at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
at com.sun.el.parser.AstValue.getValue(Unknown Source)
at com.sun.el.parser.AstEqual.getValue(Unknown Source)
at com.sun.el.parser.AstOr.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
at org.apache.myfaces.trinidad.component.UIXComponentBase.getBooleanProperty(UIXComponentBase.java:1204)
at org.apache.myfaces.trinidad.component.UIXComponentBase.isRendered(UIXComponentBase.java:423)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:810)
at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:263)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
at oracle.adf.view.rich.component.fragment.UIXRegion.validateChildrenImpl(UIXRegion.java:634)
at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1422)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1358)
at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:407)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.NullPointerException
at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
at sun.reflect.GeneratedMethodAccessor357.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
... 87 more
<QueryCollection> <finalize> [4342] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4343] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
<QueryCollection> <finalize> [4344] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
<ControllerState> <finalizeRequest> ADFc: Request number [9] for session [14gycvxp1h_] has been finalized.
<QueryCollection> <finalize> [4345] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
<RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Attempting to release RootViewPort request lock on 14gycvxp1h_0
<QueryCollection> <finalize> [4346] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
<QueryCollection> <finalize> [4347] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
<RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Successfully released RootViewPort request lock on 14gycvxp1h_0
<QueryCollection> <finalize> [4348] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
<QueryCollection> <finalize> [4349] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
<Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
<QueryCollection> <finalize> [4350] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
<QueryCollection> <finalize> [4351] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4352] ##### QueryCollection.finl no RowFilter
<Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
<QueryCollection> <finalize> [4353] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4354] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4355] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4356] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4357] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4358] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4359] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4360] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4361] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4362] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4363] ##### QueryCollection.finl no RowFilter
<QueryCollection> <finalize> [4364] ##### QueryCollection.finl no RowFilter
<AbstractExecutionContext> <getECForJDBC> adding new ECForJDBC null to set of listeners for this context
<WatchingDocumentChangeNotifier> <run> decide if checkUsingListeners should run. loopCnt: 0 changeInterval: 60000 originalChangeInterval: 60000 forceCheckForUpdate: false notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
<WatchingDocumentChangeNotifier> <checkUsingListeners> BEGIN checkUsingListeners for notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
<WatchingDocumentChangeNotifier> <checkUsingListeners> notifier processing file: C:\Users\10017134\AppCaused by: java.lang.NullPointerException
at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
It seems that problem is caused by af:query or quickquery component(or underlying view object or view criteria).
Maybe you can drop BTF as static region directly to your page and see if this will run correctly?
YES i have try stll does not work
So then this is not related with "npe when using popup inside adf table column"
Dario -
Trying to use 2 different Dimension tables and make a hierarchy on some columns which are split into these dimensions .. how do I do that
If you need to make a hierarchy in an Attribute view you need to have all relevant fields/columns in the same Dimension table..
-
How to use simple types for table column names ?
Hi,
can any one tell how to to use simple types for table column names?
It is required in internationalizing of webdynpro applications.
Regards,
RajeshHi,
1: define required column names in <SimpleType>
2:use the following code to get those values
3:bind 'text' property of Column headers to context attributes
4:take a context attribute 'Value' as type of <SimpleType>
5:set these values to context attributes
IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
Map m=simple.getEnumerationTexts();
Collection c=m.values();
Iterator it=c.iterator();
if(it.hasNext())
wdContext.currentContextElement.set<att1>(it.next().toString);
if(it.hasNext())
wdContext.currentContextElement.set<att2>(it.next().toString);
if(it.hasNext())
wdContext.currentContextElement.set<att3>(it.next().toString);
Regards
LakshmiNarayana -
How to use substr in external table defnition.
Hi All,
Im using oracle 11g. I have an external table which is reading data from a file. For one of the column, i need to get only the first 250 characters. My external table defnition looks like this
create table tbl_substr
( col1 varchar2(20),
col2 varchar2(250)
organization external
( type oracle_loader
default directory XXXX
access parameters (
records delimited by newline
FIELDS TERMINATED BY '|'
missing field values are null
( col1 ,
col2 "substr(:col2,1,250)"
) ) location ('file.txt') )
reject limit unlimited
But this defnition gives an error when i do select * from tbl_substr
I want to use substr in external table defnition its self and not in SELECT. Also i dont want to crete a view to solve this. If anyone has done this please help.You need to play with COLUMN_TRANSFORMS
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_params.htm#sthref1792
BTW, i too got it from Google. I was not aware about this :)
Amardeep Sidhu -
How to use PF status in Table Control?
I have made 1 table control. Now I need to use three buttons like SELECT, DESELECT, DELETE the rows of table control using PF STATUS. Can you plz help with the Code.
Hi.
Refer this code.
The following example processes a table control with LOOP with parallel loop using an internal table. By using function codes you can sort columns and delete rows from the internal table. The ready for input status of the table control fields is controlled using a function code.
REPORT demo_dynpro_tabcont_loop_at.
CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: cols LIKE LINE OF flights-cols,
lines TYPE i.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
DATA: itab TYPE TABLE OF demo_conn.
TABLES demo_conn.
SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
LOOP AT flights-cols INTO cols WHERE index GT 2.
cols-screen-input = '0'.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
DESCRIBE TABLE itab LINES lines.
flights-lines = lines.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE read_table_control INPUT.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'TOGGLE'.
LOOP AT flights-cols INTO cols WHERE index GT 2.
IF cols-screen-input = '0'.
cols-screen-input = '1'.
ELSEIF cols-screen-input = '1'.
cols-screen-input = '0'.
ENDIF.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
WHEN 'SORT_UP'.
READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
IF sy-subrc = 0.
SORT itab STABLE BY (cols-screen-name+10) ASCENDING.
cols-selected = ' '.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDIF.
WHEN 'SORT_DOWN'.
READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
IF sy-subrc = 0.
SORT itab STABLE BY (cols-screen-name+10) DESCENDING.
cols-selected = ' '.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDIF.
WHEN 'DELETE'.
READ TABLE flights-cols INTO cols
WITH KEY screen-input = '1'.
IF sy-subrc = 0.
LOOP AT itab INTO demo_conn WHERE mark = 'X'.
DELETE itab.
ENDLOOP.
ENDIF.
ENDCASE.
ENDMODULE.
Reward all helpfull answers.
Regards.
Jay -
Hi,
I am trying to add a calculated field in my power pivot table to show the percentage on the basis of 2 columns, please let me know why this is not appearing and how can i fix it.
Any other way if i can add a calculated field in the pivot table will be very helpful.
Thanks
AmanThanks KR for the response,
Yes I loaded multiple tables in the data model and using PoewrPivot ,
i have a rating column, in that i have 0,1,2,3,4,5 rating numbers and we call it "Total expected occurrence",
a single person can get same rating multiple times, if a person is getting >=4 rating no. we call it "Occurrence >= 4". now i have to find out the total
count of "Occurrence >=4" for a particular person from "Total expected occurrence" column,
once will get the net "Occurrence >=4" for everyone, it should divide
"Occurrence >=4"/ "Total expected occurrence" to take out the percentage of rating 4 for a particular person
Best Wishes,
Aman verma -
Proper use of a Lookup table and adaptations for NET
Hello,
I need to create a few lookup tables and I often see the following:
create table Languages
Id int identity not null primary key (Id),
Code nvarchar (4) not null,
Description nvarchar (120) not null,
create table Posts
Id int identity not null primary key (Id),
LanguageId int not null,
Title nvarchar (400) not null,
insert into Languages (Id, Code, Description)
values (1, "en", "English");
This way I am localizing Posts with language id ...
IMHO, this is not the best scheme for Languages table because in a Lookup table the PK should be meaningful, right?
So instead I would use the following:
create table Languages
Code nvarchar (4) not null primary key (Code),
Description nvarchar (120) not null,
create table Posts
Id int identity not null primary key (Id),
LanguageCode nvarchar (4) not null,
Title nvarchar (400) not null,
insert into Languages (Code, Description)
values ("en", "English");
The NET applications usually use language code so this way I can get a Post in English without using a Join.
And with this approach I am also maintaining the database data integrity ...
This could be applied to Genders table with codes "M", "F", countries table, transaction types table (should I?), ...
However I think it is common to use int as PK in lookup tables because it is easier to map to ENUMS.
And know it is even possible to map to Flag Enums so have a Many to Many relationship in an ENUM.
That helps in NET code but in fact has limitations. A Languages table could never be mapped to a FLags Enum ...
... An flags enum can't have more than 64 items (Int64) because the keys must be a power of two.
A SOLUTION
I decided to find an approach that enforces database data integrity and still makes possible to use enums so I tried:
create table Languages
Code nvarchar (4) not null primary key (Code),
Key int not null,
Description nvarchar (120) not null,
create table Posts
Id int identity not null primary key (Id),
LanguageCode nvarchar (4) not null,
Title nvarchar (400) not null,
insert into Languages (Code, Key, Description)
values ("en", 1, "English");
With this approach I have a meaningfully Language code, I avoid joins and I can create an enum by parsing the Key:
public enum LanguageEnum {
[Code("en")
English = 1
I can even preserve the code in an attribute. Or I can switch the code and description ...
What about Flag enums? Well, I will have not Flag enums but I can have List<LanguageEnum> ...
And when using List<LanguageEnum> I do not have the limitation of 64 items ...
To me all this makes sense but would I apply it to a Roles table, or a ProductsCategory table?
In my opinion I would apply only to tables that will rarely change over time ... So:
Languages, Countries, Genders, ... Any other example?
About the following I am not sure (They are intrinsic to the application):
PaymentsTypes, UserRoles
And to these I wouldn't apply (They can be managed by a CMS):
ProductsCategories, ProductsColors
What do you think about my approach for Lookup tables?
Thank You,
Miguel>>IMHO, this is not the best scheme for Languages table because in a Lookup table the PK should be meaningful, right?<<
Not necessarily. The choice to use, or not to use, a surrogate key in a table is a preference, not a rule. There are pros and cons to either method, but I tend to agree with you. When the values are set as programming terms, I usually use a textual value
for the key. But this is nothing to get hung up over.
Bear in mind however, that this:
create table Languages
Id int identity not
null primary key
(Id),
Code nvarchar (4)
not null, Description nvarchar
(120) not
null,
is not equivalent to
create table Languages
Code nvarchar (4)
not null primary
key (Code),
Description nvarchar (120)
not null,
The first table needs a UNIQUE constraint on Code to make these solutions semantically the same. The first table could have the value 'Klingon' in it 20 times while the second only once.
>>However I think it is common to use int as PK in lookup tables because it is easier to map to ENUMS.<<
This was going to be my next point. For that case, I would only change the first table to not have an identity assigned key value, as it would be easier to manage at the same time and manner as the enum.
>>. A Languages table could never be mapped to a FLags Enum ...<<
You could, but I would highly suggest to avoid any values encoded in a bitwise pattern in SQL as much as possible. Rule #1 (First Normal Form) is partially to have 1 value per column. It is how the optimizer thinks, and how it works best.
My rule of thumb for lookup (or I prefer the term "domain" tables, as really all tables are there to look up values :)), is all data should be self explanatory in the database, through data if at all possible. So if you have a color column,
and it contains the color "Vermillion", and all you will ever need is the name, and you feel like it is good enough to manage in the UI, then great. But bear in mind, the beauty of a table that is there for domain purposes, is that you can then store
the R, G, and B attributes of the vermillion color (254, 73, 2 respectively, based on
http://www.colorcombos.com/colors/FE4902) and you can then use that in coding. Alternate names for the color could be introduce, etc. And if UserRoles are 1, 2, 3, and 42 (I have seen worse), then
definitely add columns. I think you are basically on the right track.
Louis
Without good requirements, my advice is only guesses. Please don't hold it against me if my answer answers my interpretation of your questions. -
Best way of Using Index on a Table.
I am trying to understand the phenomena of using INDEX on a Table
need some guidance!!!
Let us take this scenario
I have a table "MYRECORD" which has 4 attributes(or coulombs)
1. "STATE" (varchar) // this can have 49 different values like newyork, dehli etc
2. "YEAR" //a year like 2007
3. "MONTH" //a month like JAN,FEB etc
4. "CAT" (int) // type(category) of data represented by values 0 to 40
with a PRIMARY KEY(STATE,YEAR,MONTH,CAT)
now i will create index
1. INX_myrecord (STATE,YEAR,MONTH) on table MYRECORD
so now my question is
1. what is the effect on performance of DB it makes?
2. when I use a query
SELECT * FROM MYRECORD WHERE STATE="dehli" AND YEAR=2007 AND MONTH="JAN";
how will it get processed if index is created and not created.
3. how can I refer a index by name in a query if so possible?
Cheers,
UD
Message was edited by:
UDAYYou have edited your post. Now you have a primary key consisting of state, year, month and cat which makes an index on state, year and month useless as the already existing primary key can provide for retrieval of rows by index. If you don't have other columns - or just few other not being large varchar2 columns - you should have created the table as an IOT (Index Organized Table - avoiding to have separate table and index containing - nearly - the same data) in the first place.
As a primary key by definition can contain only unique non null values, a query like SELECT * FROM MYRECORD WHERE STATE='dehli' AND YEAR=2007 AND MONTH='JAN' cannot give you more than the number of distinct cat values (0 .. 40) + 1 (if cat can be null - presumed one/some of the corresponding state, year and month is not null)
The information processing depends principally of the query, the mere presence of an index does not make sure it will be used. If an index is used it means the index will be searched first then the table rows will be accessed by rowids contained in the index (usually a single row or a range of rows - a rather small number of them - is retrieved this way, your select for example). Submitting something like SELECT * FROM MYRECORD WHERE YEAR=2007 AND cat=33 would most likely produce a full table scan of myrecord table ignoring the primary key.
Regards
Etbin
Maybe you are looking for
-
Mail.app and Eudora Mail Server using IMAP
I run five e mail accounts off three different mail servers. Ironically, the only one that doesn't work well is Eudora Mail Server running on our Apple network. Here's what Eudora say: "When using IMAP, OS X Mail does not appear to be compliant with
-
Can you send an object behind text in the Ipad pages app so that the text is over the top of the object?
-
IPhoto darkens images when importing
I've just been importing some photos into iPhoto 6 and I've noticed that quite a few pictures have been noticeably darkened, and I have no idea why! I checked in the folder and the darker photo does not appear in the folder of 'Modified' photos, but
-
Using Sinhala Unicode Fonts with Indesign
Hello, We are having trouble using Sinhala Unicode Font with Indesign. We require this to covert content to the EPUB format. Siyabas - how to install Sinhala Unicode Do you know if there is a Plug-in for the Sinhala Unicode Font? Or is there someon
-
Problems Creating R/3 46c Source System in BW3.50
Hello. Does anyone know if there is a way around opening up your R/3 system when creating it as a Source System in BW? I have no problems when creating the Source System in DEV, but when I attempt to create it in QAS and PRD, I get the message "Chan