How to extend and add calculated item in EO Based VO?
Hi All,
I have a requirment where I have to add few fields on the page.
These fields are based on one Custom table and few calculated columns.
The existing VO of the page is based on EO which is based on PL/SQL.
approach I am thinking to follow for custom table is -
a) Create a EO based on Custom table
b) extend the VO of the page to add New EO and its column.
c) write code in New EO Impl to insert the row.
But the thing which I am not able to figure out is how to add calculated item in VO.
I have created a PL/SQL package to return calulated item, but not able to figure out where to call this package.
Could any one please list out the approach to follow for this.
Regards,
Adarsh
If the calculated attribute is not going to be used for any business logic and just for display purposes you can create a transient attribute in the VO directly else create the transient attribute on the EO.
Similar Messages
-
Why "New Item" in ribbon and "Add new item" in xsllistview link to different form
Hi all,
I have a question. I have a list with two new forms, one is created in SPD the other one is created in InfoPath (both forms are created by developer).
I don't know why the new form link to different page when I click "New Item" in ribbon and "Add new item" in list view.
1. Will open new form that created in InfoPath when click on "New Item" in ribbon.
2. Will open new form that created in SPD when click on "Add new item" in list view.One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
<br>
Or you could make a simple function to return the correct link based on the relevant parameters:<br>
<br>
create or replace function get_url (p_criteria in varchar2) return varchar2<br>
is<br>
lv_url varchar2(500);<br>
begin<br>
if p_criteria = 'Personal' then<br>
lv_url := 'http://host:port/pls/portal/etc...';<br>
end if;<br>
etc...<br>
return '<a href="' || lv_url || '">' || p_criteria || '</a>';<br>
end;<br>
<br>
Your report could then include the function as one of the columns in your report.<br>
Not very elegant but it should do the job.
Patrick. -
In an inbuild example of can .. that CAN transmit periodic vi .. i am unable to understand how the extended and standard frame is set?
plz help me .. stuck up very badly
thanks
mahadev
Solved!
Go to Solution.I suggest this KB which explains usage of Ext IDs with NI-CAN
http://digital.ni.com/public.nsf/allkb/2FA120A37EDBC51D86256854004FB0C7 -
I now have iTunes ver 11.0.4.4 under Windows 7. I lost all iTunes stuff when updating to Windows 7. I have loaded thousands amd thousands of music files from backup disks, but there are many duplicates. I am attemping to re-establish my old library. I used to be able to remove duplicates quickly with the old iTunes. The new iTunes doesn't seem to offer the same service. Is there any way to remove duplicates quickly, or must I do it one by one?
When deduping use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
(If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
See also HT2905: How to find and remove duplicate items in your iTunes library
tt2 -
HT2905 Does anyone know how to find and remove duplicate items in the new itunes 11?
I am having a hard time trying to figure out how to find and remove duplicate items under the New iTunes 11? Its not as user friendly as in previous versions. Does anyone know how to figure this out?
As Jim said View > Show Duplicates
or
Option + View > Show Exact Duplicates -
Requestors end users will not acces a site directly and add list items
Hi
i created a site for IT services and this site includes some lists for various services
http://Intranet.com/Units/IT services
main site is http://Intranet.com
and also workflow are configured for these lists for create new item
and only 3 type of users will work on these lists
1)Requestors (Create,View rights)
2)Contributers (Contribute permissions)
3)Approvers
Scenario:
-- Requestors will create list items and approvers will Open this list item and edit list item like
approve and add a Contribute userid in AssignedTO field
---Contribute user also will recieve email and he also Open item and edit ans save this list
so basically its backend , data inserted by requestors will save in lists
so here i need all Requestors end users will not acces IT services site and add list item directly in list.
is any other option availabe that i will provide a diffrent front end page for Requestors at root level site (which is Intranet.com )
and they will add and view only their data, and Contributers also view and edit all users data.
adilHi adilahmed,
You can use two web parts to show the list items for different group.
In the List view page, add another list view web part, set the first web part list view to filter Created By field with Me, second list with all list items.
Then set the first web part with audience Requested group, and second web part with audience Contributers group.
Thanks,
Qiao Wei
TechNet Community Support -
How to create and add table type to a DDIC Structure in sap 3.1H
How to create and add table type to a DDIC Structure in sap 3.1H
How to create and add table type to a DDIC Structure in sap 3.1H
-
How to Extend the count of item code in IC_ITEM_MST table
Hi Friends.
Recently we used 10 count of IC_ITEM_MST table . But we want to extend the count 15. How to define pls help me.
Regards
Babu.JDuplicate post -- How to Extend the count of item code in IC_ITEM_MST table
-
How to remove and add plotted data?
In my code below I would like to add two buttons and by clicking on a button("Remove") it will remove one by one plotted data,and plot it back by clicking on the button("Add") such as the examples:
Full data plotted by running the class
Now by a single click on a Remove button last data point disappear
another click and again last data point disappear, and so on
The inverse operation would be performed by clicking on "Add" button: each click will add back a data point
import javafx.application.Application;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.event.EventHandler;
import javafx.scene.chart.NumberAxis;
import javafx.scene.chart.XYChart;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.chart.LineChart;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.BorderPane;
public class XYMove extends Application {
BorderPane pane;
XYChart.Series series1 = new XYChart.Series();
SimpleDoubleProperty rectinitX = new SimpleDoubleProperty();
SimpleDoubleProperty rectX = new SimpleDoubleProperty();
SimpleDoubleProperty rectY = new SimpleDoubleProperty();
@Override
public void start(Stage stage) {
final NumberAxis xAxis = new NumberAxis(12, 20, 1);
double max = 12;
double min = 3;
max *= (1+((double)3/100));
min *= (1-((double)3/100));
final NumberAxis yAxis = new NumberAxis(min, max, 1);
xAxis.setAnimated(false);
yAxis.setAnimated(false);
yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
@Override
public String toString(Number object) {
return String.format("%2.0f", object);
final LineChart<Number, Number> lineChart = new LineChart<Number, Number>(xAxis, yAxis);
lineChart.setCreateSymbols(false);
lineChart.setAlternativeRowFillVisible(false);
lineChart.setAnimated(false);
lineChart.setLegendVisible(false);
series1.getData().add(new XYChart.Data(1, 3));
series1.getData().add(new XYChart.Data(2, 8));
series1.getData().add(new XYChart.Data(3, 6));
series1.getData().add(new XYChart.Data(4, 7));
series1.getData().add(new XYChart.Data(5, 5));
series1.getData().add(new XYChart.Data(6, 6));
series1.getData().add(new XYChart.Data(7, 4));
series1.getData().add(new XYChart.Data(8, 7));
series1.getData().add(new XYChart.Data(9, 6));
series1.getData().add(new XYChart.Data(10, 7));
series1.getData().add(new XYChart.Data(11, 6));
series1.getData().add(new XYChart.Data(12, 7));
series1.getData().add(new XYChart.Data(13, 6));
series1.getData().add(new XYChart.Data(14, 12));
series1.getData().add(new XYChart.Data(15, 10));
series1.getData().add(new XYChart.Data(16, 11));
series1.getData().add(new XYChart.Data(17, 9));
series1.getData().add(new XYChart.Data(18, 10));
pane = new BorderPane();
pane.setCenter(lineChart);
Scene scene = new Scene(pane, 800, 600);
lineChart.getData().addAll(series1);
stage.setScene(scene);
scene.setOnMouseClicked(mouseHandler);
scene.setOnMouseDragged(mouseHandler);
scene.setOnMouseEntered(mouseHandler);
scene.setOnMouseExited(mouseHandler);
scene.setOnMouseMoved(mouseHandler);
scene.setOnMousePressed(mouseHandler);
scene.setOnMouseReleased(mouseHandler);
stage.show();
EventHandler<MouseEvent> mouseHandler = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent mouseEvent) {
if (mouseEvent.getEventType() == MouseEvent.MOUSE_PRESSED) {
rectinitX.set(mouseEvent.getX());
else if (mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED || mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) {
LineChart<Number, Number> lineChart = (LineChart<Number, Number>) pane.getCenter();
NumberAxis xAxis = (NumberAxis) lineChart.getXAxis();
double Tgap = xAxis.getWidth()/(xAxis.getUpperBound() - xAxis.getLowerBound());
double newXlower=xAxis.getLowerBound(), newXupper=xAxis.getUpperBound();
double Delta=0.3;
if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED){
if(rectinitX.get() < mouseEvent.getX()&& newXlower >= 0){
newXlower=xAxis.getLowerBound()-Delta;
newXupper=xAxis.getUpperBound()-Delta;
else if(rectinitX.get() > mouseEvent.getX()&& newXupper <= 22){
newXlower=xAxis.getLowerBound()+Delta;
newXupper=xAxis.getUpperBound()+Delta;
xAxis.setLowerBound( newXlower );
xAxis.setUpperBound( newXupper );
rectinitX.set(mouseEvent.getX());
public static void main(String[] args) {
launch(args);
}Thanks!I would use an ObservableList (probably backed by a LinkedList) of XYChart.Data to store the collection of "deleted" data points. Create the buttons as usual; your "Remove" button's event handler should remove the last element of the series and add it to the first element of the deleted items data points. The "Add" button should remove the first element of the deleted data points and add it to the end of the series. You can bind the "disable" property of the remove and add button to Bindings.isEmpty(series1.getData()) and Bindings.isEmpty(deletedDataPoints), respectively.
Something like
ObservableList<XYChart.Data<Number, Number>> deletedDataPoints = FXCollections.observableList(new LinkedList<XYChart.Data<Number, Number>>());
removeButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
deletedDataPoints.add(0, series1.getData().remove(series1.getData().size()-1));
addButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
series1.getData().add(deletedDataPoints.remove(0));
removeButton.disableProperty().bind(Bindings.isEmpty(series1.getData()));
addButton.disableProperty().bind(Bindings.isEmpty(deletedDataPoints));The other approach would be to use a separate List for all the data points, and keep an integer variable storing the number of data points displayed. Your "remove" button would decrement the number displayed, and your "add" button would increment the number displayed. Both would also call
series1.getData().setAll(allDataPoints.sublist(0, numberOfDisplayedPoints));You might even be able to make the numberOfDisplayedPoints an IntegerProperty and bind the data property of the series to it in a nice way. This approach probably doesn't perform as well as the previous approach (using a stack of deleted points), because you are not directly giving the chart as much detailed information about what has changed.
Both approaches get problematic (in the sense that you need to carefully define your application logic, and then implement it) if the underlying data has the potential to change. -
How to cut and paste multiple items
How can you cut and paste multiple items on the clipboard?
Just go to Security & Privacy, unlock it with your admin password...
...and under the "General" tab allow applications... tick "Anywhere". After the install, I'd change it back. You can also just control-click the app/installer and select "Open" - you'll get a warning that the app is from an unidentified developer, but it will open.
Good luck,
Clinton -
How to remove and add the component to JFrame at runtime.
Hi
How to delete the JTabbedPane component from the Jframe at runtime and how to add the same component with different data at runtime.
But the remaining components should not distrub.
When i try to delete and add the component at runtime the remaing components are distrubed.
when i minimize and maximize the screen, the components are adjusted. but i need a help on this without minimize and maximize the screen.Hi
I am sending my code snippet, please look into this......i am doing the same even though i am not able to..................can u suggest anything seeing this code snippet.
here one function called createtabpane (It creates the JTabbedpanes with the table information at runtime).
private void getTimeSheetObj(String weekDate){
//Object[][] rowObj=null;
try {
System.out.println("Inside the gettimesheet method try block");
if(projTables!=null){
for(int i=projTables.length-1; i>=0; i--){
JTable jt = projTables;
jTabbedPane_Main.remove(jt);
System.out.println("Removing Table:"+i);
jPanel_Tabbedpane.remove(jTabbedPane_Main);
jTabbedPane_Main = new JTabbedPane();
jTabbedPane_Main.revalidate();
jPanel_Tabbedpane.revalidate();
getContentPane().validate();
getContentPane().repaint();
jTabbedPane_Main.addChangeListener(new ChangeListener(){
public void stateChanged(ChangeEvent ce){
getTabbedPaneListenerValues();
// this.setState(JFrame.ICONIFIED);
// this.setExtendedState(JFrame.MAXIMIZED_BOTH);
res = GetTimesheetResponseDocument.Factory.parse(new File("C:\\Narayana.xml"));
response = res.getGetTimesheetResponse();
proDets=response.getProjectDetailsArray();
numOfPro = proDets.length;
String taskDayValues[] = new String[8];
System.out.println(numOfPro);
proArr=new Object[numOfPro];
Object[][] taskValues=null;
for(int p = 0;p<numOfPro;p++){
System.out.println("Inside1");
taskDet = proDets[p].getTaskDetailsArray();
taskValues = new Object[taskDet.length][8];
for(int t=0;t<taskDet.length;t++){
System.out.println("Inside2");
taskValues[t][0] = (taskDet[t].getTaskName());
taskValues[t][1] = (taskDet[t].getDay1HH()+":"+taskDet[t].getDay1MM()).toString();
taskValues[t][2] = (taskDet[t].getDay2HH()+":"+taskDet[t].getDay2MM()).toString();
taskValues[t][3] = (taskDet[t].getDay3HH()+":"+taskDet[t].getDay3MM()).toString();
taskValues[t][4] = (taskDet[t].getDay4HH()+":"+taskDet[t].getDay4MM()).toString();
taskValues[t][5] = (taskDet[t].getDay5HH()+":"+taskDet[t].getDay5MM()).toString();
taskValues[t][6] = (taskDet[t].getDay6HH()+":"+taskDet[t].getDay6MM()).toString();
taskValues[t][7] = (taskDet[t].getDay7HH()+":"+taskDet[t].getDay7MM()).toString();
System.out.println("After taskvalues");
proArr[p]=taskValues;
createTabPanes(jTabbedPane_Main, proArr);
System.out.println("outside");
jPanel_Tabbedpane.add(jTabbedPane_Main);
jTabbedPane_Main.getAccessibleContext().setAccessibleName("Proj");
getContentPane().add(jPanel_Tabbedpane);
pack();
}catch(XmlException xe) {
System.out.println("Inside the XmlException block");
System.out.println(""+xe.getMessage());
} catch(IOException ioe) {
System.out.println("Inside the IOException block");
System.out.println(""+ioe.getMessage());
/* JOptionPane.showMessageDialog(null,
"Values Displayed in the below tables",
"Alert!",JOptionPane.ERROR_MESSAGE); */
System.out.println("Initial JFrame Bounds:"+this.getBounds()); -
How to delete and add rows in a table control
Hi
how to delete rows and add new rows in a tbale control
SathyaHi,
In the PAI write this code
PROCESS AFTER INPUT.
LOOP AT itab.
ENDLOOP.
MODULE MODIFY_TC.
MODULE MODIFY_TC.
To add a row
DESCRIBE TABLE itab LINES tc_tab-lines.
tc_tab-lines = tc_tab-lines + 1.
To delete a row if check box is ticked
DELETE itab WHERE check = c_x.
To delete a row depending on tabix
DELETE itab index l_tabix.
ENDMODULE.
Make sure that you put a if condition in the above module inorder to ensure addition or deletion of a row.
Best regards,
Prashant -
How to edit and add a signature on a pdf file
how to edit and insert signature on a pdf attachment
Creating, Editing & Exporting PDFsFirst the PDF file has to be editable.
Then it depends on whether you want to sign it with an annotation (Acrobat stamp), an Electronic Signature (a.k.a EchoSign) or a Digital Signature (Acrobat).
If it's a Stamp then go to Sign Panel>Get others to Sign and then you can use the Place Signature button.
If it's an Electronic Signature then after you finished your stamp then just follow the wizard that pops up when you click the Signed. Proceed to Send Powered by EchoSign
If it's a Digital Signature then go to Sign Panel>Work with Certificates>Sign with Certificate and follow the wizard. -
How to extend and Extreme network using Express
so i have the latest airport extreme and noticed that between my computers and iphones i cannot get good signal in my yard...the computers or iphones drop off the network and join again a little later! I configured the AE to extend the network but it seems the computers and iphones etc. never let go of the extreme signal to jump to the AE signal! The distance between the AX and AE are about 50 to 75 feet away from each other with the Extreme being near a window facing my shed where the AE is being used as and extender and as Airtunes for speakers in my yard. Is there something i'm doing wrong?
If the AirPort Express is setup correctly to "extend a wireless network", both the AirPort Extreme and AirPort Express will be using the same wireless network name, security, password and channel.
Apple's instructions to setup the "extend" configuration are here:
http://support.apple.com/kb/HT4259
If you configure the AirPort Express to "join a wireless network", it will not provide any additional wireless coverage in that type of configuration. -
How to loop and add multiple records from db in .pdf using cfdocument
I have a query that pulls a users information (Id, FirstName,
LastName, Title,etc). I then use cfdocument to output a person's
biography into a pdf. This is great, because we no longer have to
manually create bios, as they are now all dynamically generated.
The problem I have now is that we want to be able to select
multiple users and create a .pdf with each of their bios included
in the one pdf.
How do I loop thru records from a sql database in a
cfdocument that includes a header and footer in cfdocument items,
and ensure that one persons bio doesn't continue on the page with
anothers.
Here's the code I have so far for the cfdocument:Put the query around just the body of your cfdocument not
around the whole cfdocument tag. Also, move any query information
out of the header and put that in the body of the document. Lastly,
put a cfdocumentitem pagebreak after each bio...you will need to
check the recordcount of the query against the row you are on so
that you don't add an empty page break at the end.
Maybe you are looking for
-
Can a tabular form be created/used against a GLOBAL TEMP TABLE?
We are trying to simplify our apex applications. In doing so, we are examing the many collections we use to create tablular forms. These collections currently are tricky to manage and we are considering moving them to either VIEWS or GLOBAL TEMPORARY
-
MS-RDP black screen connecting to VDI
I just finished configuring a new install of VDA 3.4. Everything went well, no issues. VDI runs on a OEL 5.7 box, and VBox is running on a secondary OEL 5.7 box. I have one XP install, one Pool and one user accessed via LDAP. I've setup the pool and
-
Business vs. Private purchase - how are App updates handled?
Hi, I have my own business, but already purchased a few apps for private use on my Mac. Now I need to make a business purchase and I'm wondering how the App Store handles this. If I switch accounts, can I still see, run, and update the same apps? Do
-
How To create a new R/3 source System ?
Hello, Can somebody guide me to a white paper or something related which explains in detail how to create a new R/3 source System in BW?
-
Hey all ! I am getting this weird error in one of my Portal Gateways, does anyone know what could be happening?? 10/4/04 8:20:02 PM CDT: Thread[Thread-142,5,main] ERROR: ServerCertApprovalCallback: reason -8156 10/4/04 8:20:02 PM CDT: Thread[Thread-1