1. Miguel Alzate
  2. PowerBuilder
  3. Saturday, 2 March 2024 21:50 PM UTC

Hi again, everyone out there!

I'm facing this issue: My app creates forms (datawindows) dynamically for entering data. The date fields of the forms are assigned "yes" to the “ddcalendar” property. But, at runtime, the calendar does not display.

To check if I am the culprit, I copy the dynamically generated syntax and paste it in the "Edit Source" of the DW. In the painter It works fine: the calendar does drop down.

Is there a way to work this issue around?

I'm working with PB 2022 R3 Build 3289.

Thanks in advance for any help provided.

John Fauss Accepted Answer Pending Moderation
  1. Saturday, 2 March 2024 23:02 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Miguel - 

There may be one or more additional properties that need to be specified. I suggest you try the following:

1. Save a copy of the dynamically generated DW syntax in a file for diff/comparison purposes.

2. If possible, import that DW syntax to create the DW in a test pbl, then without making any changes to it, export the newly-created DW into a .srd file.

3. Now edit the imported DW, turn the drop-down calendar property for the column off. Save, then export this "modified" DW into a different .srd file.

4. Edit the imported DW, turn the drop-down calendar property for the column on. Save, then, export this DW into a different .srd file.

Run a diff/comparison analysis on the three .srd files created in steps 2, 3, and 4. Hopefully, you will see differences that will give you a clue as what the cause of the issue may be.

Best regards, John

Comment
  1. Miguel Alzate
  2. Sunday, 3 March 2024 16:09 PM UTC
Hi, John. You’re very kind in replying.



I did as you indicated and found these 6 additional ddcalendar properties that I did not include when constructing the dynamic syntax:



editmask.ddcalendar=yes

editmask.ddcal_textcolor=0

editmask.ddcal_backcolor=0

editmask.ddcal_titletextcolor=0

editmask.ddcal_titlebackcolor=0

editmask.ddcal_trailingtextcolor=0



So I included them but, sadly, it didn’t work.



What I finally did was not to use the dynamic DW in my app but, rather, the static one of point 2 in your answer (this is, the one imported into my production libraries from the dynamic syntax with the additional properties mentioned above). Well, when I run the DW in the painter it works fine but not so at runtime (being exactly the same datawindow).



So my guess is this has something to do with runtime components (whichever). Maybe a PB bug to be fixed. What do you think?
  1. Helpful
  1. Andreas Mykonios
  2. Monday, 4 March 2024 09:47 AM UTC
As you describe the issue it seems to be easy reproduceable. If this is the case then open a support ticket (https://www.appeon.com/standardsupport/newbug).

Andreas.
  1. Helpful
  1. Miguel Alzate
  2. Monday, 4 March 2024 14:42 PM UTC
Thanks, Andreas, for being present. I've tryed other secenarios.  Those have yielded fine results. Not sure about what is really happening. Let me see and, maybe, I would change the contents of my post.



  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.