I am trying to create Current date object in designer(E Fashion Universe) for practice on BO.i do not have any database install on my system.it is giving me date() function to use it but i don’t know how to use it.Plz help
i am getting following error: " Parse failed: Exception: DBD, [Microsoft][ODBC Microsoft Access Driver] Syntax Error in From Clause.State:4200 ".
The reason i am creating Current date object is bcoz i want to create previous week,previous month,last month …etc objects which based on current date.
They don’t parse in Designer. Designer validates objects based on looking for the table name.
Table1.ColumnA will parse because it’s found Table1
Date() will NOT parse because it cannot find a table to associate.
It tries to do “SELECT ColumnA from Table1”
"SELECT Date() from " won’t parse.
You’d write SELECT Date() in a query, no need for the from statement.
The same applies to SYSDATE in Oracle and GETDATE() in SQL Server.
Include it in a query with objects that are from a table and you will be fine.
I’m using SQL Server and have a Today object using getdate(). It doesn’t parse at the designer level, but it works fine in reports because I can use a predefined condition or a report query filter:
I assume the following:
You have a part-developed universe based on the MS Access database.
You have Desktop Intelligence access and the privileges to create reports with it.
You know what object you want to compare to current date (e.g. call date).
In Designer, create an object for Today (defined as Date() I think)
In the bottom left corner of the Designer window, you will see the two radio buttons for objects and filters. Click the filter one.
Choose the folder you want to put the pre-defined condition in, right-click on it and choose Condition from the context menu.
In the Where section, click on the double right arrow to open the edit dialog box. Choose the date column that you want to compare and double click on it. It will appear in the edit space at the top. Then press the “=” key on your keyboard. Now navigate through the classes and objects to find your Today object. Double click on it. Your condition will then look something like:
Create an Object in the universe with select as Date() now this will return you the current system date and you can use this object in the select or where clause of your report query.
However you need to use it in combination of other objects which are refrencing tables in the universe, you can not use this object alone in your query.
As you said earlier
"
I’m using SQL Server and have a Today object using getdate(). It doesn’t parse at the designer level, but it works fine in reports because I can use a predefined condition or a report query filter:"
This is covered in the Designer FAQ. In short, objects that do not reference a table will not parse because functions like “date” are valid syntax, but Designer is expecting a table. So the parse logic tries to run this:
select date from
It’s incomplete. But in a query with other objects, you get this:
select table.col1, date from table
Now it works, because date doesn’t have to come from a table.
It does not parse at the Designer level and never will because it is a system function that doesn’t use a table. Designer expects a table to be included in the query. Trust me, I’ve created the odd object or two that work like this.