Date Field Displaying and DML Operations
Hi all,
I have an issue with displaying and updating date columns that I'm hoping someone can assist me with.
I'm using APEX 3.0.1.
I have a Form page with a number of fields sourced from one database table that are being populated by an Automatic Row Fetch On Load - After Header.
The Item P6_MONTHFOR is stored as a Date datatype in the table and displayed on the form using the Date Picker (use Item Format Mask). I have a Format Mask set as 'MON-RR'. I want to ensure that the last day of the month is saved back to the database table so have been trying various calculation techniques to try and achieve this but am experiencing a variety of SQL errors!
I have tried using LAST_DAY(:P6_MONTHFOR) in the Post Calculation Computation, or as a separate Computation After Submit.
I have also tried having P6_MONTHFOR as a hidden column and using display Items and then trying Item calculations to then update the value of P6_MONTHFOR column prior to DML operations but to no avail.
The only DML operations allowed on these rows are DELETE and UPDATE and I'm using an Automatic Row Processing (DML) On Submit - After Computations and Validations process to control these operations.
Any help or suggestions greatly appreciated :-)
Kind Regards,
Gary.
the function LAST_DAY is a date function, expecting a date as input. Since it is all web, the values of items are as string/varchar2. In order to use date-function, you have to first make it a date with to_date() with the format-mask (DD-MON-RR).
In my opinion Dates are still tricky, it would be great if ApEx would have a DV() function, next to the V() and NV() functions, It is in ApExLib (of Patrick Wolf)
Simon
Similar Messages
-
Hi I have one requirement for Tracking the DDL And DML Operation happening in Backend once the user Inserts or Updates any Table.How to Implement the same can anyone proviode the code for the same.
Ex: I have multiple tables in my database if any user fires the DDL or DML it should make entry in the Log file as
Name of the Table Operation Timestamp
X Insert DD-MM-YYYY HH24:MM:SS
Y Update DD-MM-YYYY HH24:MM:SS
Z Delete DD-MM-YYYY HH24:MM:SS
L Select DD-MM-YYYY HH24:MM:SS
Is it Possible to Develop it through Procedure,Function or Package,please give me Idea,,,,,Please do not post same question in multiple forum. How to Track DDL and DML Operations happening in Backend into Log Files....
What's wrong with the answers posted in the above forum ? Do you go through the "AUDIT" option as suggested in the above post by various members ? -
Date field patterns and barcodes
I have a date field that is mapped to a barcode. the date field has a pattern > Data of date {YYYYMMDD} because the target system requires it without the dashes.
However when the barcode generates it always encodes YYYY-MM-DD (ie. WITH THE DASHES).
If i do a xfa.host.messageBox (this.rawValue) it always displays the YYYY-MM-DD.
If I call the this.formattedValue it does return YYYYMMDD.
To fix this i created a hidden field which i wrote to on the exit of the datefield and mapped this hidden field to the barcode.
hiddenField.rawValue = this.formattedValue
Is there a better way to do this without the hidden fields? I ask since i have a bunch of date fields..
How/where do i change the pre-generated barcode code to grab the formattedValue instead of the rawValue if its a datetimefield?Hi,
Got the answer for the first question from http://forums.adobe.com/message/4282353#4282353.
Kindly help with the validation message part.
Thanks -
Is there a way to import a indd CS4 file with its Data Fields names and properties into CC?
I have to convert numerous files from CS4 to CC. The CS4 files are using external data from a CSV file. When I open the file in CS4 I can enable the preview and see the data from the CSV file. But when I save the file as indd or idml and try to open it in InDesignCC then I can't see the data as preview. I can see the Data fields (text).I think it's because it doesn't recognize the data fields from the CS4 file. If I delete a data field and remap it I will be able to see the preview for the field I just mapped. the other fields remain the unchanged, like they were just text.
Any help with this topic will be very appreciated. I have about 70 data fields per document and about 100 documents to go through.
Update: The symbol for a data field, ex: «fullname_2» change size when I delete and remap it. Explanation: When I open the CS4 file in IndesignCC I can't view a preview of the Data field(s) (almost positive because it's plain text). The data fields show like this «fullname_2». But when I delete that and drag a field from the data field list it shows like this <<fullname_2>>. So definitely, CC is not reading the data fields from InDesign CS4.
P.S.: The fields above («fullname_2» and <<fullname_2>> are copy and paste from Indesign CC.I'm attaching this image so this forum can notice the difference on the Data fields from CS4 and the ones added on CC
-
How I can make the value of a Date field to display in Uppercases?
ThanksThe picture clause is what controls the format of the date that is being shown. I do not see an option to get the month or days capitalized. You would have to not use a date field but a TextField then you could capitalize the month or date using the functions for uppercase in javascript or formcalc.
Paul -
About DDl and Dml Operations On B1
Hi ,
I had Created A form In SDk Using UiAPI, It Contains Five Text Fields And One Button. And I had Created An EMP Table.It Contains Five Fileds. My Question Is:----
>
When I clicked Button , The data Entered In TextFields(EditText) Need To stored in Database. Similirly All The Operation Need To Do. How Can we Do In sdk. Please tell Me code
Regards
SrinivasSrinivas,
Please look at the subject of "Binding Items to Data SourcesBinding Items to Data Sources" in the SAP Business One SDK Help Center Documentation. This should assist you and show you code samples.
Eddy -
Hello everyone,
I write for a question.
We migrated a db from an old Solaris machine with 10G to an Exadata with 11gR2.
Now, we would enable EHCC on tables that are the core of our DWH.
In compressing tables and partitions, do we need to make some considerations regarding DML applied on?
Tables are treated using two group of DML: "insert or update" and "delete then insert".
For completeness, we do so using Datastage.
There are other considerations or parameters to take into account?
Thanks
Greetings
SandroSome other inputs on this thread are-
EHCC has following 4 options and you can use them as per your need.
1. ARCHIVE HIGH
2. ARCHIVE LOW
3. QUERY HIGH
4. QUERY LOW
Following are the guidelines to choose above option.
Query High
Lots of Read
Rarely updated
Query Low
Lots of Read
Some inserts
Archive High (COLD OR ARCHIVE DATA)
Rarely Read
Never updated
Archive low
Frequently read
Sometimes updated
There is compression advisor tool that can tell you the possible benefit of using any of above option. You can use this advisor to decide on which way to go.
following whitepaper has very useful information.
http://www.oracle.com/technetwork/database/exadata/ehcc-twp-131254.pdf
following presentation also has very nice information. Slide 16 summarizes it.
http://www.oracle.com/au/products/database/311358-132337.pdf
Hope it helps.
Thanks,
Abhi -
Labels reversed in french in Employee Master Data, fields Branch and Dept
Hello
There is an error in SAP B1 2007A translation from english to french.
In the Employee Master Data, in french, the labels Branch and Department are reversed. So our client has its Departments in OUBR and its Branches in OUDP.
Is there a way to make a correction to those labels without creating an add-on?
Thank you.
PierreHello Gordon
I've double-clicked on the labels and nothing happens. Is there a lock in the menu that has to be deactivated before we click on the labels in order to change the caption.
I'm in the Employee Master Data interface and the labels for the Dept and Branch are reversed in the french version.
Thanks
Pierre -
Data Blocks - Different data source for Query and DML
Would anyone please tell me if it is possible in a BLOCK to define a stored procedure for queriying and a table for DML operations or vice-versa at the SAME time.
If possible how do you do it using DATA BLOCK WIZARD? If you select your block to be based on stored procedure then it gives only stored procedure options for Querying and DML operations in next few screens.
Also, suppose I used a stored procedure defined in a block for insert operations, is it implicitly called by INSERT RECORD function key in default menu? How does it take values from different fields on its own?Hi Deepon,
We get data from both BSIK(open items)and BSAK (cleared items). Obviously if a accounting doc is not cleared it would be in open items and vice versa..
Go through the help link for more information..
http://help.sap.com/saphelp_bw33/helpdata/en/90/10e73a86e99c77e10000000a114084/frameset.htm
Regards
Manga(Assign points if it helps)
Message was edited by: Manga -
Concatenate 2 data fields and put values in single line
Hello,
I am pretty new to BI Publisher. I want to concatenate 2 data fields (Product and ProductType). These concatenated values then I want to put them on a single line.
eg.
the values should look like
ProductType1.Product1,ProductType2.Product2, ProductType3.Product3..........
Thanks.The XML is
- <ServiceAgreement>
<AccountId>1-abcde</AccountId>
<AgreementNumber>1-685</AgreementNumber>
<AgreementStartDate>07/08/2010 13:46:18</AgreementStartDate>
<AgreementStatus>Awaiting</AgreementStatus>
<ContactFirstName />
<ITIStreetAddress />
<ITIStreetNumber />
- <ListOfOrderEntry-Orders>
- <OrderEntry-Orders>
<ITIMoneyToCollect />
<OrderDate>07/08/2010 13:46:53</OrderDate>
<OrderNumber2>1-685579</OrderNumber2>
<OrderStatus>Pending</OrderStatus>
<OrderType>Sales Order</OrderType>
- <ListOfOrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Hollywood 18m</Product>
<ProductType />
<PromotionId>123456</PromotionId>
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName>Hollywood 18m</ProdPromName>
<Product>n TV</Product>
<ProductType>Root</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>HBO + nFilmHD</Product>
<ProductType />
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>HBO</Product>
<ProductType>Opcje dodatkowe</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>nFilmHD</Product>
<ProductType>Opcje dodatkowe</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>nbox HDTV</Product>
<ProductType>Dekoder</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Cinemax</Product>
<ProductType>Opcje dodatkowe</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Filmbox</Product>
<ProductType>Opcje dodatkowe</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Upust za zakup 3-ego pakietu</Product>
<ProductType>Upusty</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Pakiet Informacja i Rozrywka</Product>
<ProductType>Pakiety</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Opłata aktywacyjna za nbox HDTV</Product>
<ProductType />
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Pakiet Dzieci</Product>
<ProductType>Pakiety</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
- <OrderEntry-LineItems>
<OrderType2>Sales Order</OrderType2>
<ProdPromName />
<Product>Pakiet Sport i Motoryzacja</Product>
<ProductType>Pakiety</ProductType>
<PromotionId />
<ServiceId />
</OrderEntry-LineItems>
</ListOfOrderEntry-LineItems>
</OrderEntry-Orders>
</ListOfOrderEntry-Orders>
</ServiceAgreement>
</ListOfBipServiceAgreement>
As per the above XML I want to see
Pakiet Dzieci.Pakiety , Pakiet Sport i Motoryzac ja.Pakiety.....
Thanks -
DSO or ODS "Insert New Hierarchy Nodes" under Data Fields
When you insert info objects under the Data Fields in DSO right mouse click on the Data Fields icon and you will find Insert New Hierarchy Nodes . I created a hierarchy node with infoobjects associating with it which will be visible under the Filters Folder in BEx Query designer as a seperate folder. I can add them to the infoobjects from this folder into the query. I did not know how to apply this functionality in Queries and what it really does. My guess was you can create dynamic hierarchy using characteristic infoobjects from transactional data.Any ideas or links to documentation. This option was available from 7.X in DSO's and i think even in 3.x ODS.
Hi,
May help you:----
http://help.sap.com/saphelp_nw70/helpdata/en/4a/e71f39488fee0ce10000000a114084/content.htm
You could feel the flexibility of using this hierarchial display in the Query. Try to create any Query on this DSO.
Regards,
Suman -
Formatted Search for Delivery Date field in SO not working
Hi All
Can anyone help me as to why my formatted search is not working?
I am currently using SAP B1A SP01 Patch 19.
I have created a user query as follows:
SELECT $ [$10.0.DATE] + 5
When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
Any ideas?
Thanks and best wishes
GailHI Gail,
If I am not mistaken you want to add days to the posting date...if that is so then try this out:
SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
Set The indicator to Auto Refresh when the fields change
Nagesh -
I have a status of completed and a date field in the dataset. The date field is either empty or contains a date. All 2015 dates are holding dates.
So how can I limit the report to only pull completed status with an empty date or a holding date?
I have not been able to set an OR option on a date field filter and if I add two filters on the date column one for empty one for > 12/31/2014 then it treats it as an "and" and pulls nothing from the list I have in sharepoint.
any help will be appreciated.Hi MB,
In Reporting Services, the relationship of filters is “And”, and there is no option to change the relationship from “And” to “Or”. While we can use “or” operator within the expression to create one filter to integrated all filters to work around this
issue.
We can add a filter as follows in the dataset to limit the rows in your report:
Expression: =Fields!date.Value is nothing or Fields!date.Value>"12/31/2014" Type: Boolean
Operator: =
Value: true
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
Email Notification with date field
Hi,
i marked the a field as Display field this way it is displayed in the Email notification. (%Records%).
But i can see the letral date field displayed in email as 2010:03:09:00:00:00:000
Why is the ''00:00:00:000'' displayed when i have a date field??
Did anyone face this issue..
KR
JohnHI John,
Date field in MDM is 18 characters long and has date as well as time component to it.
You can use assignment to trim this and transfer its value to another field and make that field as DF,so that it is displayed in the mail as date.
Otherwise you can also create a calculated field for this purpose.
Please go through this very useful link to create expressions/validations with dates:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b025fab3-b3e9-2910-d999-a27b7a075a16?quicklink=index&overridelayout=true
Thanks,
Ravi -
Calculating years between 2 date fields
I am trying to build a form in LiveCycle Designer 7 to report missing persons. I would like to populate a text field with the number of years between two dates entered in date/time fields; specifically using a missing person's DOB and the date they were last seen to calculate their age when last seen.
Any assistance would be greatly appreciated.
Thanks
DrewGreetings,
I need an age in months and years.
On my LiveCycyle form I have two date fields 'dob' and 'rdtestdate'. I am in Australia so we use dd/mm/yyyy as the format.
The field designated to display the calculated result -- 'rdage' -- is set as a calculated-read only text field.
What javascript/formcalc code would I use to calculate the age in years and months, please?
I've been studying and testing the various solutions but don't understand well enough, sorry! When I paste in a sample and change the field names to match mine, my result remains empty. Sometimes I get a failed script message as I try to save the form. I've tried quite a few different scripts to no avail.
Thanks for any assistance.
jeannie
Maybe you are looking for
-
i have one apple id, but the family all have ipods, imac and mac book connected to this account. how do i face time from one device to another?
-
BAPI returns less number of records when called from WebDynpro
Hi, We have a BAPI which updates some tables and then bring back output in the form of a table. When we execute BAPI from R/3 we get all records. When we execute the BAPI using webdynpro, for the same input values, we are always getting 22 records. T
-
My iPod suddenly gave me the above error message even though it is an 80GB system and I have used only 20GB of space at the most. Now, my iPod is not being recogonized on my computer nor iTunes. In addition, I can't get this error message to clear
-
Exchange rate account not defined
While doing F-04 for a particular bank incoming clearing account, I am getting an error saying : exchange rate account not defined for G/L account and currency INR. All the postings in the account are in INR and I have also done settings in OBA1 for
-
G4MX420D-T: No color on video out
Hello I have a G4MX420D-T and it's works nicely (most of the time). When i connect my tv to the videoout i can see the picture allright, but the color is missing. It seems like the signal is convertet into grayscale. Any ideas/solutions???? I haven't