Txt Fields used for dates input???????
Evening all - Hope someone can help?
I've written an website that runs of the back of an Oracle
database using SQL - its just a simple database and is being done
for a uni project.
The problem I'm having is I'm trying to use a form as to
search through a recordset using mutiple criterias - Thats fine.
Except when it comes to dates....
I have created the query :...
SELECT DVDID, TITLE, GENRE, CERTIFICATE, DIRECTOR, ACTORS,
RELEASE, BRANCHID
FROM BUCK.DVD
WHERE TITLE LIKE '%MMColParam%' AND GENRE LIKE '%VarGenre%'
AND CERTIFICATE LIKE '%VarCert%' AND DIRECTOR LIKE '%VarDirector%'
AND ACTORS LIKE '%VarActor%' AND DVDID LIKE '%VarDvdId%' AND
BRANCHID LIKE '%VarBranchID%'
ORDER BY DVDID ASC
This works absolutely fine. What I want to do is add the line
"AND RELEASE BETWEEN 'VarStart' AND 'VarEnd"
I set the default values as "05-dec-01" and "05-dec-10"
(which work fine when typed directly into the sql prompt) but I get
an error that says:...
"[oracle][ODBC][ORA]ORA-01858: a non numerical character was
found where a numerical was expected"
The datatype in the database is definately date....
Any ideas>??
LeighBuckRogers wrote:
> Evening all - Hope someone can help?
>
> I've written an website that runs of the back of an
Oracle database
> using SQL - its just a simple database and is being done
for a uni
> project.
>
> The problem I'm having is I'm trying to use a form as to
search
> through a recordset using mutiple criterias - Thats
fine. Except when
> it comes to dates....
>
> I have created the query :...
> SELECT DVDID, TITLE, GENRE, CERTIFICATE, DIRECTOR,
ACTORS, RELEASE,
> BRANCHID FROM BUCK.DVD
> WHERE TITLE LIKE '%MMColParam%' AND GENRE LIKE
'%VarGenre%' AND
> CERTIFICATE LIKE '%VarCert%' AND DIRECTOR LIKE
'%VarDirector%' AND
> ACTORS LIKE '%VarActor%' AND DVDID LIKE '%VarDvdId%' AND
BRANCHID
> LIKE '%VarBranchID%' ORDER BY DVDID ASC
>
> This works absolutely fine. What I want to do is add the
line "AND
> RELEASE BETWEEN 'VarStart' AND 'VarEnd"
>
> I set the default values as "05-dec-01" and "05-dec-10"
(which work
> fine when typed directly into the sql prompt) but I get
an error that
> says:... "[oracle][ODBC][ORA]ORA-01858: a non numerical
character
> was found where a numerical was expected"
>
> The datatype in the database is definately date....
>
> Any ideas>??
Wrong date format possibly? ie: use the US version 12/01/01
Buzby
There's nothing more dangerous than a resourceful idiot
Similar Messages
-
Dropdown field - when certain entries are selected make another field unavailable for data input
Hi All,
Sorry one again I am very new to forms and have another question. I have a dropdown list which when selecting certain values I need another field to be unavailable so the user can't enter data.
Hope this example makes sense:
DropDown
Field %
Outer
Not Allowed to enter data
Back
Not Allowed to enter data
Inner
Not Allowed to enter data
Cotton
Allowed to enter data
Wool
Allowed to enter data
If someone could give me some examples that would be a great help.
Many Thanks
Adam SadlerHere's a script that you can use for the custom Validate script of the dropdown. It resets the value of the corresponding text field whenever a change is made to the dropdown. You can get rid of the line that does this if you don't want this to happen. Change "text1" in the code to match the name of the text field you're using.
// Custom Validate script for dropdown
(function () {
// Get the selected value
var v = event.value;
// Set up an object to associate read-only status of text field with items
var f_state = {
"Outer": true,
"Back": true,
"Inner": true,
"Cotton": false,
"Wool": false
// Get a reference to the text field
var f = getField("text1");
// Clear the text field
f.value = "";
// Set the read-only status of the text field based on what's selected
if (v in f_state) {
f.readonly = f_state[v]; -
Tree-control for data input?
Hi,
I need to program an input screen for values that have hierarchical dependencies (e.g. sums). I feel, the most adequate user-interface would be a tree control, because of the data dependencies and also because the users asked for a possibility to collapse/expand parts of the data during input.
I had a look at CL_GUI_COLUMN_TREE, but I'm not sure, if it can be used for data input. Has anyone done something like this before or can anybody direct me to some additional sample coding? (the sample coding in the reuse library didn't do it...)
Thanks for your help, greetings, Kathrin!Hello Kathrin,
Since you say that the user's input is hierarchical in nature, it is nice to have a tree-control for input. But, the choice of using a custom-control-version of the tree is a cause for some concern. I cannot recollect any of the SAP screens where the input can be given through such a tree framework (please do let me know if you have come across one). The problem with such a tree would be in the areas of even-handling. Filling the tree with appropriate data at the right times would be another challenge.
However, there's one alternative that I would like to direct your attention to. You must have observed another kind of tree, when you select an application component from the APPLICATION HIERARCHY, which is just like a list. Also, the <i>Transport Organizer (SE09)</i>, <i>Menu Painter (SE41)</i> etc., have this kind of a tree. You can use this if you (or rather your users) are very particular on having a tree display. For more information, you can see the Function Group <b>SEUT</b>, which has the required function modules to accomplish the same. The Function Group is well documented, and you might have to work a little on the function modules themselves.
Please do let me know if this is a suitable option to meet your requirement. All the best,
Regards,
Anand Mandalika. -
Hi experts.
Can someone assist me with information on using ALV grid for data input. Please give a simple example if possible.
I am mainly interested in the part in which we can transfer data from the grid changing the internal table's data.Try this code:
REPORT z_demo_alv_jg.
TYPE-POOLS *
TYPE-POOLS: slis.
INTERNAL TABLES/WORK AREAS/VARIABLES *
DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
w_field TYPE slis_fieldcat_alv,
p_table LIKE dd02l-tabname,
dy_table TYPE REF TO data,
dy_tab TYPE REF TO data,
dy_line TYPE REF TO data.
FIELD-SYMBOLS *
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
<dyn_wa> TYPE ANY,
<dyn_field> TYPE ANY,
<dyn_tab_temp> TYPE STANDARD TABLE.
SELECTION SCREEN *
PARAMETERS: tabname(30) TYPE c,
lines(5) TYPE n.
START-OF-SELECTION *
START-OF-SELECTION.
Storing table name
p_table = tabname.
Create internal table dynamically with the stucture of table name
entered in the selection screen
CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_table->* TO <dyn_table>.
IF sy-subrc <> 0.
MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
LEAVE TO LIST-PROCESSING.
ENDIF.
Create workarea for the table
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
ASSIGN dy_line->* TO <dyn_wa>.
Create another temp. table
CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_tab->* TO <dyn_tab_temp>.
SORT i_fieldcat BY col_pos.
Select data from table
SELECT * FROM (p_table)
INTO TABLE <dyn_table>
UP TO lines ROWS.
REFRESH <dyn_tab_temp>.
Display report
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_PF_STATUS'
TABLES
t_outtab = <dyn_table>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*& Form SET_PF_STATUS
Setting custom PF-Status
-->RT_EXTAB Excluding table
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'Z_STANDARD'.
ENDFORM. "SET_PF_STATUS
*& Form user_command
Handling custom function codes
-->R_UCOMM Function code value
-->RS_SELFIELD Info. of cursor position in ALV
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Local data declaration
DATA: li_tab TYPE REF TO data,
l_line TYPE REF TO data.
Local field-symbols
FIELD-SYMBOLS:<l_tab> TYPE table,
<l_wa> TYPE ANY.
Create table
CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN li_tab->* TO <l_tab>.
Create workarea
CREATE DATA l_line LIKE LINE OF <l_tab>.
ASSIGN l_line->* TO <l_wa>.
CASE r_ucomm.
When a record is selected
WHEN '&IC1'.
Read the selected record
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
rs_selfield-tabindex.
IF sy-subrc = 0.
Store the record in an internal table
APPEND <dyn_wa> TO <l_tab>.
Fetch the field catalog info
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'Z_DEMO_PDF_JG'
i_structure_name = p_table
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc = 0.
Make all the fields input enabled except key fields*
w_field-input = 'X'.
MODIFY i_fieldcat FROM w_field TRANSPORTING input
WHERE key IS INITIAL.
ENDIF.
Display the record for editing purpose
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
it_fieldcat = i_fieldcat
i_screen_start_column = 10
i_screen_start_line = 15
i_screen_end_column = 200
i_screen_end_line = 20
TABLES
t_outtab = <l_tab>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc = 0.
Read the modified data
READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
If the record is changed then track its index no.
and populate it in an internal table for future
action
IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
<dyn_wa> = <l_wa>.
i_index = rs_selfield-tabindex.
APPEND i_index.
ENDIF.
ENDIF.
ENDIF.
When save button is pressed
WHEN 'SAVE'.
Sort the index table
SORT i_index.
Delete all duplicate records
DELETE ADJACENT DUPLICATES FROM i_index.
LOOP AT i_index.
Find out the changes in the internal table
and populate these changes in another internal table
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
IF sy-subrc = 0.
APPEND <dyn_wa> TO <dyn_tab_temp>.
ENDIF.
ENDLOOP.
Lock the table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc = 0.
Modify the database table with these changes
MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
REFRESH <dyn_tab_temp>.
Unlock the table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table.
ENDIF.
ENDCASE.
rs_selfield-refresh = 'X'.
ENDFORM. "user_command -
Can a IDOC be used for data exchange from R/3 to CRM
Hi All,
First, can a IDOC be used for data exchange from R/3 to CRM
I need to update few fields of SAP CRM Sales order with fields from SAP R/3 Work Order.
To achive this can I use IDOC?
Or do I update the R/3 sales order from R/3 Work order(using some interface or workflow), so that the sales order data flows from R/3 SO to CRM SO.
Please respond immediately.
Regards,
GopinathIDocs can be processed by the CRM system via XML/XIF adaptor. As this will be most probably a new interface that is not yet set up, it would be easier to change the orders in R/3 via an appropiate FM which should automatically generate a delta download BDoc.
Even if they are not downloaded automatically a request download (defined via R3AR2 / 3 / 4) should take care of this.
Hope this helps,
Kai -
Why Excel insert cell block, hasn't input for data input?
Hi
I found a block for insert new row in excel, but there is no input for data input. how should I insert data by this block to excel file? can you help me?
that block name: Excel insert cells
in report generator toolkit
Best Reagardsbehzad1 a écrit :
I could work with Excel insert cell block, but when I want add new data to an old row continuation, last row shift downward! while I want add data to old row. anyone can help me?
Nobody will be able to identify the problem without seeing your code. Excel Insert Cells.vi is used to add cells to an existing spreadsheet, not to set the cell value. To do this is a more specific way than the Append Report Text.vi you can use Excel Easy Text.vi or Excel Insert Table.vi. With these vis you can specify the range where you want to insert something.
For your other question (Two different data types) you can use the Excel Set Cell Format.vi to format a range as a date or something else. You will need to use the Excel format specifiers for this.
Ben64 -
Combine year + period as one dimension for data input
Existing Hyperion Planning has 2 dimension to keep the year and period. Our users would like to have the data entry web form title to show the year+period e.g. Jan 2009 instead of two rows. Is it very difficult to build such a label or a dimension for data input?
Thanks in advance.Jake_Turrell wrote:
You could do this with custom JavaScript, although I have to say the work would outweigh the benefits.
Why is it important that they see the year and month with a specific layout on a web input form? Are they printing the form, or using it as a "report"? If so, I would direct them to Financial Reporting, where it is much easier to format labels, etc. Forms shouldn't be used as reports as a general rule.
- JakeI am referring to the web form. Because there are 12 months in a year and they need to input more than 10 years budget, the label on the web form is not easy to view from our end user point of view. They say that sometimes they will input data in the wrong year. So they prefer to the column label as Jan2009, Feb2009, etc instead.
Thanks for your help. -
Open/close line for data input depending on characteristic value
Hi,
assume we have an input ready query linked to an analysis item.
material qty
1 100
2 50
3 70
How can we achieve that only the line 2 is open for data input by the user
and the other lines 1/3 are closed.
Regards
PaulHi,
You can use data slice for this. Activate the data slice for sl no 1 and 3 and the appln will not allow you to enter for these records.
Data slice can be made dynamic to activate/deactive as per your requirement.
pratyush -
Developed VI for data input from a Serial RS485 S. Himmelstein 700 Series Signal Conditioner
Has any one developed a VI for data input from a serial RS485 connection with S. Himmelstein 700 series signal conditioner. Multiple displays and channels. Labview 2009
Hi
I am using the same vi which you have suggested and i have selected proper com port and other settings, but i am not getting any data,but if i send "ADC0" and "*IDN?\n" command alternatively then it is giving the data...but if i do that i will get zero and data alternatively.I want to get data without zero in between.. any solutions on why i have to send *IDN?\n?
Expand.Evolve.Influence
Attachments:
Hammltn.jpg 91 KB -
Can a ComboBox be used for Text Input ?
Hi
In Ms Access the combo box can be used for text input for creating new lines in the Database instead of just being limited to the lines already there in the drop down list. Is this possible with the combo box available in Flex 4. If it is I haven't being successful in getting it to work.
Thanks for you help in advance
ParaicKWI am using a Dataservices Commit method to write to the Database via a button on the screen
When I type into the ComboBox's text input and click outside the combobox or on the commit button the application effectively freezes
SituationService is a CRUD type servicePHP to MYSQL and it works with the Datagrid
Here is the code -
ParaicKW
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:situationservice="services.situationservice.*">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
protected function Situation_creationCompleteHandler(event:FlexEvent):void
getAllTblsituationResult3.token = situationService.getAllTblsituation();
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
getAllTblsituationResult.token = situationService.getAllTblsituation();
protected function button1_clickHandler(event:MouseEvent):void
situationService.commit();
protected function vGroup_creationCompleteHandler(event:FlexEvent):void
getAllTblsituationResult2.token = situationService.getAllTblsituation();
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="updateSituationResult"/>
<situationservice:SituationService id="situationService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
<s:CallResponder id="getAllSituationResult"/>
<s:CallResponder id="getAllTblsituationResult"/>
<s:CallResponder id="getAllTblsituationResult2"/>
<s:CallResponder id="getAllTblsituationResult3"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:DataGrid x="96" y="167" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllTblsituationResult.lastResult}" editable="true" width="470" height="237">
<mx:columns>
<mx:DataGridColumn headerText="ID2" dataField="ID2"/>
<mx:DataGridColumn headerText="SITUATION" dataField="SITUATION" width="200"/>
</mx:columns>
</mx:DataGrid>
<s:Button label="Commit Updates" click="button1_clickHandler(event)"/>
<s:HGroup width="90%" height="80%" verticalCenter="20" horizontalCenter="0">
<mx:ComboBox width="476" id="cmbSituation" creationComplete="Situation_creationCompleteHandler(event)" dataProvider="
{getAllTblsituationResult3.lastResult}" labelField="SITUATION" editable="true">
</mx:ComboBox>
<s:TextArea width="426" id="textArea" text="{getAllTblsituationResult3.lastResult.SITUATION}"/>
<s:Button label="Back" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex-1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
<s:Button label="Forward" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex+1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
</s:HGroup>
</s:Application> -
If DVD Movies, Audio CD's and even burning CD and DVD's are not supported, what is the point of DVD & CD Sharing then? Wouldn't it just be better to remote in or use a thumb drive if it's only able to be used for data transfer?
Or am I missing the bigger picture?As long as you have a Superdrive or an external burner/drive, burning, watching, installing, etc. from CD or DVD will work just fine. And so will sharing.
-
Which BW variable is used for date(range) when creating a portal service
Hi,
Can any one please let me know which BW variable is to be used for date(range) when creating a portal service for searching based on dates.
Thanks
AbhaiHi Arun,
its just a portal service which would be called when searching a document created on a particular date or betwwen a range of date.so what i require is which BW variable to be used when handling range.As for variable technical name we use VAR_NAME_I and for single value variable we VAR_VALUE_EXT_I
in the similar manner i want BW variable to be used for range of values.
Thanks
Abhai -
Which BW Variable to be used for date when creating service in portal
Hi,
Can any one please let me know which BW variable is to be used for date(range) when creating a portal service for searching based on dates.
Thanks
Abhai
Message was edited by:
AbhaiHi Arun,
its just a portal service which would be called when searching a document created on a particular date or betwwen a range of date.so what i require is which BW variable to be used when handling range.As for variable technical name we use VAR_NAME_I and for single value variable we VAR_VALUE_EXT_I
in the similar manner i want BW variable to be used for range of values.
Thanks
Abhai -
Table fields used for basic key figures in report writer/report painter
Does anyone know how I can find which <u>table field</u> is actually being used for SAP defined <b>basic key figures</b> in report writer report? For example, <b>HSL</b> is a basic key figure for income statement, library 0F1, report 0F-GUVV. It only shows data is coming from table GLFUNCT. How does the report writer program knows which fields to select? What is the logic behind the basic key figures?
Any advice is appreciated!!
MinamiI have now resolved this issue.
I had to manually update TablesT804B and T804F.
I've added entries to T804A in the past without the need to update T804B or T804F manually so it appears that the way these tables work together has changed following an upgrade or application of support packs.
Regards
Mel -
How to get the exact sql developer which used for data migration?
Hi all,
Hope doing well,
Sir i seen a link for data migration that is : http://www.oracle.com/technetwork/developer-tools/sql-developer/sql-server-connection-viewlet-swf-089886.html
in this link when they are connecting to sql database so after clicking on new connection four tab is showing that is oracle, access, my sql, sql server.
i downloaded latest version of sql developer which version is: 3.02.09.30 when i opened this i am not getting those option.
and one more thing i am not getting miragation menu name in menu items.
please help me.
thanks and regardsHi,
To connect to non-Oracle databases from SQL*Developer youneed to download the relevant JDBC driver.
This is detailed in the documentation in the User Guide -
http://docs.oracle.com/cd/E35137_01/appdev.32/e35117.pdf
in the section -
Database: Third Party JDBC Drivers
The Third Party JDBC Drivers pane specifies drivers to be used for connections to third-party (non-Oracle) databases, such as IBM DB2, MySQL, Microsoft SQL Server, or Sybase Adaptive Server. (You do not need to add a driver for connections to Microsoft Access databases.) To add a driver, click Add Entry and select the path for the driver:
■For IBM DB2: the db2jcc.jar and db2jcc_license_cu.jar files, which are available from IBM
■For MySQL: a file with a name similar to mysql-connector-java-5.0.4-bin.jar, in a directory under the one into which you unzipped the download for the MySQL driver
■For Microsoft SQL Server or Sybase Adaptive Server: jtds-1.2.jar, which is included in the jtds-1.2-dist.zip download
■For Teradata: tdgssconfig.jar and terajdbc4.jar, which are included (along with a readme.txt file) in the TeraJDBC__indep_indep.12.00.00.110.zip or TeraJDBC__indep_indep.12.00.00.110.tar download
To find a specific third-party JDBC driver, see the appropriate website (for example, http://www.mysql.com for the MySQL Connector/J JDBC driver for MySQL, http://jtds.sourceforge.net/ for the jTDS driver for Microsoft SQL Server and Sybase Adaptive Server, or search at http://www.teradata.com/ for the JDBC driver for Teradata). For MySQL, use the MySQL 5.0 driver, not 5.1 or later, with SQL Developer release 1.5.
You must specify a third-party JDBC driver or install a driver using the Check for Updates feature before you can create a database connection to a third-party database of that associated type. (See the tabs for creating connections to third-party databases in the Create/Edit/Select Database Connection dialog box.)
Regards,
Mike
Maybe you are looking for
-
Deploying Adobe Acrobat X Professional over Standard
A while back I deployed a customized installation of Adobe Acrobat X Standard. I used the Adobe Customization Wizard X to generate a MST file that omits things like speed launch and arm and disables some features in the help menu (like updates, repai
-
Use a panoramic photo flash file in indesign and export it to a swf file for flipbook
hi, i haven a 360° panoramic flash file. when i put this file in indesign and make an export to pdf i can see my panoramic photo. my problem: i want to export this file to swf to use it as a flipbook. but now, my panoramic flash file doesn`t work. is
-
Decreasing the size of PDF to archive.
Hi Just wondering if anyone knows of a way to decrease the size of a pdf file that is created for archiving purposes. I have had a couple of thoughts on it. 1)I read by changing the font to Acrobat base fonts would reduce size but dont really want to
-
Title overlay works fine on MBP but not imac. Why?
Hello, I have this problem with putting a title into FCPx that happens on my iMac but not on my MacBook Pro. I am hoping someone in here can explain to me why, and how to fix it. These are screenshots of the issue on my iMac, as well as screen shot
-
I'm currently looking at the options for migrating off Crystal Reports V10. Two options have been put forward by my IT supplier - Crystal Reports XI and Business Objects XI. Can anyone offer advice on the Business Objects XI option? Is it easy to 'co