Set :system.current_datatime
Hi !
1. The :system.current_datetime, display current date & time in this formate: DD-MON-YYYY HH24:MM:SS.
2. I want to display time not in 24 hr mode, but in 12 hr mode.
Thanks!
Regards!
I don't think that you can set a system variable.
You can assign it to a parameter into your form and then display time in your favourite format.
Hope it helps you,
Fabrizio
If this answer is helpful or correct, please mark it. Thanks.
Similar Messages
-
Is their a way to set system property in weblogic console
Hi WL USERS
Is their a way to set system property in weblogic console ie (http://localhost:8080/console) ? if yes, can we access that property in code using System.getProperty()?
Regards
vishyYes, It is Possible.
Please check the Option-1). Mention in the Following Link: http://weblogic-wonders.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
Here i tried to set a Custom Property "*-Duser.dir=E:/MyDirectory*" through the Admin Console.
NOTE: Setting any Option like JAVA_OPTIONS/CLASSPATh etc through Admin Console will work only when you start your Servers using the NodeManager. It means when you start your ManagedServers through AdminConsole...or Using nodeManager based WLST scripts.
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic/ (WebLogic Wonders Are Here) -
Error 15 with CLFN in nisyscfg.lvlib:Set System Image
Recently upgraded to LV 2012 and code that worked for imaging cRIOs in LV 2011 had to be replaced with the new and improved nisyscfg.lvlib VIs: Set System Image, Get System Image, etc,...
I'm receiving the following error message when my installed executable attempts to image a cRIO: 'Error 15 occurred at Call Library Function Node in nisyscfg.lvlib: Set System Image (Folder).vi:1->nisyscfg.lvlib: Set System Image (File).vi:1->GetSetSystemImage.vi'. The possible reason(s) displays: 'LabVIEW: Resource not found.'
What installation packages/products are required for the system configuration VIs? I'm including NISysCfg_Runtime and NISysAPI_Framework.
Thanks for your time.
Solved!
Go to Solution.I think I've solved part of the problem. Now I'm getting 'Error -2147220364 occurred at nisyscfg.lvlib: Set System Image (Folder).vi:1' with possible reason(s): 'NI System Configuration: (Hex 0x80040474) Command is not supported by given protocol.'
-
Setting system level deployment.user.cachedir in deployment.config
G'day,
I've been experimenting with JRE 1.5.0_04 on Windows XP.
By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deployment\cache.
I have managed this as follows.
C:\Windows\Sun\Java\Deployment\deployment.config contains:
deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.propertiesand C:\Windows\Sun\Java\Deployment\deployment.properties contains:
deployment.user.cachedir=$USER_HOME\\..\\..\\..\\..\\Local Settings\\Application Data\\Sun\\Java\\Deployment\\cacheThis works but is ugly. The problem is that $USER_HOME=<user home>\Application Data\Sun\Java\Deployment. It seems that $USER_HOME and $JRE_HOME are the only two variables for use in deployment properties. Are there any others, in particular, one that mirrors the user's actual home directory?
Thanks,
Chris.G'day,
Open the Java Console and execute "dump system and
deployment properties" which shows property values,
and see if what you want is there.Thanks, but I don't think I can use these at the system level, can I?
I did try using ${user.home} but that doesn't work.
So, are there any variables other than $USER_HOME and $JRE_HOME that can be used when setting system level properties?
More info, http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
Thanks,
Chris. -
W2K8 & Win7 - Setting system-wide Trusted file locations not working
Win 2008 Network, Win 7 workstations.
RE: Setting system-wide trusted file locations
I have an application using Flash stored on a network location that accesses other files in the same location. This causes the security warning "The following local application... is trying to communicate with this internet-enabled..." I can add the location to the trusted sites in the Setting Manager and the warning goes away. It is not practical however to do this on every machine on the network. I have tried the FlashPlayerTrust directory and mms.cfg file and neither of these seem to work. Is there a trick to getting the FlashPlayerTrust directory to work properly. If I could get this working, I could create a script that copies this file to all machines on the network.
Any help you be greatly appreciated.Hi Todd,
Can you please provide just a little more detail?
* When you say "accessess", what API is being used? Are the paths to the other files relative, file: URI http: URI, other?
* In the FlashPlayerTrust directory, are you using the same path notation as appears in the Settings Manager? What's a sample {filename}.{ext} being used?
Thanks!
-Erica -
How do I set System properties within WL6.0?
I am setting WL6.0 up to have a startup class, but this class needs to
read system properties which have not yet been set. How do I set these
up within weblogic? I was able to get the startup class set up, but it
needs these system properties to continue.
gmoCorrect on all points. The one advantage of doing this in java is that you can more easily do more
complex things like accessing configuration information from a remote data store (like a database).
Dimitri Rakitine wrote:
These are not needed if you simply replace java ...lots of options... weblogic.Server with
java ...lots of options... startmyWLS in the script which starts WebLogic, but, on the other
hand, this solution is no different from simply adding -DmyProperty=myValue to the startup script
(I think that the ultimate goal is the ability to deploy(and redeploy!) components,
without any mods to the particular vendor's startup scripts of anything of that nature).
Kumar Allamraju <[email protected]> wrote:
Thanks to robert for a quick workaround..
I tried to start the WLS with the following piece of code and actually i need to set
some additional properties
for successful server startup.
Here it is
import java.util.Properties;
public class startmyWLS
public static void main(String[] args)
Properties props = System.getProperties();
props.put("myProperty", "myValue");
props.put("bea.home", "E:\\bea");
props.put("weblogic.Domain", "mydomain");
props.put("weblogic.Name", "myserver");
props.put("java.security.policy",
"E:\\bea\\wlserver6.0\\lib\\weblogic.policy");
System.setProperties(props);
weblogic.Server.main(args);
Make sure you run this from E:\bea\wlserver6.0., as it tries to read config.xml
config\[your-domain-name] from this
directory.
Kumar
Robert Patrick wrote:
import java.util.Properties;
public class StartMyWebLogicServer
public static void main(String[] args)
Properties props = System.getProperties();
props.put("myProperty", "myValue")
System.setProperties(props);
weblogic.Server.main(args);
gmo wrote:
That won't work since it has to be 'outside' of the code. It's a service, and
services are started when weblogic is started up, not when I call a bean.
And it has to be dynamic, since the properties will vary on evry installation.
Robert Patrick wrote:
You can also use System.setProperty() or a combination of
System.getProperties() followed by a System.setProperties()...
gmo wrote:
They are not normal system properties. I'm using some open source code, and
it requires settings to be system properties, but they are specific to the
application, which means that they are not already in the system
properties. I know how to get them, and after some more research, you can
set them on the command line when starting up weblogic. However, is this
the best way to set system properties?
Robert Patrick wrote:
What "system properties" are you trying to find?
gmo wrote:
I am setting WL6.0 up to have a startup class, but this class needs to
read system properties which have not yet been set. How do I set these
up within weblogic? I was able to get the startup class set up, but it
needs these system properties to continue.
gmo
Dimitri -
Set system time to myrio programmatically synchrinized with GPS
Hello,
I have succesfully connected the PMOD GPS to my RIO and i extract the time and date string from the NMEA sentence in the following format:
Time: HH:MMS
Date: DD/MM/YY
I would like to synchronize myrio system time to the GPS time. I have tried to use the nisyscfglvlib: Set Time.vi. For test purposes i try to set the time using a time stamp constant like the attached picture. However, when i run this code i get the following error. Where i can find this library and how do i add it to myrio? I
LabVIEW: Failed to load shared library nisyscfg.*:nisyscfg_lv_sysapiPropertySetString:C . Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target.
LabVIEW: Failed to load shared library nisyscfg.*:nisyscfg_lv_rmcfgPropertyGetItem:C . Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target.
Is there another way to set the time of myrio programmatically?
Thank you,
Christos
Attachments:
set system time.JPG 14 KBHi ckyamaha,
Below is an example on how to set a real time system's time using the System Configuration API.
https://decibel.ni.com/content/docs/DOC-20082
It sounds like you may need to include the library on your myRIO when you configure it in NI-MAX. If you haven't already installed the System Configuration API, you can do so from this link: https://decibel.ni.com/content/docs/DOC-13216
You can add the library to your myRIO in the Add/Remove Software menu in NI-MAX. Instructions for installing software using NI-MAX can be found here: http://zone.ni.com/reference/en-XX/help/373925A-01/myriohelp/myrio_advanced_config/
Regards,
Kelly B.
Applications Engineering
National Instruments -
Synchronize system time and set system time zone in SAP
Hi,
How to Synchronize system time and set system time zone in any SAP system?Nabarun -
Setting of the system time may be different depending on your enviroment and systems. (Windows, AIX, etc)
Windows enviroment you can use a time server or net time command, I believe its simialr with UNIX but I do not know that command.
Setting the time zone in SAP is done through the IMG in client 000. You can get there with transaction SPRO.
Once in the IMG, navigate to:
SAP Netweaver
General settings
Time Zones
Maintain Time Zones (here you can define the time zone settings/rules)
Then go to:
SAP Netweaver
General settings
Time Zones
Maintain System Settings
There you can change the time zones for the system.
Hope this helps.
Regards,
Zecher -
What is " set system highability enable" of command 6509(Catos)
system is cat 6509 (Two sup, Two MSFC)
two supervisors is runnging
i am saw config " set system highability enable" of cat6509"
generally when catos image is upgrade,
set system highability function must disable bye cisco homepage
why is disable highability?
i would like to know function " set system highability enable"Hi Yeundu,
The High Availability software feature of Cisco Catalyst OS further enhances the Cisco Catalyst 6500 Series hardware redundancy by also providing protocol redundancy. This feature includes stateful protocol redundancy and image versioning
The stateful supervisor switchover is when the switchover time from the active to the standby supervisor is reduced to less than three seconds. This reduced downtime is achieved by synchronizing many of the Layer 2, Layer 3, and Layer 4 protocols1 between the active and standby supervisor engines and is called maintaining protocol state
Have a look at this link it will give you a very clear picture fo this feature
http://www.cisco.com/en/US/partner/products/hw/switches/ps708/products_white_paper09186a0080088874.shtml#wp42722
HTH
Ankur -
FormsPersonalization : HOW-TO set :SYSTEM.MESSAGE_LEVEL
Setting SYSTEM.MESSAGE_LEVEL within Forms is useful when you don't need to display some informative msgs. Does someone know how to do it with a Forms Personalization ? TIA.
Hi
Did you get to know how this is done ? I have the same issue -
Set system wide default mailto url
I'm trying to configure system wide settings in linux so any new user will apply for this settings.
I want register my zimbra server with mailto links.
I've found some information here:
http://www.zimbra.com/forums/general-questions/48547-how-control-mailto-selection-firefox.html
but this must be performed by the user and I want to be preconfigured.
I also tried to play with mimeTypes.rdf, but it seems that there's no system wide mimetypes file. is just created when users changes something.
how can I setup that setting system wide?I've found a partial solution.
create an application file, for example '''/usr/share/applications/zimbra.desktop''' with this content:
[Desktop Entry]
Icon=mail-message-new
MimeType=x-scheme-handler/mailto;
Name=Zimbra
Comment=Zimbra
Exec=xdg-open https://my.zimbraserver.com/zimbra/?view=compose&to=%u
Type=Application
X-XFCE-MimeType=x-scheme-handler/mailto;
then modify file '''/etc/gnome/defaults.list''', find and substitute '''x-scheme-handler/mailto''' with filename you just created:
''x-scheme-handler/mailto=zimbra.desktop''
the caveat is only works with unity, if you use another wm probably won't work -
Set System Image (File) Error 1097
We have a built up PXI Chassis with RT OS running on it. I used Get System Image (File).vi to grab the contents of the hard drive into a Zip file.
I then have a LabVIEW project which builds our software into a startup.rtexe and the associated folders. The PXI Chassis DIP switches are set up correct to launch the startup.rtexe.
The System.zip file is unpacked and the project files are inserted into it. The directory is then re-zipped to a new Zip file.
I have a VI which deploys the new Zip file image (basically it runs on a PC connected to PXI Chassis via Ethernet). It checks that PXI Chassis software has not been deployed or is a different version and uses Set System Image (File).vi to deploy the image.
If I run it on a different but identical PXI rack (chassis number is initially different), the zip file appears to deploy correctly. The PXI Chassis reboots and launches our software. Problem is “Set System Image (File).vi” always errors on exiting with a 1097 error.
In addition the image was created from a PXI Chassis numbered 2. The PXI Chassis I deploying to was initially configured as chassis number 1 (viewed in NI MAX). After deployment it remains as “Chassis 1”. If I change it to “Chassis 2” in NI MAX and then run the deployment, it reverts back to “Chassis 1”. However I would have thought it would change based on the content of the Zip file?
Any ideas why the VI is throwing an error?
Christopher Povey
Senior Test Systems Engineer for BAE Systems.LanxiZ wrote:
Good Morning Chris,
There are several possible reasons that can cause the error you are seeing:
1. There is some problem with your code, below is a good example on how to get/set system image from a RT controller:
"Get/Set Images From RT Controllers Using System Configuration API":
https://decibel.ni.com/content/docs/DOC-34955
2. Does this problem only happen when you deploy from the PXI chassis 2? everything works fine with the PC?
I look forward to your reply.
Thank you.
Lanxi
1. I have seen that page, but I cannot open that example as it is for LabVIEW 2013. I am running LabVIEW 2012. I have seen and implemented something similar to the built in examples in LabVIEW 2012 though.
2. The deployment is not from a PXI chassis. It is too one. The deployment is performed from a rack mounted Windows XP PC. It is connected to a PXI Chassis via Ethernet.
Once the Set System Image (File) has completed (with the error), the PXI Chassis is up and running and I can see it is running my software successfully (I output test text to the PXI Chassis' monitor). I can also call stub VI's on the rack mounted Windows XP PC which in turn connects too and runs the remote VI's successfully.
I think I need to try the deployment on the original source of the System Image and see if it also errors.
Thanks.
Christopher Povey
Senior Test Systems Engineer for BAE Systems. -
WVC54GCA Error: Unable to set system configuration
I logged in as administrator into the WVC54GCA website.
When I try to Disable theled, I get an error message popup box, saying "Error: Unable to set system configuration".
This same message also appears when I try to enter a "Description" for the camera.
Both of these settings are part of the Basic Setup of the camera'a web site.
Does anyone know the solution to this problem?
Thanks in advance,
Ervarings DeskundigeTry to use another computer,login into the Camera setup page and try to disable the LED operation..If that does not work then,reset the camera and re-configure it.
-
Hi Gurus !!
I want to set system status APNG when created (or converted) process order , even if master data is correct...
After that, I want to use function read master data to obtain APG status , and then I will be able to release the process order...
Hope you can help me,
Regards
PhilippeHi Philippe
I would recommend to create a customer own status for example Z1 and define this status is set as initial status.
You need to define this status is allowing reread master data and function reread master data will unset this status.
Transaction BS02 to create a customer own status profil, assign it to order in customizing.
BR Sabine -
Is contextInitialized() blocked from setting System properties?
A certain 3rd party app we're using within a web app requires a specific System
property be set. Since it's a local path, we'd like to shy away from hardcoding
a -D into the startup script, and instead do it via a ServletContextListener and
set the property within contextInitialized(). In WL7.0sp2, it seems to hit the
line in our listener where it tries to set a System property, and nothing happens.
It doesn't seem to throw an exception, write anything to the console, nothing.
Is there a security setting that blocks contextInitialized() methods from setting
System properties? Is it a WL thing, or maybe a servlet spec thing? It works
if we use a dummy servlet set to pre-load, where we set the System property in
the servlet's init() method, but that's a little tackier than doing it in one
single context init listener.Turns out the context-param that I was trying to use as the value of the System
property was null. When it sets a non-null value, it works. But apparently when
the value of the System property is null, you get the weird behaviour described
below: it's as if the tread just stops. I tried setting a breakpoint and stepping
through, but it immediately went into weblogic security and threading classes
and never returned. So now I'll have a new question about when context-params
load during deployment, but I'll post that separately.
"Mark Griffith" <[email protected]> wrote:
I don't know of any restriction. Your saying it never sets it? The
app
deploys but it is not there in the system properites?
Have you tried setting a break point and stepping?
Very strange.
mbg
"dave thompson" <[email protected]> wrote in message
news:3ecac0f8$[email protected]..
A certain 3rd party app we're using within a web app requires a specificSystem
property be set. Since it's a local path, we'd like to shy away fromhardcoding
a -D into the startup script, and instead do it via aServletContextListener and
set the property within contextInitialized(). In WL7.0sp2, it seemsto
hit the
line in our listener where it tries to set a System property, and nothinghappens.
It doesn't seem to throw an exception, write anything to the console,nothing.
Is there a security setting that blocks contextInitialized() methodsfrom
setting
System properties? Is it a WL thing, or maybe a servlet spec thing?It
works
if we use a dummy servlet set to pre-load, where we set the Systemproperty in
the servlet's init() method, but that's a little tackier than doingit in
one
single context init listener.
Maybe you are looking for
-
Project Server 2013 - This webpart was unable to load
Hi all, I am getting the following error in project server 2013 project sites: This webpart was unable to load. For more information, please contact your server administrator. <Guid> I only get this error message on 'Project Summary Web Part'. Any id
-
Hello! Is it possible to assign MIDI controller CC assignments in a way that will allow me to control the following Logic MIDI instrument parameters via knobs on my MIDI controller? I would love to have control over the following parameters with what
-
Dear All, Iam facing the problem in BDC Program..the code is.. LOOP AT IT_RECORD. perform bdc_dynpro using 'SAPMF05A' '0300'. perform bdc_field using 'BDC_CURSOR' 'RF05A-NEWKO'. perform bdc_field using 'BDC_OKCODE' '/00
-
Potential problem when using a template
Hi, I am fairly new to dreamweaver and I have created a template for my website, I am now using that template to produce a number of other pages. When I come to save it I save it as a new file,it is saving as a HTM file rather than a HTML file, is th
-
emctl star error When I start EM using emctl star I get following message: C:\ora9ias\dcm\bin>emctl start Warning: Error reading transaction-log file (/C:/ora9ias/sysman/j2ee/persistence/transaction.state) for recovery: premature end of file Forced o