Display date on Input Date Component.
Hi All,
I have a Input Date Component on my page. It has a functionality that a Choose Date component is poped up onClick of the Input date component. I want to display the date in the Input Date when a user selects a Date from that Choose Date component that pop's-up. I know that there is a date icon just next to it from where I can do this, but my requirement says that I also need to do it that way. Pls help.
See if this thread helps.
af:inputDate on focus/cursor
-Arun
Similar Messages
-
Date Format in Input Date Component
Hi,
I am using JDev 11.1.1.3.0. I have few Input Date component in the form. I need to display the selected date in upper case. Basically the month in upper case.
Currently it displays '01-Aug-2012'. I need it to be displayed as '01-AUG-2012'.
Tried adding format but still the month is displayed in initial caps. Really appreciate if someone can help me in fixing this issue.
Thanks
SRThere is no format to archive this. Check http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html which give you all format patterns used by the inptutDate component.
I have not tried this, but you should be able to use a converter, which you have to write yourself, to make the month uppercase.
Writing your own converter is easy, for a tutorial check http://docs.oracle.com/javaee/5/tutorial/doc/bnaus.html
Timo -
How to display data in SelectOneChoice from database?
Hi,
I want to display data in SelectOneChoice component after fetching from database in a bean using Application module implementation class. I have two fields in my bean id and name. I want to display name in choice and in backend i want to play with the id of corresponding selected choice i.e displayed in SelectOneChoice. I am not able to bind the datacontrol with the SelectOneChoice component. I have data in my bean i.e list of id and name fetched from database.In my app module i have create a method which retruns UserBean in array List .
I dropped that data control on my page as Select One Choice and bind the same.
When i run that page I am able to see user bean object in drop down but when i try to see any specific var error occurs
Code-
<af:selectOneChoice value="#{bindings.return.inputValue}"
label="#{bindings.return.label}"
required="#{bindings.return.hints.mandatory}"
shortDesc="#{bindings.return.hints.tooltip}"
binding="#{backingBeanScope.backing_test12.soc1}"
id="soc1">
<f:selectItems value="#{bindings.return.items}"
binding="#{backingBeanScope.backing_test12.si1}"
id="si1"/>
</af:selectOneChoice>
This code works fine and drop down shows userbean .
But when i change the code it fetch username form bean exception occurs
Changed Code-
<f:selectItems value="#{bindings.return.items.*Username*}"
binding="#{backingBeanScope.backing_test12.si1}"
id="si1"/>
Exception-
*[ServletContext@15368949[app:ADF module:ADF-ViewController-context-root path:/ADF-ViewController-context-root spec-version:2.5]] Servlet failed with Exception*
java.lang.NumberFormatException: For input string: "Username"
* at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)*
* at java.lang.Integer.parseInt(Integer.java:449)*
* at java.lang.Integer.parseInt(Integer.java:499)*
* at javax.el.ListELResolver.toInteger(ListELResolver.java:373)*
* at javax.el.ListELResolver.getValue(ListELResolver.java:167)*
* Truncated. see log file for complete stacktrace*
FYI:- This control wokrs fine when i but this data in table . Not sure about the reason for select choice :( -
Need Suggestion in displaying data in ALV.
Hi All Experts,
I have a scepic scenario for which I need your inputs. I am preparing a report which will display data foe entries made in time sheet. The entries in time sheet can be made for anything like a change request on an incident etc. It will have various output fields
And also dates for which entries are made. So it can have date from 1 to 31. This all is
to be displayed in ALV. Now the report can be displayed in two Summarised ways.
One summary can be for a user and another for the object type(incident, change request).
Now if the user wants to see this report for a period more than a month then I have to summarise it against a month too. So am not sure how to handle this. Which type of ALV function module to be used to display this?
Regards,
Sakethello,
I would suggest to go for GRID display - for that you can use either function module or class.
Tips:
If it also need to be summarised by month then add an extra field in fieldcatalog as monthid / monthname.
also it's better to have an extra field for object tyoe (Incident/ change)...
Thanks. -
I am trying to display data from database into the JTable swing component. I can see the table and the heading coming from the vector. I cannot see why the data from the databse table is not loaded on to the Jtable. I just get a table with 6 rows blank.
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import java.io.*;
import java.sql.*;
import java.util.*;
public class dataTable extends JApplet
String dbdriver="jdbc:oracle:thin:@ds1.ctateu.edu:1521:wpac";
String dbuser="system";
String dbpass="pass";
Container c;
JScrollPane jsp;
JTable table;
int v,h;
Connection connection;
Statement stmt;
ResultSet rs;
String param_start,param_end, param_disp_start, param_disp_end,param_shortdesc, param_longdesc;
public void init()
c= getContentPane();
c.setLayout (new BorderLayout());
v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
Vector heading = new Vector();
heading.addElement("Event Start Date");
heading.addElement("Event End Date");
heading.addElement("Display Start Date");
heading.addElement("Display End Date");
heading.addElement("Short Description");
heading.addElement("Long Description");
Vector data = new Vector();
try
Class.forName("oracle.jdbc.driver.OracleDriver");
connection=DriverManager.getConnection(dbdriver,dbuser,dbpass);
stmt=connection.createStatement();
rs= stmt.executeQuery("select * from univevents");
while(rs.next())
param_start = rs.getString("start_date");
param_end = rs.getString("end_date");
param_disp_start = rs.getString("display_start");
param_disp_end =rs.getString("display_end");
param_shortdesc = rs.getString("short_desc");
param_longdesc = rs.getString("long_desc");
catch (Exception e)
//JOptionPane.showMessageDialogue("Exception: "+e.getMessage());
data.addElement(param_start);
data.addElement(param_end);
data.addElement(param_disp_start);
data.addElement(param_disp_end);
data.addElement(param_shortdesc);
data.addElement(param_longdesc);
table = new JTable(data, heading);
jsp = new JScrollPane(table,v,h);
//Add scrollpane to container
c.add("Center",jsp);
}//init
}//JAppletYour data vector should be a Vector of Vectors.
I think you need to change your loop to look something like this:
while(rs.next())
Vector row = new Vector();
row.addElement( rs.getString("start_date") );
row.addElement( rs.getString("end_date") );
row.addElement( rs.getString("display_start") );
row.addElement( rs.getString("display_end") );
row.addElement( rs.getString("short_desc") );
row.addElement( rs.getString("long_desc") );
data.addElement( row );
} Then remove your data.addElement() statements found outside the loop. -
1
I Have Problem in display data into Chart Or chartJs ,
In my Controller I Return Json and
use it in javascript like this but i have
error that tell me 't' is undefined
$(document).ready(function () {
$.getJSON("/Report/GetTransactions/", function (data) {
debugger;
var ctx = document.getElementById("myChart").getContext("2d");
var myBarChart = new Chart(ctx).Bar(data);
debugger;
data = {
labels: ["January", "February", "March", "April", "May", "June", "July"],
datasets: [
label: "My First dataset",
fillColor: "rgba(220,220,220,0.5)",
strokeColor: "rgba(220,220,220,0.8)",
highlightFill: "rgba(220,220,220,0.75)",
highlightStroke: "rgba(220,220,220,1)",
data: [data]
label: "My Second dataset",
fillColor: "rgba(151,187,205,0.5)",
strokeColor: "rgba(151,187,205,0.8)",
highlightFill: "rgba(151,187,205,0.75)",
highlightStroke: "rgba(151,187,205,1)",
data: [data]
and my controller is this
return Json(_reportRepository.GetTransactions(), JsonRequestBehavior.AllowGet);Hi Mario Castro,
In selection Screen initially u have to enter the input value after provides some user command only next screen will be trigger.
In the next screen PBO event you cant assign selection screen Variable into next screen fields.
Eg.
Selection Screen Variable
s_belnr
s_bukrs
s_gjahr
Next Screen
t_belnr
t_bukrs
t_gjahr
In PBO you can code
t_belnr = s_belnr
t_bukrs = s_bukrs
s_gjahr = s_gjahr
Revert back if any difficulties to do.
Regards,
Thangam.P -
Display Data Flow - Short Dump
Hi all,
When i select display data flow of any cube...it is going for a short dump.
I have searched for the answer in previous Forum questions. I could find only for previous BW versions but not for for BI7.
Could you please let me know the solution for this issue.
Thanks & Regards,
EswariHi All,
Thank you very much for all of your responces.....
I am working on Support Package 10.
Here is the detailed description of the short dump.
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
Short text of error message:
GP: Control Framework returned an error; contact system administrator
Long text of error message:
Diagnosis
The Graphical Framework is based on the basis technology known as
the Control Framework. A method in the Control Framework returned
an error.
Procedure
It probably involves a programming error. You should contact your
system administrator.
Procedure for System Administration
Check the programming of the graphics proxy especially for the
parameters that were sent and, if necessary, correct your program.
Technical information about the message:
Message class....... "APPLG"
Number.............. 229
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"MESSAGE_TYPE_X" " "
"CL_AWB_OBJECT_NET_SAPGUI======CP" or "CL_AWB_OBJECT_NET_SAPGUI======CM005"
"PBO"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
Thanks,
Eswari. -
Display data in the form of subgrouping of a table.
hi,
i need to display data in the table in the below format
1 1000 header1 quantity amount
item1 100 200
50 500
2 1001 header2 chairs 5000
item2 50 100
100 1000
plz help me how to do thisHi Praveen,
Please check 'Grouping' view in component WDR_TEST_TABLE .
It will give you some idea.
Regards,
Sumit -
Display Data on waveform chart or XY graph over a long period of time
Display Data on waveform chart or XY graph over a long period of time
Can anyone help?
I am acquiring data from an Ni DAQ card with the following parameters - sample rate = 12800, number of samples = 4096. I want to extract order information so as to track changes in the amplitudes of certain frequency harmonics. So I use the sound and vibration toolkit to extract this information as shown in the attached Vi. I will like to plot the resulting amplitudes against real-time starting at the time the Vi was run. I really want the display to show these changes over long periods (eg. days, months and even years).
Problem.
I have tried to plot the Y component of the resulting magnitude for a given order on a waveform chart. My choice of the waveform chart is because I also want to display alarm limits (using the mask and limit vi) (I can't have these lines displayed on an XY graph plot). I tried adjusting the scale offset using the property node and setting the offset to current time. However, the display on the X-axis can only show a span of 2 minutes as will be seen when you run the attached vi. I want the time display on the x-axis to be over a period of days, months and even years. Is there a way to set the maximum scale on the x-axis to be say a year or so in future.
I really want the display to be like the one in in the second attachment.
Attached is a sample VI created using an Ni USB 9234 DAQ card. Any card will do but I am only getting the signal from one channel for this example
I will appreciate any help that can be given to me.
Thanks
Attachments:
Real-Time Graph Display.vi 170 KB
Sampe screen1.doc 37 KBLong term testing can be tricky- and we'l get into that later. Lets start with the basics that you have wrong.
The vi as you have constructed it has only one memory element, the chart history length (default is 1024.)
You can change the number of points the Chart will remember by Right-clicking the chart an select Chart History Length from the menu.
But for a long term test - and one where you want to REMEMBER the first value you need a memeory element that is independant of the application. Your PC WILL loose power or need to be rebooted eventually. Heck it might even need to be replaced! you really need to store your data in a file. Preferablly in a file that is backed-up on a regular basis so you don't lose every point of data if the PC dies. It realy hurts when you have to restart a 2yr test because you've lost the 18months of data you collected.
For an application like this I would seperate my "collection" and "Evaluation" operations.
Have one vi that takes the reading and writes it to a file at a configurable rate You may want 1reading per minute for seveal days then 1 per hour for a few weeks- then maybe only once or twice a week for the next couple of years since you are looking for LONG TERM stability. having too much data to evaluate can take a lot of digging to find the few things that interest you (but always take more that you think you need)
Have another utility that COPIES the files, reads them and displays the data you are interested in that day. The data you want to look at won't change over time HOWEVER, you WILL want to analize it in different ways depending on what the data trends look like. Having seperate routines for collection and display allows you to update the display style and analisys without even stopping the collection vi (much less editing the vi)
Jeff -
Report, Form, and Data Component portlets go to error page
I am able to add Report Form and Data Component portlets to my page, but when I click on the define button it takes me to my error page.
Have I missed configuring something?hello friends,
thanks for replly,
i m using command noe after table node in main window, but i want display the data below the main window , it is diplaying new page as required but only missing data below the main window.
to be more clear i want to print all the window in first page then only go for next page , so is there any condition or parmeter in main window to go next page only agfter completion of first page.
dont worry abt points. -
Display Data in Marathi Language
I have used jquery to print data in html report, data display in marathi laguage in .aspx page , but when pessing print button it will be display in english laguage, so how what i do display data in marathi laguage,
The data is like,
<link href="js/jquery-ui-1.10.4.custom.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.10.4.custom.js" type="text/javascript"></script>
<script type="text/javascript">
function PrintDivContent(divId) {
var printContent = document.getElementById(divId);
var WinPrint = window.open('', '', 'left=0,top=0,toolbar=0,status=0');
WinPrint.document.write(printContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
$(document).ready(function () {
$("body").keyup(function (e) {
var nkeycode = null;
nkeycode = e.keyCode;
if (nkeycode == 115) {
$("#btnprint").click();
$("#btnprint").click(function () {
PrintDivContent('divtoprint');
</script>
<div id=>
//data
</div>
<table>
<tr>
<td>
<input type="button" id="btnprint" value="Print (F4)" />
</td>
</tr>
</table>Please post questions related to web development in the ASP.NET forums (http://forums.asp.net ).
-
List View still displays dates as numbers after 2.1 Hotfix
Hi
Just tried the List View component after installing Fix Pack 2.1 Hot Fix. I put a list view component on the canvas, selected 3 datesone for each header, changed the Appearance - Header to Date and then hit preview. The first header worksshows the dates but the other two headers show numbers, not dates.
The documentation shows that this was fixed, see below
ADAPT01260598 (List View displays
dates as numbers)
Description:
The header area of List View displays date values as numbers.
New Behavior:
This issue is resolved.No, I was just wondering since I have a second device on TMobile US and haven't gotten the update. I loaded this OS almost a month ago when it leaked on the Internet.
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you! -
Problem with displaying Date field in the table.
Hi All,
I am trying to display data into a table UI Element.
In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009" to "26.02.2009".
But while modifying DATE field , I want to show the Calender of that month, in that i have to select the another date.
(Like normal Date UI Element will show that calender).
Can anyone please help me.
Thanks in Advance!
Regards,
Sreelakshmi.Hi,
Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to AUTOMATIC and it works.
Regards,
Manne. -
Stored Procedure for displaying data in Crystal Reports
Hi I am new to Oracle & Crystal Reports,so can any one please give me sample stored procedure to display data in Crystal report from Oracle by passing rwo input values.
from site:-
Crystal Reports will only support the return of a single refcursor from Oracle. Even the latest and greatest version 10 doesn't allow you to return more than one recordset at a time. You could add one more step to your procedure that would join up the output of the multiple refcursors into a PL/SQL table and then fetch the result set out through a single refcursor. That way you are using temporary space that will be cleaned up as soon as the connection is terminated and will only be returning a single refcursor -
How to display data elements in the tempalte header
Hello friends
i've this date_from and date_to parameters which are date parameters that user enters..
based on these date parameters I want to display them in the header as
day of date_from(for example if the date_from is 13-nov-2010.then I should display 13)and for date_to it should dispaly as 15 if for example the user enters
16-nov-2010.(date-1's day)
so it should break down to
date_from-13-nov-2010, 13
date_to- 16-nov-2010, 15
I want these two values to be displayed in the header of the template how to do this
pls help
also let me know how to display data elements in the template header
Edited by: erp on Dec 22, 2010 12:44 AMHi Ananth..Thanks for ur timely reply
Can I use it with <? substring(':date_from',1,2)?>
where date_from is an input parameter which user enters at the run time of the report.
I've to capture the date entered by the user and print it in the header..
Pls reply
Maybe you are looking for
-
Windows 8.1 and Deskjet 3050 J610 Software not working
New Desktop running WIndows 8.1 and the HP Deskjet 3050 J610 printer/scanner. I can load the drivers to make the printer work but the scanner software is not present. When I try to open the Scanner Software: I get the following: Would like a fix.
-
Seeburger EDI Adapter Installiation
Hi, Just now we installed Seeburger EDI Adapter, I want to make sure we installed correctly. what are the components I can verify in IR/ID. Is there any post installation steps. Mallik
-
Hi Experts, I am binding my data to a grid and after that i have added a check box column as last column and i kept the Grid Collapse level as 2.My data is binded as following _COL1 COL2 COL3 COL4_ A
-
E-mail messages appear, then disappear.
I've been having e-mail messages show up in the inbox then disappear. It's been happening for months. I use a lot of rules and folders. Steps I've taken: – Rebuilt every mailbox in Mail – Today I deleted the Envelope Index but the problem keeps happe
-
Organisational keys are assigned based cost centre associated with Bus Area
Hi , I need to add the authorization check in the Z* program Within TE, restrictions are being implemented based upon organisational key. Organisational keys are assigned based upon whether or not the cost centre has an associated business area. If