Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between Dates / Entity Framework Core 3.1

1495799May 30 2020 — edited Jul 21 2020

Hello,

I have an exception when I try to get the difference between two dates (in Days) with the new Oracle.EntityFrameworkCore 3.19.0-beta1 NuGet package :

var row = (

        from r in dbContext.Entitites

        select new { (DateTime.Now - r.DateTimeColumn).Days }

    ).FirstOrDefault();

System.InvalidCastException: 'Specified cast is not valid.'

   at Oracle.ManagedDataAccess.Client.OracleDataReader.GetDecimal(Int32 i)

   at Oracle.ManagedDataAccess.Client.OracleDataReader.GetValue(Int32 i)

   at System.Data.Common.DbDataReader.GetFieldValue[T](Int32 ordinal)

This post has been answered by 1495799 on Aug 5 2021
Jump to Answer

Comments

USER1211

Do it your Data Form Design.

Have column with the entity,scenario and the year members then have another column with the other entity,scenario and the other year members.

Once you got the clarity you needed remember to mark the thread as answered so members can focus on unanswered questions.

Did Your Question Get Answered in My Oracle Support Community (Doc ID 1180503.1)

3235756

I want that the column of "entity" dimension (1101, 1218) shows only once like this example:

pastedImage_3.png

If I create some columns, the entity repeats. For my example, the column 1101, I want that shows once and now Entity shows 3 times:

pastedImage_0.png

pastedImage_1.png

Further, I don't want to view all years and all scenarios. There are these situations:

  • FY16 and FY15 for "Presupuesto" Scenario
  • Only FY15 for "Real" Scenario
  • Only FY14 for "Presupuesto" Scenario
JohnGoodwin
Answer

You may not get it exactly how you want it but here is an example similar to yours.

pastedImage_1.png

pastedImage_0.png

Marked as Answer by 3235756 · Sep 27 2020
3235756

Thanks, this option tried, but the problem is that I have a lot of members entity (sales east, international sales).

I wanted to know if PBCS had a option to avoid: add entity by entity in the form, and not repeat the member in the view (for example, "sales east" displays in two columns).

At the moment, I will use this option

AL.

Hello,

From my point of view, it seems like you need a report instead of a webform.

Finnancial reporting studio gives you many more posiblities regarding the design and display options. You can merge cells, asign colours or even change the writing font...

Best Regards,

3235756

Thanks, I going to explorer "Finnancial reporting studio" option.

JohnGoodwin

You can only customise the form with the options that are available, as I said it may not always be exactly the format you are looking for.

There are many different ways of doing things you could have entity in the page and then with security the user will just enter data for the entity they have access permissions against.

Also it depends if this is a data entry form or a report which as suggested could be done through FR if it is.

1 - 7

Post Details

Added on May 30 2020
12 comments
3,392 views