Back

Topic

[KB1170]Using a PcVue Date Time Picker

Tags: Drawing, Library

2 years ago
By HOTE
Options
Print
Applies to:

PcVue 12 onwards


Summary:

A Date and Time Picker is an input field for selecting both a date and a time.This article describes how to deploy a date time picker that has been done exclusively with PcVue native objects and compatible with WebVue.


Details:

To set up the date and time picker, you need to follow the steps below.
1- Create a PcVue project
2- After downloading the attached file, unzip it then paste it in the LIB folder of your project (C:\ARC Informatique\PcVue XX\Usr\XXXXX\LIB)
– If the LIB folder does not exist, create it.2022 10 17 09 53 01 VM Perso Test VMware Workstation 16 Player

3- Open the Application Explorer -> Go to Libraries -> Local Libraries -> Add an existing local library

2022 10 17 09 59 18 VM Perso Test VMware Workstation 16 Player

4- Load the Scada basic program and add it to the PcVue startup:

2022 10 17 10 04 23 VM Perso Test VMware Workstation 16 Player

2022 10 17 10 05 50 VM Perso Test VMware Workstation 16 Player

5- Restart PcVue
6- Open the Application Architect: You have a new templates, you need to instanciate (click and drag) the template « DateTimePicker » -> Generate
– If you want to use two timestamps, you can use the template twice with too different branches:

DateTimePicker Application Architect

7- Create a new mimic and insert DateTimePicker symbol (select the appropriate branch):

DateTimePicker insert symbol

DateTimePicker mimic

  • 1: Select V : to open the date time picker
  • 2: The button < and > to change the month
  • 3: To modify the time
  • 4: To auto select the date time of your machine
  • 5: To validate your selection
  • In case you have created two instances, you can do the same configuration for the end date.

8- The time selected are stored on two text variable for each date time picker:

DateTimePicker Application Explorer

Download attachments:

You will find attached the DateTimePicker library and an example project for DateTimePicker.

Created on: 17 Oct 2022 Last update: 04 Sep 2024