1. Sim Joo Pee
  2. PowerServer 2020 or older (Obsolete)
  3. Friday, 1 November 2019 08:33 AM UTC

Hi Sir or Madam,

  Would like to ask why the pfc ddCalendar always default to 1900-01-01 when doubleclicked.It should display as December 2010.

I checked

of_reset() (pfc_u_calendar),

It didnt run the pfc_n_cst_conversion, of_date, during the validation of date,any idea? Please help. Running out of idea.

id_resetdate = lnv_conv.of_date(ls_date)  

THank you very much.

Sim Joo Pee Accepted Answer Pending Moderation
  1. Monday, 4 November 2019 07:07 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

It work now after i copied the of_date function from pfc_n_cst_conversion and create a new function in pfc_u_calendar, and call this new function of_date_ps, in the of_reset function. See below. Is this the correct way?

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 1 November 2019 16:57 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

FYI...

Attached is the Right Mouse Click Calendar service I created for PBv10.5. It should help you deal with the PFC Calendar.


Olan

Attachments (1)
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 1 November 2019 15:49 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

Hi Sim;

   Have you migrated to the latest PFC version that matches your PB version?

FYI: https://github.com/OpenSourcePFCLibraries

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Monday, 4 November 2019 16:19 PM UTC
Is that from the PFC 2017 download?
  1. Helpful
  1. Sim Joo Pee
  2. Tuesday, 5 November 2019 06:57 AM UTC
Yes, Chris. I even tried it the second time with the link you shared above. And still given same 1900-01-01 on the DDcalendar. Do you have any comments if i added a new function in pfc_u_calendar, and call this new function of_date_ps, in the of_reset function. (See above my comments) Thank you. Please advice.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 5 November 2019 16:46 PM UTC
Hi Sim;

Sounds like it could all be a PFC issue maybe (wow v12.5.1 ... hmmm). Could be something simple like just "tweaking" some PFC code to align with the newer PB versions. Unfortunately, the PFC was open sourced in PB v10.0 by Sybase and thus, not within the realm of Appeon today to refactor any of it's code-line.

I would suggest that you report this issue to the PFC group at: https://github.com/OpenSourcePFCLibraries. However, I do not see any area on their website to report, track & discuss PFC short-comings. Maybe you just need to "sign-in" to see those options.

HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Friday, 1 November 2019 09:25 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 4

Hi Sim,

what do you mean with "It didnt run the pfc_n_cst_conversion, of_date, during the validation of date"?

Check whether id_resetdate contains the correct date or is null before it is checked.

Maybe the validation of ls_date variable failed before. I guess that the Powerbuilder may not convert date format you use.

 

HTH,

René

Comment
  1. Sim Joo Pee
  2. Monday, 4 November 2019 03:29 AM UTC
It will call function of_date in pfc_n_cst_conversion.

Eg: id_resetdate = lnv_conv.of_date(ls_date)

ls_date passed in format is 2010-12-18 00:00:00



Return me, id_resetdate as 1900-01-01



I added a messagebox at pfc_n_cst_conversion, of_date, it doesnt pop/display. Look like not calling this function at all.
  1. Helpful
  1. René Ullrich
  2. Monday, 4 November 2019 06:25 AM UTC
Maybe the function of_date in pfc_n_cst_conversion service is overwritten in the extension (n_cst_conversion) or in a corporate layer (if you have)?

Have you tried a full rebuild?

At least you ma try to run you application using PBDEBUG. So you can see what lines are calling.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.