Sign in to follow this  
Gammatech

DateTime component on popup pages

Recommended Posts

I have a page with a DateTime component set to display date only. By default the value is loaded from SysTime so shows the current day.

When the Date is edited (Thus setting ShiftTimeSeek) and a button labeled "Seek" is pressed then a sequence such as:

While(ShiftMassFinal.Time[index] > ShiftTimeSeek)

Index = Index + 1

EndWhile

Finds the data for that day and will display it using a number of VariableValue components that are loaded with for example ShiftMassFinal[index].

There are also two buttons on the page that increment or decrement the index to the data directly but these will only scroll through the data one element at a time, so it is to be preferred to edit the DateTime component to close in on the shift (up to 3 shifts per day) required.

This works well!

If the page is displayed as PopUpModeless (so that the main page remains available on screen and this page pops up) the DateTime component will not edit although the buttons scroll through the data. If the page is displayed as PopUpModal then the page displays for a fraction of a second only.

How can I pop up the page but still have editing capability for the date of the shift?

Thanks,

Gammatech

Share this post


Link to post
Share on other sites

Possibly not. The datetime control is actually a windows control and so can do some fluky things depending on your computer. There is not much we can do about it until release 6 when we move to native controls.

Share this post


Link to post
Share on other sites

Ok, I'll have to wait for V6, some time in the summer of this year I think?

In the mean time, Is there a simple way I could place or activate the DateTime component, six buttons, and twelve variable value components onto the area of the main page that the popup was going to overlay? There are potentially half a dozen similar sized groups of components that are currently on their own pages (ready to popup). If I put them all on the main page but set visible to zero for each its a wedge of code to make each member of the group visible and a bit of a nightmare editing the layout of the area with many invisible components lurking in the area. Is there a sort of block copy or move so I could bring in the whole set all at once?

Regards

Share this post


Link to post
Share on other sites

Well, you could put them all in a group, then name the group. Then if you moved the group, all the components inside would move as well. I would actually move the group instead of just making it invisible, that way they wouldn't be "lurking", but instead would be off the screen. Just move them to some big negative X coordinate.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this