Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Scripting for the Save Dialog
Ralf
Trying to transfer an existing worksite 7 installation I need to get dynamically generated information to the WS 8 Profile. in WS7 the nrs scripts generated the Information about a used template and added it to the ProfileMask. Has someone an idea how to get script generated profile information without forcing the user to use the details -profilemask where the nrs run again?
Find more posts tagged with
Comments
jny
Could you break down your question a bit? I'd like to understand it better. Perhaps, you may describe it iin a use case scenario. Thanks.
Ralf
ok. e.g. to fill a field (custom4) with the type of the used template, the newprofile.nrs was used in worksite7. This worked fine because the dialog allways showed up. With WS8 it still works fine, but only if the Details in the Save Dialog is opened!
So here is the question again. Is there a way to automtically fill profile field at the time of opening the Save As Dialog?
jny
You should use filesave.nrs.
[filesave.nrs]
=================================
Option Explicit
Const nrCustom4=28
Sub IManFileSaveCmd_OnInitDialog(dlg)
'MsgBox "IManFileSaveCmd_OnInitDialog is fired."
End Sub
Sub IManFileSaveCmd_PreOnOK(dlg)
'MsgBox "IManFileSaveCmd_PreOnOK is fired."
End Sub
Sub IManFileSaveCmd_PostOnOK(dlg)
'MsgBox "IManFileSaveCmd_PostOnOK is fired."
End Sub
Sub IManFileSaveCmd_OnCancel(dlg)
'MsgBox "IManFileSaveCmd_OnCancel is fired."
End Sub
Sub IManFileSaveDlg_OnOK(dlg)
'MsgBox "IManFileSaveDlg_OnOK is fired."
End Sub
Sub IManFileSaveDlg_OnCancel(dlg)
'MsgBox "IManFileSaveDlg_OnCancel is fired."
End Sub
Sub IManFileSaveDlg_OnChange(dlg, id)
If id=nrCustom4 Then
dlg.SetAttributeValueByID id, "<some_value>"l, true
End If
End Sub
Ralf
Wasn't aware of the existence of this nrs.
Thank you!