ComboBox data binding
How do I bind a combo box to a model property? I thought this was going to be a simple thing, but now I'm not so sure. Do I bind the selectionModelProperty? If so, what do I bind it to? The bind method wants a SingleSelectionModel<T>. What is that and how do I relate that to my model property?
Currenty there is no way to bind the selection property of the combobox because its read-only (correct me if I am wrong). A workaround is to have a changelistener.
combobox.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {
@Override
public void changed(ObservableValue observable, Object oldValue, Object newValue) {
if (newValue != null) {
modelProperty.setValue(newValue);
});
Similar Messages
-
Data Binding using DataSet and ComboBox
Hi guys, hope someone can help me with this. Seems it should
be simple, but it's not, that's why I'm here. I have data loading
into a DataSet component. I have a ComboBox on the stage with
predefined values and lables, so it's not dynamic at all. After
loads into the DataSet I have the value Bound to the the Combobox,
but nothing is being selected. I know the ComboBox is a little bit
trickier, unlike the Textfield or TextInput wich work right away.
Again, hope someone can help.Hi,
I think the data binding concept you asked for Dropdown listboxes and RadioButtonGroups .If My Guess Correct follow the links provided here you may get useful information,
[http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/bb/69b441b0133531e10000000a155106/content.htm]
for Example refer this link,
[http://help.sap.com/saphelp_nw04/helpdata/en/74/450e8af57065468e88e4b86de47e4b/frameset.htm]
Hope This information Useful for you.
Regards,
Raghava Channooru. -
BC4J ViewLink Combobox model binding
I am having difficulty with a jclient panel I have built, using a combobox model binding.
I have a screen where one combobox contents depend upon the status of a previous selection.
An example of this would be to have an employee table with columns:
employee - the reference to this row
level - a numeric representation of the employee level
reports_to - a self referential column detailing the manager
Based upon the selection (via a combobox) of the level, the reports_to selection should be limited to employees of higher level.
I achieved this through the use of a view link within the business components, amending the view link sql statement to use 'greater than' rather than 'equals'.
This performs perfectly within the business components tester, selecting the correct data for each employee.
BUT, when using a combobox model binding to select both items of data there seems to be a bug when navigating through the data.
The second record you view within the jclient panel has no display text within the combobox. The third record is ok but the fourth record appears to do the same. Further records seem ok, but this does not happen if you navigate through the rows backwards!
If you navigate to the end data row first to avoid hitting the second record the same happens, but then all records are fine when navigating back!
This seems very bizarre and could only be a bug within the BC4J framework (i hope).
An example can be mailed if the jdev team cannot replicate, or more info given if required.
Thanks in advance.We have had this problem for some time but now have a solution.
Our problem is that the ComboBox is bound to two (linked) Views, one for its regular value and one for the LOV, which I shall call ViewMain and ViewLov respectively.
When the ViewMain is navigated, the JUComboBoxBinding is notified as for any control binding. Also, the ViewLov gets navigation events (rangeRefreshed I think) due to the link which are also passed to the JUComboBoxBinding. The order of these notifications seems to be outside my control.
If the ViewLov norification occurs first and the old value isn't in the new LOV, then the selected index is set to -1. When the ViewMain notification arrives, the situation is resolved as the new value is in the LOV.
However, if the ViewMain notification arrives first and the new value isn't in the old LOV, the selected item index becomes -1. This isn't resolved when the ViewLov notification arrives.
Our solution is to extract the source of JUComboBoxBinding and modify
protected void setupListItems(boolean clean, boolean keepSelectedIndex)
At the end we add the following code:
// When LOV changes, need to update for bound attribute's current value.
Row lRow = getRowIterator().getCurrentRow();
if (lRow != null)
{ updateValuesFromRow(lRow);
My understanding of the internal machinations of BC4J isn't thorough enough to say if this is a "correct" solution or not, but it seems to work.
HTH
Tony. -
MVC - Performance of data binding
Hi Gurus out there
I have a concern regarding performance of (dynamic) data binding if I have a lot of <i>textEdit</i> fields containing huge amount of data on a view page.
<u>Scenario</u>:
The view page contains buttons <b>[Add textEdit field]</b> and<b> [Save all entries]</b>. If you click the button <b>[Add textEdit field]</b> then a (new) <i>textEdit</i> will be generated and the model remembers the total number of <i>textEdit</i> fields that have been generated.
DATA: textedit_count TYPE i,
o_textedit TYPE REF TO cl_htmlb_textedit,
tabix(6) TYPE c,
binding_code TYPE string,
binding_str TYPE string.
textedit_count = o_model->get_section_count( ).
DO textedit_count TIMES.
* Create a unique ID for a textEdit field:
tabix = sy-index.
CONDESE tabix NO-GAPS.
* String for the data binding of internal table model->data_stream_tab:
CONCATENATE '//model/data_stream_tab['
tabix
'].data_string'
INTO binding_str.
* Dynamic data binding:
CREATE OBJECT o_textedit.
CONCATENATE 'myTextEditID' tabix
INTO o_textedit->id.
o_textedit->width = 650.
o_textedit->height = 225.
o_textedit->_text = binding_str.
binding_code = o_textedit->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
<htmlb:label for = "<%= o_textedit->id %>"
text = "<%= o_textedit->id %>"
design = "EMPHASIZED" />
<%-- Binding of the attribute (internal table) '//model/data_stream_tab<i>.data_stream' --%>
<%= binding_code %>
ENDDO.
Obviously the <u>whole</u> contents of the <i>textEdit</i> fields in the coding above are <u>always</u> "moved" from the web browser to the server and vice versa when the button <b>[Add textEdit field]</b> is hit every time even though the content of some <i>textEdit</i> fields haven't changed.
Does anyone have a good solution/optimization for this problem? Any suggestion, comment and/or answer will be very appreciated.
Thanks
HWPlace this code above any textedit elements you have in your page:
<script type="text/javascript">
var myFields = new Array();
</script>
Then place this code after every textedit elements, this code will get run when the page is loaded in the browser, right after your element. You are saving the ID and the default value of your element to an array. For every further element, increase the array counter by 1!
<script type="text/javascript">
myFields[0] = new Object();
myFields[0]["id"] = 'myTextEdit1';
myFields[0]["default_value"] = document.getElementById(myFields[0]["id"]).value;
</script>
Finally, include this function in your page (does not have to be at the bottom, I just put it here chronologically):
<script type="text/javascript">
function compareFields() {
for (var i = 0; i < myFields.length; ++i) {
if(myFields<i>["default_value"] == document.getElementById(myFields<i>["id"]).value) {
// nothing has changed, set to ignore-value (any highly unlikely value, like ")?.("
document.getElementById(myFields<i>["id"]).value = ')?.(';
// check against this value in your setter method
// if this is set, then do not user submitted value to update your model attribute value
// maybe do some output for debug purposes
// alert(document.getElementById(myFields<i>["id"]).value);
}</script>
Now add this attribute to your submit button:
onClientClick = "javascript:compareFields();"
This should do, test it out and let me know.
Max -
I have created a banded report split into departments. Each
recore has a value associated with it. The report runs fine if I
dont try to sub-total each departments vale, but if I add a
calculated field to the banding, I get the following error:
Report data binding error Error evaluating expression :
textField_2 Source text : calc.Department_Total.
Variable calc.Department_Total is undefined.
The calculated field is simply the sum of the values, with an
initial value of 0 and set to reset when the group changes on the
department. I am using the same data type for the calc field as it
automatically gave for the original Value field (Big Decimal)
Any ideas?
Dave HDoes anyone have any ideas about this, Its getting a bit
critical now. Has anyone else been able to do sums that calculate
on group changes?? The sum total works for the report, jusyt not
the bands. I desparate here, pulling my hair out.
Regards
Dave H -
Unable to find information on WS data binding error on WLS 9.2.03 startup
Frustratingly, when I Google for "WS data binding error" I get 'old' links to BEA forum issues which may help but these are nowhere to be seen on the read-only copies now on Oracle forums here :- http://forums.oracle.com/forums/category.jspa?categoryID=202.
The link I'm looking for is:-
forums.bea.com/thread.jspa?threadID=600017135
Is there anywhere I can get access to this information or should I just post new items on the new WLS forum?
Many thanks.
p.s. the errors I am trying to research are as follows:-
<WS data binding error>could not find schema type '{http://xmlns.oracle.com/apps/otm}Transmission
<WS data binding error>Ignoring element declaration {http://xmlns.oracle.com/apps/otm}Transmission because there is no entry for its type in the JAXRPC mapping file.Check this..
http://docs.oracle.com/cd/E10291_01/doc.1013/e10538/weblogic.htm
you can ignore those warnings
The following data type binding warnings and errors are displayed during deployment and start of Decision Service (Business Rules) Applications. These errors and warnings can be ignored.
<WS data binding error>could not find schema type '{http://www.w3.org/2001/XMLSchema}NCName
<WS data binding error>could not find schema type
'{http://websphere.ibm.com/webservices/}SOAPElement
java.lang.IllegalStateException
at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder$GlobalElementNode.
getSchemaProperty(AnonymousTypeFinder.java:253) -
Dynamic Data Binding at runtime
For future applications, flexibility will be an important feature. One of the biggest drawbacks of forms is/was, on my opinion, not being able to create new items at runtime.
JClient will easily overcome this restriction. But how about data binding ?
Imagine the following situation: We've got a VO "order" with the "custname" incorporated as lookup data. At runtime, the user decides that she needs to see the "custloc" as well (put an additional JTextField into some whitespace on his panel). As I understand it is possible to build a view link to tie an instance of the VO "customer" to the "order" (I'd prefer that over adapting the query statement of "order" at runtime). But how can I create the new iterator binding and control binding needed to populate the dynamically created attributes with the data from "customer"? And, further on, how will I be able to make the changed configuration of my panel persistent, let's say into the DB ? Or does the data binding concept of 10g just not cover this requirement?Hi pascal
It is not possible to send you email at your address. All come back with a permanent error
Your document: test
was not delivered to: <[email protected]>
because: Error transferring to smtp.solnet.CH; SMTP Protocol Returned a Permanent Error 550 Service unavailable; Client host [81.62.5.7] blocked using dul.dnsbl.sorbs.net; Dynamic IP Address See: http://www.dnsbl.sorbs.net/cgi-bin/lookup?IP=81.62.5.7 -
How can I set the data binding between Web Dynpro & Database table
Dear friend,
I am a beginner of Web Dynpro. I want to develop my simple project like these:
1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
1. How can I set the data binding between Web Dynpro and Database table ?
2. Are there any nescessary steps that I will concern for this case?
Sorry if my question is simple, I had try to find solution myself, but it not found
Thanks in advances,
SeMsHi,
You can write your own connection class for establishing the connection with DB.
Ex:
public class ConnectionClass {
static Connection con = null;
public static Connection getConnection() {
try{
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
con = ds.getConnection();
return con;
}catch(Exception e){
return null;
You can place the above class file in src folder and you can use this class in webdynpro.
You can have another UserInfo class for reading and writing the data into the DB .
Regards, Anilkumar
PS : Refer
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Message was edited by: Anilkumar Vippagunta -
Context Mapping and data binding
Hi,
Please explain about the context mapping and data dinding
and also differences
Thank's & Regard's.
SriHi Sridevi Sudunaguntla ,
context mapping-> means mapping between different contexts
ie suppose if we are creating a node in the component controllet and if we want to use that node in view a and view b, then we have to map this node from component controller to the required view.. this mapping of context nodes is called context mapping..for context mapping, create nodes in compcontroller.. tehn go to view-> context-> tehn drag and drop required node from component controller to the view ..
data binding-> means binding the data from nopde to the ui elements or viceversa... after the nodes are created in indudual views or after context mapping.. we have to bind these nodes to the ui elements... suppose we have an input field and we want to read that,, so we have to bind the input field to an attribute in the node.. this binding is called.. data binding.
Regards
Sarath -
Report data binding error unknown column name
Hi,
I am having a problem with the new 7.02 update of Report
Builder. The issue is it's not finding my SQL query.
I have wrote my query initally in the advance mode, and it
doesn't seem to reconize it. Is there an issue with this?
I did manage to fix one of my reports by using the basic mode
and selecting all my tables and seting my linkage and criteria.
I have other computers that i have not updated to 7.02 and
they do not have this issue. Below is the error:
Error Occurred While Processing Request
Report data binding error Unknown column name : work_phone.
Please try the following:
Check the ColdFusion documentation to verify that you are
using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
.NET CLR 1.1.4322; .NET CLR 2.0.50727)
Remote Address 127.0.0.1
Referrer
Date/Time 13-Jul-06 02:33 PM
Stack Trace (click to expand)
coldfusion.runtime.report.Report$ReportDataBindingException:
Report data binding error Unknown column name : work_phone.
at
coldfusion.runtime.report.Report.runReport(Report.java:420)
at
coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:96)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
This report works in 7.01. So all query variables match with
a variable in the SQL select statement.
Anyone have any Ideas??
Thanks,
DanielThank you very much for help.
The "Unknown column name " is a field still used in my
report, so I can't remove it.
After I clear the query in the report and reopen the report
and apply the same query back to it, I get different error message:
Element TASKNUM is undefined in QUERY.
The error occurred in : line 1
-1 : Unable to display error's location in a CFML template.
I know for sure this "Element TASKNUM is undefined in QUERY."
is defined in query. each time it complains something different. I
get really confused.
Thanks again.
Yueming -
The data binding isn't working, what have I done wrong?
I'm writing a very simple WPF app, one view. I've got a few models defined for the small handful of tables this app works with. I'm making some sort of boneheaded mistake, but I can't see what it is. I'm trying to bind to a property of one of the model
classes I've define, to a textbox in a stackpanel. Here's the XAML:
<StackPanel Orientation="Horizontal" Margin="0, 5" DataContext="{Binding cvsSpecMapping}">
<TextBlock Margin="10,0,5,0">Specimen Mapping: </TextBlock>
<TextBox x:Name="txtHl7SpecMap"
Text="{Binding HL7SpecimenTypeName}"
ToolTip="{Binding HL7SpecimenTypeName}"
MinWidth="50"
MaxWidth="100"
MaxLength="250" />
</StackPanel>
Earlier in the same XAML file I've got the following collection view source defined in the windows' resources:
<CollectionViewSource x:Key="cvsSpecMapping" />
This isn't rocket science. Here's the model class definition. I'm removing all but the relevant property:
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace SpecMapException.Models
* This class I am interested in knowing what properties change.
* Also note that the properties in this class do NOT represent all of the properties
* in the Prism.SpecimenMapping table. It only represents what this application has
* to store.
public class SpecimenMapping : INotifyPropertyChanged
private const int MAX_HL7SPECIMENTYPENAME_LEN = 250;
#region class properties
private string _hl7SpecimenTypeName = "";
public string HL7SpecimenTypeName
get { return _hl7SpecimenTypeName; }
set
if (value != _hl7SpecimenTypeName)
_hl7SpecimenTypeName = EnforceMaxLength(value, MAX_HL7SPECIMENTYPENAME_LEN);
NotifyPropertyChanged();
#endregion //class properties
#region local routines
private string EnforceMaxLength(string PassedValue, int MaxLength)
if (PassedValue.Length <= MaxLength)
return PassedValue;
return PassedValue.Substring(0, MaxLength);
#endregion
#region PropertyChanged code
* The usual property changed code.
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
#endregion
And lastly here's the relevant code which I've put into the windows Loaded event:
Models.SpecimenMapping sm = null;
private void Window_Loaded(object sender, RoutedEventArgs e)
var cvsSpecMapNames = (CollectionViewSource)(this.FindResource("cvsSpecMapping"));
cvsSpecMapNames.Source = sm;
So what is the mistake that I've made? Why isn't the data binding to the textbox txtHl7SpecMap working?
(I'm using VS 2013, .NET 4.5.)
RodcvsSpecMapping is a resource and not a property so you should set the DataContext using the StaticResource markup extension instead of Binding:
<StackPanel Orientation="Horizontal" Margin="0, 5" DataContext="{StaticResource cvsSpecMapping}">
Also, the Source property of a CollectionViewSource is supposed to be set to a collection:
private void Window_Loaded(object sender, RoutedEventArgs e)
sm = new Models.SpecimenMapping();
var cvsSpecMapNames = (CollectionViewSource)(this.FindResource("cvsSpecMapping"));
cvsSpecMapNames.Source = new List<Models.SpecimenMapping>() { sm };
You may also want to set a default value of the HL7SpecimenTypeName property to confirm that the binding actually works after you have done the above changes:
public class SpecimenMapping : INotifyPropertyChanged
private const int MAX_HL7SPECIMENTYPENAME_LEN = 250;
#region class properties
private string _hl7SpecimenTypeName = "def....";
public string HL7SpecimenTypeName
get { return _hl7SpecimenTypeName; }
set
if (value != _hl7SpecimenTypeName)
_hl7SpecimenTypeName = EnforceMaxLength(value, MAX_HL7SPECIMENTYPENAME_LEN);
NotifyPropertyChanged();
Hope that helps.
Please remember to mark helpful posts as answer to close your thread and then start a new thread if you have a new question. -
Report data binding error with date values
I have CF7.02 with a Microsoft Visual FoxPro 9.0 SP1 Database
that I connect to using ODBC (FoxPro Driver 6.01.8630.01). I send
my sql results to a CF Report Builder 7.02 PDF report and it works
fine. If I dump the date values before I change them, they look
like the following: {ts '2004-12-20 00:00:00'} . However I have
tried a number of ways of manipulating the date before sending it
to the report, but I continue to get errors. I don't care what
format they go to the report in, since the report reformats them
anyway. I checked to make sure that none of the dates were null.
For example <cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDateTime(#ldCFPrcInputDate#) /> yields values in the
{ts '2004-12-20 00:00:00'} format when I dump the query results to
screen. Where:
ldCFPrcInputDate = 12/20/2004
CreateODBCDateTime(ldCFPrcInputDate) = {ts '2004-12-20
00:00:00'}
ReportQuery.PrcInputDate[lcCurRow] = {ts '2004-12-20
00:00:00'}
I get the error:
Report data binding error Unable to get value for field
'prcinputdate' of class 'java.util.Date'.
coldfusion.runtime.OleDateTime -> Date
Not using the CreateODBCDate function for example <cfset
ReportQuery.PrcInputDate[lcCurRow] = #ldCFPrcInputDate# /> I
get:
Report data binding error Unable to get value for field
'prcinputdate' of class 'java.util.Date'.
java.lang.String -> Date
Here are some of my failed attempts:
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDateTime(#ldCFPrcInputDate#) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
#ldCFPrcInputDate# />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
DateFormat(CreateODBCDate(#ldCFPrcInputDate#),'mm/dd/yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm/dd/yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm-dd-yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
Trim(createODBCDateTime(ldtmpdate)) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate({05-07-2006}) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate('{05-07-2006}') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(05/07/2006) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate('05/07/2006')/>
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(parseDateTime('05/07/2006')) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
parseDateTime(CreateODBCDateTime(05/07/2006)) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
parseDateTime(CreateODBCDateTime('#ldCFPrcInputDate#')) />
<cfset ReportQuery.PrcInputDate[lcCurRow] = '{05-07-2006}'
/>
<cfset ReportQuery.PrcInputDate[lcCurRow] = '{05/07/2006}'
/>
<cfset ReportQuery.PrcInputDate[lcCurRow] = '05/07/2006'
/>
I also did some googling without success. Any help is
appreciated.You may want to make sure that the column is not included in
the query variable list in your report cfr file.
The newest version of the Report Builder, which may be
installed on the server, no longer tolerates vars appearing in that
list of they are not in the query itselft. -
User Report data bind variable problems
Hello,
I am trying to build a simple report in SQLDeveloper, using a DATE bind variable. But it fails with the error message:
Inconsistent datatype, expected DATE got NUMBER
SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
where create_date = trunc(:TARGET_DATE)
and type = 'D'
ORDER BY MESSAGE_FLOW_ID
Running this query in SQLDeveloper worksheet executes properly after a dialog box pops up and I enter: current_date - 1
SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
where create_date = trunc(&TARGET_DATE)
and type = 'D'
ORDER BY MESSAGE_FLOW_ID
I've searched but no clear solutions present themselves. If you have one it would be most appreciated.
ThanksYou'll have to convert the input to date yourself:
SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
where create_date = TO_DATE(:TARGET_DATE, 'DD/MM/YYYY')
and type = 'D'
ORDER BY MESSAGE_FLOW_ID
Have fun,
K. -
Shared variable vs. data binding
Hi,
I try to write a program which communicates motor drives through ethernet and I use OPC server and shared variables created using PLC. I created front panel indicators in a while loop with 50 ms cycle to read motor encoder position, status etc. When I try to do this with wiring shared variable to indicator and with changing the data binding property of the indicator browsing the same variable from the project library, data binding seems to respond slower than wiring the shared variable to indicator directly. Can anyone explain why?Hi mhn05,
I'm not exactly sure why it would be operating slower. Do you have code that you can upload that benchmarks or tests the speed of these, side by side?
Thanks,
Dave T.
National Instruments
FlexRIO & R-Series Product Support Engineer -
I want to use data binding in jsp,just like microsoft ASP's RDS,how can I d
I want to use data binding in jsp,just like microsoft ASP's RDS,how can I do?
I can't claim to know exactly what RDS binding involves, but if my hunch is correct, you can get very similar behavior by using JSTL and define your data source using JNDI. See the JSTL spec, my article series about JSTL, or a JSP/JSTL book (such as mine ;-) for details:
http://java.sun.com/products/jsp/jstl
http://www.onjava.com/pub/a/onjava/2002/08/14/jstl1.html
http://www.onjava.com/pub/a/onjava/2002/09/11/jstl2.html
http://www.onjava.com/pub/a/onjava/2002/10/30/jstl3.html
http://www.thejspbook.com/
Maybe you are looking for
-
Linking document info record and purchase order
Hi all, I hope that someone can help me because I'm having a problem with creating links between document info records and purchase orders. By default in SAP I can create links between document info record and purchase order ITEMS! When I create that
-
HT1349 I get error message 4450 when I try to burn a CD. What is 4450?
Can someone please help with this error message.
-
URGENT : REP-0999 Unimplemented error
I have a problem in reports when i generate the report to another format (for example PDF or HTML) using the generate option in the menu of report output from an application..i get an error "REP-0999 unimplemented error" but if i generate the report
-
Use WebEngine to view applet demo of JDK problem
When I used webEngine to view applet demo of JDK like this: WebEngine webEngine = new WebEngine("file:///C:/Program Files/Java/jdk1.6.0_25/demo/applets/BarChart"); I got message on the page inside JavaFX like this: alt="Your browser understands the <
-
Migration form W/O Classification to With Classification Release Strategy
Hi MM Experts, Our client is currently having purchasing requisition release strategy based on without classification. There are almost hunderds of release codes for multiple sites. Now he wishes to migrate to release strategy with classification. So