BPC7.5NW: Set Filters by Attributes or Hierarchies
Hi Experts,
When running the Data Manager Package to import Master Data, under the 'Set Selection', there's a selection "Set Filters by Attributes and Hierarchies" OR "Set Filters by Attributes or Hierarchies". May I know:
1. What is the functionality of this selection?
2. What is the difference between these 2 options?
Please advise. Thanks.
Best Regards,
Kenneth
Hi Kenneth,
I noticed Attributes & Hierarchy option is working as intersection of those selections while bringing text(descriptions)
and Attributes or Hierarchy option is working as union of those selections. So with first option there are chances that texts(evdescription) for Text nodes(which does not exist in attributes table but exist in Hierarchy as folders) missing(not transferred to BPC). So Attributes or hierarchy option is pulling everything required with both the selections(attributes condition and Hierarchy condition).
-Kalyan.
Edited by: Kalyan.Undavally on Jul 28, 2011 6:17 PM
Similar Messages
-
Creation of Service Product with Set Type and Attribute
Dear All,
Please guide me with proper step by step process,
How to create the product with the set type and attribute for service industry in sap crm 7.0
Regards,Hi Nitin,
Before creating the Service type of product, you have to define the Base category for Service type product. Generally the category for service will be created under the R3 hierarchy R3PRODSTYPE. You can create this category using the TCode:
COMM_HIERARCHY. Here you have to select the product type as Service and have to assign the set types to the category.
You can create a service product using the transaction : COMMPR01 -> Click on Service ICON -> Select the Category for Service Type. Then fill in the details for Service Product description, Service ID(Based on number range settings for products), Language.
Also fill other details like Base Unit of measure, Pricing condition for different sales areas for the service product.
Since you are using CRM7.0, you can do all these activities using a POWER USER role.
For more information about Set types and hierarchies please refer the following help link:
http://help.sap.com/saphelp_crm70/helpdata/EN/46/57672501a208e7e10000000a114a6b/frameset.htm
Hope this helps!
Regards,
Chethan -
How to set filters to a Result view
Hi All,
How to set filters to a result view in web UI.
Thanks & Regards
Nitish.Hi Nitish Kumar,
if you want to sort the table fields like ascending , Descending create one event ex: eh_on_sorting.
in that get the event using thtmlb_event. then check whether sorting is necessary or not.
then get the name of column to be sort by using tableview->column_key.
based on that arrange the field ascending or descending using tableview->column_sort_directin.
ascending or descending.
then sort the collection using collection_wrappor->sort( lv_attrname .. etc).
here is the sample code..
data: lv_bo type ref to if_bol_bo_property_access,
lv_thtmlb_tableview type ref to cl_thtmlb_table_view,
lv_attr_name type name_komp,
lv_sort_order type char1,
lv_stable type abap_bool value abap_false.
try.
lv_thtmlb_tableview ?= iv_htmlb_event_ex.
catch cx_sy_move_cast_error.
exit.
endtry.
if lv_thtmlb_tableview is bound.
* check whether its realy a sorting event
check lv_thtmlb_tableview->event_type = cl_thtmlb_table_view=>co_header_click.
* get name of column to be sorted
lv_attr_name = lv_thtmlb_tableview->column_key.
check lv_attr_name is not initial.
* get sorting direction
case lv_thtmlb_tableview->column_sort_direction.
when 'U'.
lv_sort_order = cl_bsp_wd_collection_wrapper=>sort_ascending.
when 'D'.
lv_sort_order = cl_bsp_wd_collection_wrapper=>sort_descending.
when others.
return.
endcase.
* sort
try.
me->collection_wrapper->sort( iv_attr_name = lv_attr_name
iv_sort_order = lv_sort_order
iv_stable = lv_stable
* IV_SORT_CALLBACK =
catch cx_crm_cic_parameter_error.
* could be a renamed attribute or field which does not belong to the collection
endtry.
* in case of single selection restore the selected row index
if me->selection_mode = selmode_single
or me->selection_mode = selmode_lineedit.
if me->selected_index <> '0'.
me->selected_index = me->collection_wrapper->get_current_index( ).
endif.
endif.
else.
exit.
endif.
Thanks & Regards,
Srinivask -
Unable to find setter method for attribute:
I am using Jboss jboss-4.2.3.GA, JDK 1.6.
I am trying to deploy our application on Jboss. When loading sources page or whenever we try to load the taglib we are getting the following error.
org.apache.jasper.JasperException: jspfile.jsp(67,1) Unable to find setter method for attribute: collection
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
at org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2736)
at org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2965)
at org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2169)
at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1689)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at com.ssmb.common.servlets.GenericControllerServlet.service(GenericControllerServlet.java:639)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
The line corresponding in JSP file is ,
<ssmb:list name="src_" collection="sources" showAll='<%= "" + true %>'>
Please let me know if you have faced this issue before.Have you written this tag in a tld or a tag file?
How have you declared the attribute "collection"?
Does the class which implements the custom tag <ssmb:list> have a method in it: public void setCollection(String collection) ? -
Why does a document filtered by attribute show blank pages?
Unless someone can offer an explanation or a fix, this seems like another reason not to use filtering by attribute.
I have an 8 page document, which when filtered by attribute has content on only two pages. I have set the document to have an even number of pages. When I save the filtered document, the blank pages are not deleted, as they are with conditional text. If I delete the blank pages, save the file, and open it again, the six blank pages reappear. Even if I do not reopen the file, but print it from a book, the blank pages are reinserted.
So, what is the good of filtering by attribute if one is left with many blank pages?
Am I doing something wrong? Or need to set some flag somewhere?
Thanks,
VanEven more information...
If the filters are applied to each document in a book and saved, when I open the files from the book, the blank pages display. When I update the book, the extra blank pages disappear, as I think they should. I can then create a PDF of the book and the extra blank pages are not there. Saving and closing the documents and then printing the book causes the extra blank pages to appear in the print/PDF.
In other words, updating the book causes the extra blank pages to disappear but only if the documents are open. This appears to one of those all-documents-in-the-book-need-to-be-open-to-work operation, which I thought we got rid of several versions ago.
I hope someone from Adobe is reading this and can explain what I need to do to make this work as desired and whether this is indeed a bug.
Van -
Setting value for attribute 'PO_NUMBER_SOLD' using setter method
Hi Experts,
I need to set the value of a screen field according to some condition. I am using setter method of this attribute to set the value but it is not getting changed.
I have written following code in DO_PREPARE_OUTPUT method of implementation class ZL_ZZBT131I_ZCREDITCHECK_IMPL using setter method of attribute
Get Referral Authorization Code
lv_val1 = me->typed_context->crechkresph->get_po_number( attribute_path = 'PO_NUMBER' ).
me->typed_context->crechkresph->set_po_number( attribute_path = 'PO_NUMBER'
value = ' ' ).
while debugging I found that in method set_po_number set_property method has been used:--
current->set_property(
iv_attr_name = 'PO_NUMBER_SOLD' "#EC NOTEXT
iv_value = <nval> ).
In set_property method following code is getting executed
if ME->IS_CHANGEABLE( ) = ABAP_TRUE and
LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
if <VALUE> ne IV_VALUE.
if ME->MY_MANAGER_ENTRY->DELTA_FLAG is initial.
first 'change' -> proof that entity is locked
if ME->MY_MANAGER_ENTRY->LOCKED = FALSE.
if ME->LOCK( ) = FALSE.
return.
endif.
endif.
flag entity as modified
ME->MY_MANAGER_ENTRY->DELTA_FLAG = IF_GENIL_CONTAINER_OBJECT=>DELTA_CHANGED.
endif.
ME->ACTIVATE_SENDING( ).
change value
<VALUE> = IV_VALUE.
log change
set bit LV_IDX of ME->CHANGE_LOG->* to INDICATOR_SET.
endif.
else.
check if it is a real read-only field or a display mode violation
assert id BOL_ASSERTS subkey 'READ-ONLY_VIOLATION'
fields ME->MY_INSTANCE_KEY->OBJECT_NAME
IV_ATTR_NAME
condition ME->CHANGEABLE = ABAP_TRUE.
endif.
and in debugging I found that if part ( ME->IS_CHANGEABLE( ) = ABAP_TRUE and
LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY) fails and hence else part is getting executed and hence my field a real read-only field or a display mode violation is happening according to comments in code.
What shall I do so that I would be able to change the screen field value?
Any help would be highly appreciated.
Regards,
VimalHi,
Try this:
data: lr_entity type cl_crm_bol_entity.
lr_entity = me->typed_context->crechkresph->collection_wrapper->get_current( ).
lr_entity->set_property( iv_attr_name = 'PO_NUMBER' value = '').
Also, make sure the field is not read-only.
Regards
Prasenjit -
Filtering by attributes in Smart view on Cloud
Dear all,
We are working on the Planning and Budgeting Cloud Services and we have a question regarding the filtering by attributes in smart view.
We tried to create a report filtering by attribute but this option is not available in the Smart view Member selection.
However, filtering by attribute is available from a form.
Could yo please help us with this issue?
Thanks in advance.
Regards,
Martahi Marta,
The use of attributes in PBCS is not available in Smart View nor Financial Reporting Studio. I am also trying to figure out a workaround as this is critical for reporting purposes. The two links below explain the issue.
Smart View
Bug 19365552 : PBCS - CANNOT LOAD NOR USE ATTRIBUTE DIMENSIONS
FR
Cannot See Attribute Dimensions in Financial Reporting (FR) Studio with a Planning Datasource ( Doc ID 756286.1 ) -
Setting the logonHours attribute for a user in Active Directory
Hi Anyone,
I'm a brasilian guy and I need your help. How can I set the logonHours attribute on my Active Directory?
I have this code but it doesn't works good:
public void setLogonHours(boolean[] logonHoursBits){
int i;
int j;
int k;
int index21 = 0;
int index24 = 0;
byte[] byteLogonHour = new byte[21];
byte byte8Hours = 0;
for(i=0; i <= 6; i++){
for(j=1; j <= 3; j++){
for(k=7; k >= 0; k--){
if (i < 6){
if (logonHoursBits[i] == (boolean)(index24 == 0) ? true : false){
byte8Hours += (byte)Math.pow(2,k);
else{
if (logonHoursBits[0] == (boolean)(index24 == 0) ? true : false){
byte8Hours += (byte)Math.pow(2,k);
index24++;
byteLogonHour[index21] = byte8Hours;
index21++;
index24 = 0;
try{
String nome = "CN=Dryelle,OU=Pesquisa,DC=cifya,DC=com,DC=br";
ctx = new InitialLdapContext(env,null);
ModificationItem logonHours[] = new ModificationItem[1];
logonHours[0]= new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("logonHours",byteLogonHour));
ctx.modifyAttributes(name,logonHours);
System.out.println("Atributo logonHours alterado com sucesso.");
catch (NamingException e) {
System.err.println("Problema na altera??o " + e);
}the code set the attribute but wrong. Can anyone help-me? It's making me crazy.
Sorry about my poor english.
Tks.
Edited by: th_slopes on Aug 15, 2008 5:50 PMDirContext ctx = new InitialDirContext(pr);
BasicAttributes entry = new BasicAttributes(true);
String entryDN = "cn=CharbelHad,ou=test users,dc=test,dc=dev";
Attribute cn = new BasicAttribute("cn", "ChHad");
Attribute street = (new BasicAttribute("streetAddress", "Ach"));
Attribute loginPreW2k = (new BasicAttribute("sAMAccountName", "[email protected]"));
Attribute login = (new BasicAttribute("userPrincipalName", "[email protected]"));
Attribute sn = (new BasicAttribute("sn", "Chl"));
Attribute pwd = new BasicAttribute("unicodePwd", "\"Ch@341\"".getBytes("UTF-8"));
Attribute userAccountControl = new BasicAttribute("userAccountControl", "512");
Attribute oc = new BasicAttribute("objectClass");
oc.add("top");
oc.add("person");
oc.add("organizationalPerson");
oc.add("user");
// build the entry
entry.put(cn);
entry.put(street);
entry.put(sn);
entry.put(userAccountControl);
entry.put(pwd);
entry.put(login);
entry.put(loginPreW2k);
entry.put(oc);
ctx.createSubcontext(entryDN, entry); -
Hi how to set filters in ALE idoc and types of filters
Using filters how we can validate data?
what are the mandatory fields to set filters
pls give me solution
raviHi Ravi,
Filters are not used to validate data, they are used to restrict data.
It is depend on the message type which fields you can filter.
Reward points if useful.
Regards,
Atish -
I recently moved from coldfusion 8 to coldfusion 9 but all the pages with cfgrid: is throwing the following error. Any suggestion would be of great help
coldfusion.jsp.JRunTagLibraryInfo$NoSuchAttributeException: The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
at coldfusion.jsp.JRunTagLibraryInfo.getPropertyType(JRunTagLibraryInfo.java:627)
at coldfusion.jsp.JRunTagLibraryInfo.buildTagInfo(JRunTagLibraryInfo.java:585)
at coldfusion.jsp.JRunTagLibraryInfo.getTag(JRunTagLibraryInfo.java:267)
at coldfusion.compiler.NeoTranslationContext.findTagName(NeoTranslationContext.java:346)
at coldfusion.compiler.NeoTranslationContext.isKnownTag(NeoTranslationContext.java:222)
at coldfusion.compiler.CFMLParserBase.isKnownTagName(CFMLParserBase.java:589)
at coldfusion.compiler.cfml40TokenManager.TokenLexicalActions(cfml40TokenManager.java:6704)
at coldfusion.compiler.cfml40TokenManager.getNextToken(cfml40TokenManager.java:6586)
at coldfusion.compiler.cfml40.getToken(cfml40.java:11879)
at coldfusion.compiler.CFMLParserBase.isTrivialAngleBracket(CFMLParserBase.java:707)
at coldfusion.compiler.cfml40.jj_3_1(cfml40.java:9392)
at coldfusion.compiler.cfml40.jj_3_2(cfml40.java:9460)
at coldfusion.compiler.cfml40.jj_3R_67(cfml40.java:9500)
at coldfusion.compiler.cfml40.jj_3_86(cfml40.java:8147)
at coldfusion.compiler.cfml40.jj_3R_92(cfml40.java:8584)
at coldfusion.compiler.cfml40.jj_3_85(cfml40.java:8641)
at coldfusion.compiler.cfml40.jj_2_85(cfml40.java:7619)
at coldfusion.compiler.cfml40.cfml(cfml40.java:4215)
at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
at coldfusion.compiler.cfml40.cfelse(cfml40.java:442)
at coldfusion.compiler.cfml40.cfelseif(cfml40.java:374)
at coldfusion.compiler.cfml40.cfif(cfml40.java:314)
at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
at coldfusion.compiler.cfml40.start(cfml40.java:4664)
at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:667)
at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:648)
at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:401)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:343)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:144)
at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:418 )
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java :362)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:591)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
at coldfusion.CfmServlet.service(CfmServlet.java:201)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)Thanks Vishu,
We are running Coldfusion 9 and attach is the sample code and error message.:
The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
The CFML compiler was processing:
A cfgrid tag beginning on line 39, column 18.
The error occurred in E:/Websites/DreData/sobrietytesting/main/Sobrietytesting/Admin/view_users.cfm: line 54
52 : hrefkey="member_id"
53 : bind="cfc:tabledisplay.browseAccessAcountRequests(,,,)"
54 : >
55 : -
How can I set a VO Attribute value ?
Hi,
I'm relatively new to developing OA framework pages, so apologise in advance if my terminology is not quite right at the moment. But I have an experienced Oracle Forms developer so am getting to grips with new tools.
I've managed to develop a number of simple pages (query page and create single record page). I now want to develop a simple "master-detail" page. I've created a page that has two regions Header region and Lines region. Region styles are set to Header and AdvancedTable (child of Header region). I created some test data in TOAD and have written the code to query back the header and related lines. This works and the correct lines get displays when a new header record is displayed. I coded this in the initQuery methods. But now I'm stuck trying to create detail/line rows from the page.
I've added the "Add New Rows" to and want to populate the Lines row with the value of my parents primary key (eventually I'll make the child fkey column hidden). For the last few days, I've read lots of forum notes and the OA dev guide. At the moment, I've created a CO on my Lines region and this basically does the following in the processFormRequest :-
a) Traps the Add Rows Event
b) Fetches the current row for the parent and parent Id (primary key)
c) Fetches the current child row
d) Tries to update the child foreign key attribute using parent's primary key.
When I pressed the Add Rows button I was getting an error "Attribute set <attribute> failed for ...>.
I read various notes suggesting that I did not have my EO and VO properties set for the attribute I was updating. So I changed the EO and VO to allow the attribute to always be updateable. Now I don't get the error, but the column is not populated. An empty row appears. I used the messaging and am definately getting a value in the parentKey variable.
I know I'm in the Add Rows event because I manged to display some dummy messages.
Below is the code in my Lines CO processFormRequest :
OAAdvancedTableBean tableBean = (OAAdvancedTableBean) webBean.findChildRecursive("RoutesRN");
if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
OAViewObject parentVO = (OAViewObject)am.findViewObject("XXRPAirlineCreateVO1");
OARow parentRow = (OARow)parentVO.getCurrentRow();
String parentKey = (String)parentRow.getAttribute("CompCode");
OAViewObject childVO = (OAViewObject)am.findViewObject("XXRPRouteFullVO1");
OARow childRow = (OARow)childVO.getCurrentRow();
//String childFKey = (String)childRow.getAttribute("CompCode");
//childRow.setAttribute("CompCode",parentKey);
childRow.setAttribute("CompCode",parentKey);
///// String message = "Pressed Add Rows Button Parent = " + parentKey + " Child = " + childFKey;
/// // throw new OAException(message, OAException.INFORMATION);
I guess the above may not be the best way to the "copy" of a parent id into a child foreign key.
Any help would be really appreciated.
Thanks
Ramnik
The region style for the HeaderLook in the dev guide, Tables --> Adding rows.
If you are handling the add row event, you need to set autoInsertion off. You need to create a row in the child VO and then set the desired attributes -
How to set the DFF Attribute Programmatically?
hi
how to set the DFF Attribute Programmatically in Process Request of CO
thanxHi
Do u want to set the value in DFF Programmatically ?
u can capture the VO used for DFF and set the the value in controller.
Thanks -
How to give Value set for model attribute?
Hi all,
How to give value set for model attribute?
plz explain me with some sample code.
Regards,
SrinuHi Srinivasulu,
An attribute (of basic data types like integer , string etc) holds a single values.
Please clarify by what you mean value set ?
Also, share the structure of context.
Regards,
Kartikaye -
Jdev11G XMLMenuModel : Setting the "destination" attribute for the itemNode
Hi,
I am trying to set the "destination" attribute for the itemNode in the metadata.xml.This is the URI to which the user must be taken on clicking that node. But it is unable to pick the URI set for the destination attribute and hence there is no navigation that happens.Using the "action" attribute works fine. But I need to use the "destination" attribute.
Here are some of the files:
The metadata.xml (root_menu.xml):
<?xml version="1.0" encoding="windows-1252" ?>
<menu xmlns="http://myfaces.apache.org/trinidad/menu">
<groupNode id="groupNode1" idref="itemNode1" label="Merchant">
<itemNode id="itemNode1" label="Sites" action="site_action" rendered="#{testBean.test}"
focusViewId="/common/site/Site.jspx">
</itemNode>
<groupNode id="groupNode2" idref="itemNode2" label="Settings">
<itemNode id="itemNode2" label="Page Template" action="template_action"
focusViewId="/common/template/TemplateRules.jspx">
</itemNode>
<itemNode id="itemNode3" label="Configuration Parameters" destination="http://www.google.com"
action="config_action" focusViewId="/common/others/ConfigurationParameters.jspx">
</itemNode>
</groupNode>
<groupNode id="groupNode3" idref="itemNode4" label="System Admin">
<itemNode id="itemNode4" label="Cache Invalidation" destination="/faces/common/others/CacheInvalidation.jspx"
focusViewId="/common/others/CacheInvalidation.jspx">
</itemNode>
</groupNode>
</groupNode>
</menu>
The faces_config.xml:
<?xml version="1.0" encoding="windows-1252"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
<application>
<default-render-kit-id>oracle.adf.rich</default-render-kit-id>
</application>
<navigation-rule>
<navigation-case>
<from-outcome>site_action</from-outcome>
<to-view-id>/common/site/Site.jspx</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>template_action</from-outcome>
<to-view-id>/common/template/TemplateRules.jspx</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>config_action</from-outcome>
<to-view-id>/common/others/ConfigurationParameters.jspx</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>cache_action</from-outcome>
<to-view-id>/common/others/CacheInvalidation.jspx</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>root_menu</managed-bean-name>
<managed-bean-class>org.apache.myfaces.trinidad.model.XMLMenuModel</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>createHiddenNodes</property-name>
<value>false</value>
</managed-property>
<managed-property>
<property-name>source</property-name>
<property-class>java.lang.String</property-class>
<value>/WEB-INF/root_menu.xml</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>testBean</managed-bean-name>
<managed-bean-class>testBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
Can you please tell me what else has to be set for the "destination" attribute to work?
Thanks,
SwapnaThe code you sent is not clear, could you send your jspx page.
Thanks -
Error "Members, tuples or sets must use the same hierarchies in the function" in MDX
the following MDX returns error: "Members, tuples or sets must use the same hierarchies in the function"
WITH
MEMBER [Measures].[Prev Year] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Year].Levels('Year'),
1,
[Exec Date].[Year].CURRENTMEMBER
MEMBER [Measures].[Prev Month] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Month Num].Levels('Month Num'),
1,
[Exec Date].[Month Num].CURRENTMEMBER
MEMBER [Measures].[Prev Day] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Day].Levels('Day'),
1,
[Exec Date].[Day].CURRENTMEMBER
SELECT NON EMPTY { StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
SELECT (
STRTOSET(@ExecDateHierarchy, CONSTRAINED)
) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
and when I replace "StrToMember(@ExecDateLevel)" with
StrToMember("[Measures].[Prev Month]") the MDX is compiled correctly.
what is the problem?
How can I solve that?Hi Breceive,
In your scenario, the issue is caused by that you select dimension members and measures on the same axis without a crossjoin.
SELECT NON EMPTY { StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS
To avoid this issue, you can use the query below.
WITH
MEMBER [Measures].[Prev Year] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Year].Levels('Year'),
1,
[Exec Date].[Year].CURRENTMEMBER
MEMBER [Measures].[Prev Month] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Month Num].Levels('Month Num'),
1,
[Exec Date].[Month Num].CURRENTMEMBER
MEMBER [Measures].[Prev Day] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Day].Levels('Day'),
1,
[Exec Date].[Day].CURRENTMEMBER
SELECT NON EMPTY { StrToMember("@ExecDateLevel")*[Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
SELECT (
STRTOSET(@ExecDateHierarchy, CONSTRAINED)
) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
Here is a similar thread for you reference.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3c21d9a8-640d-4dde-bc76-08d1fcbb3a31/multiple-dimension-query?forum=sqlanalysisservices
Regards,
Charlie Liao
TechNet Community Support
Maybe you are looking for
-
Save changes? You've made changes to your Apple ID, but have not saved them. Would you like to save your changes before proceeding? Discard Changes Save Changesit resets brings the inf back
-
Clear doubt on standalone IS and integrate with remote BI4
Hi IS expert, Apologize for this question from a novice user. I just want to know will the metadata manager works well for linear data and impact analysis if standalone IS is installed and not sharing the common Business Intelligence Platform with BI
-
I have successfully imported a couple of pictures from a file system and can display them on a webbrowser. Now I want to export them but the method image.export(ctx, 'FILE', 'IMGDIR', 'joe.gif') creates a lot of cryptic error messages. What could be
-
CUA: Cannot generate partner profile
Hi, I´am implementing CUA in ower landscape. I have the RFC´s and users with their specific roles in Central and child systems, but also I´ve registered the logical systems in BD54 both parts. I had no problems with this SAP process . Recently I bega
-
What are the newest features in 6.11 for an iphone 4
I am afraid to upgrade my new iphone4 from Amazon. I have read there were many problems with the current updates. I want to know if is beneficial to upgrade without having many problems.