|
Hi all,
I don want to get the path file in the output viewer,I am getting the path file name"Active dataset", can anyone help me to hide that path in the output. its difficult to delete all the time .
thanks all.
Rajesh M S |
|
You can do this via the following OMS command:
OMS /SELECT TEXTS /IF LABELS=['Active Dataset'] /DESTINATION VIEWER=NO. Please note that this will not just hide the message, but it prevent SPSS from adding the message to the viewer. If you want the item in the viewer, but it should be hidden by default, you can do this using an autostart script like Sub Main() Dim objitem As ISpssItem Set objitem = scriptContext.GetOutputItem() objitem.Visible = False End Sub (this should run in SPSS 16 and above) and attach it to any item that you would like to hide by default. Andreas. |
|
In reply to this post by Rajeshms
1) You can set your preferences to hide
text blocks via Edit > Options > Viewer
2) You can use OMS to suppress future text blocks in the Viewer such as the Active dataset item like this. OMS /SELECT TEXTS /DESTINATION VIEWER=NO. Options 1 and 2 will suppress all text blocks. 3) You can run the SPSSINC MODIFY OUTPUT extension command over all the Viewer items to delete this item: SPSSINC MODIFY OUTPUT TEXTS /IF OUTLINETITLE= "Active Dataset" PROCESS=ALL /VISIBILITY VISIBLE=DELETE. MODIFY OUTPUT is installed with the Python Essentials. HTH, Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Rajeshms <[hidden email]> To: [hidden email] Date: 03/14/2012 01:05 AM Subject: [SPSSX-L] Active dataset Sent by: "SPSSX(r) Discussion" <[hidden email]> Hi all, I don want to get the path file in the output viewer,I am getting the path file name"Active dataset", can anyone help me to hide that path in the output. its difficult to delete all the time . thanks all. -- Rajesh M S |
|
In reply to this post by Frank Furter
Andreas is right: /IF LABELS=... would
restrict the hiding to the Active Dataset item.
One thing to watch out for using OMS is that if syntax is run that includes an OMSEND, it will turn off this OMS setting, too. To avoid that, the nested OMS commands would need to include tags and refer to those on OMSEND. The autoscripting approach, though, is more complicated. You cannot attach an autoscript to text blocks, so you would have to set this as a base autoscript, triggered on every output object creation and then use appropriate scripting code to determine whether to hide the object or not. However, there is overhead in invoking an autoscript, so invoking one on every output object will slow things down. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Andreas Voelp <[hidden email]> To: [hidden email] Date: 03/14/2012 03:58 AM Subject: Re: [SPSSX-L] Active dataset Sent by: "SPSSX(r) Discussion" <[hidden email]> You can do this via the following OMS command: OMS /SELECT TEXTS /IF LABELS=['Active Dataset'] /DESTINATION VIEWER=NO. Please note that this will not just hide the message, but it prevent SPSS from adding the message to the viewer. If you want the item in the viewer, but it should be hidden by default, you can do this using an autostart script like Sub Main() Dim objitem As ISpssItem Set objitem = scriptContext.GetOutputItem() objitem.Visible = False End Sub (this should run in SPSS 16 and above) and attach it to any item that you would like to hide by default. Andreas. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Active-dataset-tp5563693p5564060.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
