ViewPLUS Appendix

From Mikrodev Documentation
Jump to: navigation, search

Working with Multi-user

It is also possible for multiple users to work on the same project. The ViewPLUS project consists of 2 basic components as mentioned before. Project files and database. A version control application (such as SVN, Clearcase, Git ...) is needed so that project files can be synchronized among different users. The project database is kept on a central server and synchronization is provided if the users configure their projects to use this database.


Synchronization with SVN

A version control tool such as SVN can be used to synchronize project files on different computers, prevent conflicts, and backup historical project versions. ViewPLUS has an integration with SVN.


PgSQL Database Remote Connection

PgSQL does not allow access from the network as a security measure when the database is installed, it only allows connections from localhost. To ensure access to the database of users on the same network, the following steps should be taken:

1) Add an exception to the firewall for the PgSQL port (5432)

2) Add the following line to the pg_hba.conf file:

  host all all 0.0.0.0/0 md5

3) Add the following line to the postgresql.conf file:

  listen_addresses='*'

Date/Time Formatting

These expressions may be used for the date part of the format string:

Expression Output
d the day as number without a leading zero (1 to 31)
dd the day as number with a leading zero (01 to 31)
ddd the abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses QDate::shortDayName().
dddd the long localized day name (e.g. 'Monday' to 'Sunday'). Uses QDate::longDayName().
M the month as number without a leading zero (1-12)
MM the month as number with a leading zero (01-12)
MMM the abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses QDate::shortMonthName().
MMMM the long localized month name (e.g. 'January' to 'December'). Uses QDate::longMonthName().
yy the year as two digit number (00-99)
yyyy the year as four digit number

Note: Unlike the other version of this function, day and month names must be given in the user's local language. It is only possible to use the English names if the user's language is English.

These expressions may be used for the time part of the format string:

Expression Output
h the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)
hh the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)
H the hour without a leading zero (0 to 23, even with AM/PM display)
HH the hour with a leading zero (00 to 23, even with AM/PM display)
m the minute without a leading zero (0 to 59)
mm the minute with a leading zero (00 to 59)
s the second without a leading zero (0 to 59)
ss the second with a leading zero (00 to 59)
z the milliseconds without leading zeroes (0 to 999)
zzz the milliseconds with leading zeroes (000 to 999)
AP or A interpret as an AM/PM time. AP must be either "AM" or "PM".
ap or a Interpret as an AM/PM time. ap must be either "am" or "pm".

Other