How to add a View in ViewContainerUiElement dynamically
Hi All,
I am facing some issues while trying to add a view in the dynamically created ViewContainerUIElement.
Can someone please help me out.
Thanks and Regards,
Gaurav.
Hi Gaurav,
You will have to use dynamic programming to fix this
in the domodifyview
if ( firstTime )
final IWDUIElementContainer group
= (IWDUIElementContainer)view.getElement( "grInner" );
group.destroyAllChildren();
final IWDViewContainerUIElement container
= (IWDViewContainerUIElement)view.createElement
IWDViewContainerUIElement.class, null
container.setViewContainer
wdContext.currentContextElement()
.getViewContainerName()
group.addChild( container );
Now you wil have to set the container name in init or some method.
Regards
Pankaj Prasoon
Similar Messages
-
How to add classification view using BAPI_MATERIAL_SAVEDATA
Hi,
Please any one let me know how to add classification view using BAPI_MATERIAL_SAVEDATA to the material master.
Thanks,
shekarWe use this bapi on a regular basis as well as classification of materials. We have success doing this in 2 steps. First step is to save the material using BAPI_MATERIAL_SAVEDATA, second step is to save classification using BAPI_OBJCL_CHANGE (this can be used for both create and change) Also look at Function Group CLBPA . there are several bapi's in that group dealing with object classification, including the one I mentioned..
-
How to add a view before RootViewController?
Hi,
I have a Navigation based application.
Now , i need to add a view before rootviewcontroller.
So any one help me , how to add a view before RootViewController?
Thanks In Advance.
YUGWhy not perform what you wish in your application delegate application:didFinishLaunchingWithOptions: method?
-
How to add new views in Subview dropdown in UWL inbox?
Hi All,
I have a requirement to add more views in the "Subview" dropdown in UWL inbox?
I uploaded the below UWL config file and didn't work.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
>
<UWLConfiguration version="1.0">
<ItemTypes>
<ItemType name="uwl.task.webflow.TS99999999.SAP_R3_HumanResources" connector="WebFlowConnector" defaultView="myExpenseApproval" defaultAction="viewDetail" executionMode="pessimistic"/>
</ItemTypes>
<Views>
<View name="myExpenseApproval" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.TS999999999" columnOrder="subject, creatorId, createdDate, priority, attachmentCount, completedDate" sortby="createdDate" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="-1" dueDateSevere="0" dueDateWarning="0" emphasizedItems="new" displayOnlyDefinedAttributes="no" dynamicCreationAllowed="yes" actionPosition="bottom">
<Descriptions default="Expense Report to Approve">
<ShortDescriptions>
<Description Language="en" Description="Expense Report to Approve"/>
</ShortDescriptions>
</Descriptions>
<Actions>
<Action reference="refresh"/>
<Action reference="removeFromNavigation"/>
<Action reference="addToNavigation"/>
<Action name="launchSAPAction" groupAction="" handler="SAPTransactionLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Descriptions default="launchSAPAction"/>
</Action>
</Actions>
</View>
</Views>
</UWLConfiguration>
Can anyone tell me what's wrong in this xml file?
Or
How to resolve this issue?
Thanks
SundarMr. I, GURU:
I am trying to make my first workbook, and I do not have any options in the Available section. I can open up a SQL session, and view the tables with this same user ID. In Discoverer, I cannot see any items in this list. Does the Administrator have to assign separate user access for Discoverer?
Thanks in advance. -
How to add Custom View to GP Runtime Views
Hi All,
I would like to add custom view to my GP process.
In GP runtime mode the numbers you see on left hand side like "run103" "run002" are confusing to users. I would like to have appropriate name/description instead.
I understand that I can add Custom view to Runtime Views, but when I am editing a process "Add Custom View" button is always disabled.
Why that button is always disabled?
How do I define Custom View for a process?
Thanks,
AbhayHi Abhay,
this is a bug in SP7 which is fixed in the last patch. You can download it from the Market Place.
Best regards,
David -
How to add three views in MM01
How to add three custom views in MM01 based on material type.
Regards,
Mallahi,
This will solve your problem.
[https://forums.sdn.sap.com/click.jspa?searchID=19403068&messageID=5708251] -
How to ADD Materialized Views to Refresh Group
Hi,
My requirement is, i want to refresh MVs(fast refresh only) by using DBMS_SCHEDULER. For this i have created one DBMS_SCHEDULER job like below.
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
JOB_NAME => 'REFRESH_MV_UPLOAD',
JOB_TYPE => 'PLSQL_BLOCK',
JOB_ACTION => 'DBMS_REFRESH.REFRESH('MV_UPLOAD_GRP');',
REPEAT_INTERVAL => 'FREQ=MINUTELY; INTERVAL=30',
ENABLED => TRUE
END;
In the above script, i created one refresh group 'MV_UPLOAD_GRP'. So what my requirement is i want to ADD my MVs refresh scripts to this group. Scripts as below...
Refresh MV Scripts:
1) Exec dbms_mview.refresh('emp.entity', 'f');
2) Exec dbms_mview.refresh('emp.identifier', 'f');
3) Exec dbms_mview.refresh('emp.rating_hist', 'f');
. so on.
Can anyboy help me how to add these scripts to refresh group 'MV_UPLOAD_GRP'.
Regards
RajALL_REFRESH and ALL_REFRESH_CHILDREN
http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rarsnapviews.htm#REPMA027
Nicolas. -
UIX: How to add linked view table columns to the Read-only table
Hi
I have two tables
T1: ID, STAFF_ID, NOTE
T2: STAFF_ID, USERNAME
I have created corresponding entity objects (E1, E2), views (V1, V2), association A(E1->E2 as *..1 using STAFF_ID) and viewlink VL(V1->V2 as *..1 using association A).
My model in AppModule looks like
V1
----V2 via VL
Now I have single UIX page in which I drop V1 as Read-only table. The table displays columns correctly: ID, STAFF_ID, NOTE
What I want is to add a column STAFF_ID from the V2 into this table. I have tried to drop it into the table but when the page is run it does not display anything in that column. It has to do something with binding.
I have done similar test with dropping V1 as read-only FORM and then added STAFF_ID from V2 as messageTextInput and everything is rendered correctly.
Anyone knows how to do the same thing but with table?Yes that is true but I would like to give another example where this may not apply.
Say I have 3 tables
CLIENT(INDIVIDUAL_ID,...)
ADDRESS(ADDRESS_ID,...)
ADDRESS_HISTORY(ADDRESS_ID, INDIVIDUAL_ID,BEST_ADDRESS)
where ADDRESS_HISTORY is intersection table in CLIENT to ADDRESS many to many relationship.
Suppose I have VO2 that consists of ADDRESS and ADDRESS_HISTORY entities (corresponding association exists) and user needs to add new address for the selected customer in VO1 (made from CLIENT entity). There are several issues here:
1) An input form made out of VO2 must contain an entry for BEST_ADDRESS flag but since it will be read-only, seems that this approach may not work. However, I found a post re:Updating view objects with multiple entities that provides workaround this.
2) In that case assume that I use DBSequence to automatically add ADDRESS_ID when user inputs new record in this input form. I am using DB Trigger on ADDRESS table and have selected ADDRESS_ID in ADDRESS entity as DBSequence. Now observe that VO2 would contain another ADDRESS_ID from ADDRESS_HISTORY entity which has to be automatically populated with the same value. How?
In a nutshell my question relates to the problem how to automatically populate intersection table when new record is added to the detail. But the trick is that some attributes of the intersection table must be inserted by the user in the form..
Please advise -
How to add columns for existing table dynamically?
Hi,
I created table structure only. I want to add columns for this existing table. Columns are not fixed, according to the user choice i need to write code.
Plz give me reply asap.
Thanks
ShirishaHi Shirisha,
I think the following code snippet will help you.
int l_no_cols = 0;
//Get the number of columns in this variable, something like the following
//l_no_cols = wdContext().currentContextElement().get<Context_attribute_name>;
IWDTable l_tab;
IWDTransparentContainer l_tbl_cont = (IWDTransparentContainer)view.getElement("TableDataCont");//ID of Container
l_tab = (IWDTable)view.getElement("TableData");//ID of Table
l_tab.setVisible(WDVisibility.VISIBLE);
l_tab.bindDataSource(wdContext.nodeTable_Data().getNodeInfo());
for(int a = 1; a <=l_no_cols; a++)
//Creating the column
IWDTableColumn l_tab_col = (IWDTableColumn)view.createElement(IWDTableColumn.class,"COL"+a);
//Creating Caption for Column Header
IWDCaption l_tab_cap = (IWDCaption)view.createElement(IWDCaption.class,"Caption"+a);
l_tab_cap.setText("Col"+i);
l_tab_col.setHeader(l_tab_cap);
//Creating Table Cell Editor for column
IWDInputField l_tab_cell = (IWDInputField)view.createElement(IWDInputField.class,"CellEditor"+a);
//creating context node attribute for the column dynamically
wdContext.nodeTable_Data().getNodeInfo().addAttribute("Col"+i,"com.sap.dictionary.String");
l_tab_cell.bindValue(wdContext.nodeTable_Data().getNodeInfo().getAttribute("Col"+i));
l_tab_col.setTableCellEditor(l_tab_cell);
l_tab.addColumn(l_tab_col);
l_tbl_cont.addChild(l_tab);
Regards,
Alka -
How to add a View to a refresh group in Basic Replication ?
Hello,
I'm trying to setup a Basic replication between a master DB under 11g Enterprise and a client under XE.
Replication groups and materialized views are created for related tables without problem.
But I have to get, on the XE, Views that are defined une the master DB.
Creating a MV (with the "rowid" option since no pk) on XE is working, but it failed when I try to add it to the replication group using "DBMS_REFRESH.ADD" since it requires "Materialized View Log" on the master but creation is not possible for Views.
I hope I'm clear enough...
How can I be sure that my MV on XE that point to Views on the master are up to date ?Hemant K Chitale wrote:
Why not just create the package at the remote site ?To be sure that all sites got the code update
However, Packages can be replicated using the APIs.
See http://download.oracle.com/docs/cd/E11882_01/server.112/e10706/repmaster.htm#i38785
Procedural Replication
http://download.oracle.com/docs/cd/E11882_01/server.112/e10707/rarmanmaster.htm#REPMA103
is used to allow PLSQLs to do bulk updates without actually propagating every row change.
Hemant K ChitaleThanks. Very restrictive... :( -
How to add Ajax support to the dynamic UI componets.
Hi,
I am generating a dynamic table and want to add Ajax support to that table.
How I can do that?Hi,
In my appication, I am using Ajax with Myfaces (JSF 1.2) & Jboss 4.2.1.
I m generating a table having (couple of selectmenu) dynamically by using the binding attribute of <h:panelGrid> and made that table Ajaxed. When i select some item form the select menu its works fine with Myfaces (JSF 1.2) but when I switched to Sun RI implementaion I got "AjaxUpdate component not found for id: :fForm:null" as exception in the console. -
How to add List view to SharePoint 2013 app
Hi
I'm developing intranet metro style app as SharePoint 2013 auto hosted . i need to get promoted list to display in my app page as it is display in SharePoint host site. i have seen some blog post but no clue of detail way of doing it (http://www.greggalipeau.com/2013/12/25/adding-list-views-to-sharepoint-2013-apps)
Can any one let me know how to do this in a way steps to follow or any information on this highly appreciated.
Kind regards
Radikahttp://newscarrouselapp.codeplex.com/ Download sample
http://nettitude.wordpress.com/2013/01/27/creating-a-carousel-in-a-sharepoint-app-using-client-side-rendering/
http://webcache.googleusercontent.com/search?q=cache:t4nEmPtXxtQJ:sp2013.blogspot.com/2012/08/use-list-view-in-sharepoint-2013-apps.html+&cd=4&hl=en&ct=clnk&gl=in&client=firefox-a
<WebPartPages:WebPartZone runat="server"
FrameType="TitleBarOnly" ID="full" Title="loc:full" >
<WebPartPages:XsltListViewWebPart ID="XsltListViewWebPart2"
runat="server" ListUrl="Lists/SlideShow" IsIncluded="True"
NoDefaultStyle="TRUE" Title="Slideshow Images"
PageType="PAGE_NORMALVIEW" Default="False"
ViewContentTypeId="0x">
</WebPartPages:XsltListViewWebPart>
</WebPartPages:WebPartZone> -
How to add new rows to LOV dynamically?
We have requirement as follows:
in a multirow region, each row has fields like from_serial and to_serial.
A serial can have state (defined but not used/In stores) and status (Good/Bad).
Each field is associated with LOV that lists 'Defined but not used' serials that are in "Good" status.
User can either select a value from LOV or he can generate the serial on the fly (dynamic text should be allowed).
Requirement is if user keys in a 'Defined but not used' serial with status as bad, then an error message should be thrown indicating that the serial is invalid. We already have a pl/sql API which does this validation along with several validations that can not be put into single LOV.
I am not able to achieve this requirement as
1. if I set DisableValidation property of field to True, then it allows free entry/dynamic entry
but doesn't call validation API thru PPR...
2. If I set DisableValidation property of field to false, then it allows to call pl/sql through PPR
but doesn't allow free text entry.
Currently, the LOV is not associated with any controller.
Can someone help me to achieve the requirement?
I guess if we set DisableValidation property of field to false and then somehow populate the keyed-in value in LOV itself then both requirements, Free text entry and calling validation API, can be soled.
Question is "is there any way to populate additional row into LOV"?Hi,
You can not add rows to LOV, I also faced similar problem around 2 yrs back where we need to add a new supplier to LOV, there I added one more entry using union in LOV VO with supplier name "New Supplier-Not Defined", when user want to add anew supplier the he will select this value from LOV and in LOV event I will check if value selected is "New Supplier-Not Defined" then I will render one more text box and there user can enter a supplier name which does not exist in the system.
There could be some other solutions(work arounds) fro this, please clarify your requirements so that we can look for some other options as well.
If you set the validation property to false then user may save wrong data into system, I think this is not a good option.
Hope this will give you some clue.
Regards,
Reetesh Sharma
Edited by: Reetesh Sharma on Aug 11, 2010 10:16 PM -
How to add tables in JSP page dynamically?
Hi all,
I am Girish, i am new to Java. I want to create a html page.
The main requirment in the page is ...
Initialy the page will contains a table which will accepts some data.
If the user want to enter some more information he can click one add button such that a new table will be created. If he wants to delete created table he can select delete button such that the table will be deleted in the same JSP page.
Please give me a solution.. how to achieve this requirment.
Waiting for reply..
Thanks in advance...
Regards,
Girish.Kthis is a sample.. you can give it a try:
whatever jsp
<%@ page contentType="text/html;charset=windows-1252"%>
<%@page import="java.util.*,mypackage.TestBean"%>
<%
String name = request.getParameter("name")!=null?request.getParameter("name"):"";
String age = request.getParameter("age")!=null?request.getParameter("age"):"";
System.out.println(name);
System.out.println(age);
Collection col = new ArrayList();
col = (Collection)session.getAttribute("col")!=null?(Collection)session.getAttribute("col"):new ArrayList();
TestBean tBean = new TestBean();
if(!name.equals(""))
tBean.setName(name);
if(!age.equals(""))
tBean.setAge(age);
if(!age.equals("") || !name.equals(""))
col.add(tBean);
session.setAttribute("col",col);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>untitled</title>
</head>
<body>
<form>
<table cellspacing="0" cellpadding="0" border="1" width="200">
<tr>
<td>Name</td>
<td>
<input type="text" name="name"/>
</td>
</tr>
<tr>
<td>Age</td>
<td>
<input type="text" name="age"/>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Submit"/>
</td>
</tr>
</table>
<%
if(col.size()>0){
Iterator iter = col.iterator();
%>
<table cellspacing="0" cellpadding="0" border="1" width="200">
<tr>
<td>
NAME
</td>
<td>
AGE
</td>
</tr>
<%while(iter.hasNext()){
tBean = (TestBean)iter.next();
%>
<tr>
<td>
<%=tBean.getName()%>
</td>
<td>
<%=tBean.getAge()%>
</td>
</tr>
<%}%>
</table>
<%}%>
</form>
</body>
</html>TestBean.java
package mypackage;
public class TestBean
private String name;
private String age;
public TestBean()
public String getName()
return name;
public void setName(String name)
this.name = name;
public String getAge()
return age;
public void setAge(String age)
this.age = age;
} -
How to add Book to .Portal file dynamically
Is it possible to add Book or page to .Portal file in Weblogic 8.1 Portal Application dynamically as there are classes for Book and Page are available....
BrijeshTo add a row of data to a JTable component, you need to add it to its table model. A simple implementation of a table model that supports appending row data is DefaultTableModel. By default, a table uses a DefaultTableModel.
DefaultTableModel model = new DefaultTableModel();
JTable table = new JTable(model);
// Create a couple of columns
model.addColumn("Col1");
model.addColumn("Col2");
// Append a row
model.addRow(new Object[]{"v1", "v2"});
// there are now 2 rows with 2 columns
// Append a row with fewer values than columns.
// The left-most fields in the new row are populated
// with the supplied values (left-to-right) and fields
// without values are set to null.
model.addRow(new Object[]{"v1"});
// there are now 3 rows with 2 columns
// Append a row with more values than columns.
// The extra values are ignored.
model.addRow(new Object[]{"v1", "v2", "v3"});
// there are now 4 rows with 2 columns
Maybe you are looking for
-
How can i run Windows on a macbook Pro
Hello I am close to a business decission to use in future a MACBook Pro with Retsina Display For Business reasons i have to be able to run also Winodws in a Virtual machine as some company internal applications need Windows Which program would i use
-
Exception message during planned order creation
I am coming across a situation wherein am creating a planned order for Semi-fininsh good, but the problem is that am getting an exception msg "15" against the planned order created whihc states that "Reschedule out". Can somebody tell me the signific
-
My back camera is blury every time I try to take a picture.
It it really bothers me that I can't take a clear picture. I tried focusing the camera but it doesn't help at all.
-
Error 999 is shutting down my yahoo mail, someone suggested I "upgrade my Adobe"will this help and whaat should I do? E-mail me [email protected]
-
2nd Gen Ipod and DLO FM transmiter prob
Help I have a 20g 2nd gen Ipod (works great, updated to ver 2.3) and I just bought the DLO mini transmitter. The problem: ipod controls freeze when connected to the DLO transmitter (ipod continues to play music) but I loose ipod control function. I n