1. Giuseppe moglia
  2. PowerBuilder
  3. Tuesday, 9 July 2019 08:46 AM UTC

Hi Guys

how can I manage the same pb application on different regional settings at the same time, so with different decimal separator and different date format for different users?

Any hints?

 

thanks in advance

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 9 July 2019 09:02 AM UTC
  2. PowerBuilder
  3. # 1

The settings being used are the language windows settings for the windows user. So if every user of your application would enter using a his own windows user, problem solved.

Now if you don't want that (no separate windows users), things are going to get complicated. You could (temporarily) modify the registry settings when opening up your application, but keep in mind that that would affect any other applications running at the same time, so that's probably a "no no". 

regards,

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 9 July 2019 17:19 PM UTC
  2. PowerBuilder
  3. # 2

Another option is an optional popup window from the frame.

When the user logs on they get the default language, say "French".
There is a menu option that is labeles something like "Language Settings". If the user selects that menu option the popup is displayed and lists the various languages available.

The user sets their selection.
The app saves the settings in the Registry or in an INI file.
The next time the user logs in, the INI/Registry is read and the selected values become the default.


Olan

Comment
There are no comments made yet.
Giuseppe moglia Accepted Answer Pending Moderation
  1. Friday, 6 December 2019 17:20 PM UTC
  2. PowerBuilder
  3. # 3

Thank you Guys

my question is how can I manage datetime fields or comma separated fields with the same app but with different regional settings?

For instance 1 December 2018 is:

01/12/2018 with Italian Regional Settings 

and

12/1/2018 with US regional Settings...and so on

Comment
  1. Miguel Leeuwe
  2. Saturday, 7 December 2019 04:06 AM UTC
Hi Guiseppe,

You'll have to be more specific. "When" do you want to set the different settings?

Before running the app?

While running the app?

Within same script multiple times?

A small sample application might give us a clue of what you want to do.

What about the answers you got so far?

regards,

MiguelL
  1. Helpful
  1. Miguel Leeuwe
  2. Saturday, 7 December 2019 06:47 AM UTC
Ah, ok, I think you want to show data in a datawindow, based upon a setting, so ... within the same app, within a same script, but based on some setting which can vary.

Which database are you on?
  1. Helpful
  1. Miguel Leeuwe
  2. Saturday, 7 December 2019 07:34 AM UTC
Or ... maybe you want to import data, since you speak of "manage datetime fields OR comma separated fields" which might be "manage datetime fields OF comma separated fields" ?

Please explain
  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.