Spotfire show hide text area

The following is a simple way to hide and show text area controls to allow a more dynamic way to handle input.

One caveat is that the hidden control will still occupy a certain amount of space in the area, hidden or not. Each control needs to be wrapped in a tag that allows using a hide property default to visible. This example only uses a very simple replace scheme to change the area. More advanced solutions using parsing and regular expressions would probably be a better idea in most cases, especially if multiple hidden controls are used.

Skip to main content. By: Per K. Last updated: am Mar 23, Flag as Inappropriate. Table of Contents 1 1. Back to main IronPython scripting page Introduction The following is a simple way to hide and show text area controls to allow a more dynamic way to handle input.

Code Sample Code to replace the visibility property: from Spotfire. Visuals import HtmlTextArea for vis in Document. Visuals: if vis. HtmlContent if 'hidden' in html: vis. Replace 'hidden','visible' else: vis. IronPython script to Bar Chart Colouring. Haven't found what you are looking for? Ask a Question. Set Preferences SET.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Filters in text area is consuming space even if I hide filters. I want to hide entire text area so that I have more space for my visualisations. Text area should be dynamic that if user wants any filters there should be toggle button which helps to open filters and if they don't want then text area should be hidden.

Learn more. How to resize spotfire text area dynamically Ask Question. Asked 3 years, 6 months ago. Active 3 years, 6 months ago. Viewed 2k times. Please provide more info, like the code you tried to achieve your goal. Active Oldest Votes. I recommend using bookmarks to resize the entire text area or use a different design approach if you are doing a guided analysis. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.

spotfire show hide text area

The Overflow How many jobs can be done at home? Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap.

Triage needs to be fixed urgently, and users need to be notified upon….I am running to a wierd issue where i am not able to read the document property control value in javascript. I tried different ways listed below but no luck. I have filters Country, State, City in textarea which should be displayed based on document property control from different data table i.

Here's an example file that shows how to do this. This Question already has a 'Best Answer'. If you believe this answer is better, you must first uncheck the current Best Answer. Skip to main content.

Displaying Text in Text Area based on Property Control

Already tried ways to read property value in JS: 1 document. ElementById 'propertyvalue'. ElementById 'propertyId'. Could be JS or Python scripting way. Flag as Inappropriate. I am literally stuck. Please help. Attachment Size example. It was helpful. Ajey Kumar - Dec 19, - pm Flag as Inappropriate.

Have an Answer? Geographical Map Chart. Property Control that sets both the column value and alias in cross table. How can I reset dropdown in text area when any filter item is changed? I'm really struggling with this seemingly simple question and implementation:.

Haven't found what you are looking for? Ask a Question. Set Preferences SET.I have seen a few examples to show or hide controls but not able to do the same for an entire text area. Text areas seem to be a bit of a pain when it come to taking up space. To make the most of them when you only have a small place it to combine them with the filters you want for the tab as well and not using the filter panel at all.

I generally add a filter panel toggle button in the text area in case the user needs to access more than the commenly used filters. Hi George, I don't think you can 'hide' a text area. You can close it, but then you'd need to recreate it. You could use bookmarks. Have 2 pages, one with the text area and one without and then use bookmarks to switch between them. No API's are available for the Text area.

This Question already has a 'Best Answer'. If you believe this answer is better, you must first uncheck the current Best Answer. Skip to main content.

Text Area Interactive Features Overview for Desktop Client Users

Flag as Inappropriate. Or perhap an annotation that the user could minimise would work. Vidya Sagar - Aug 15, - am Flag as Inappropriate. Thanks, is it possible to have a script that minimizes the text area then?

Like change the size? Have an Answer?

Subscribe to RSS

Is Slider layout possible in Spotfire 6. Haven't found what you are looking for? Ask a Question. Set Preferences SET.A Spotfire Accordion is a vertically stacked list of items, which is often used in a menu or navigational bar. An accordion contains multiple items which can be expanded and collapsed to show or hide the subitems. But the accordion is also used as a way to create shortcuts or to fit more information on one screen by hiding parts of it in an accordion.

Spotfire uses the Accordion within the filtering panel to show or hide filters from a certain data table. However, Spotfire does not have a native way of creating your own Accordion in a text area. Nevertheless, it is possible to create a accordion using the HTML and Javascript functionalities of the text area. After adding a text area you can richtclick the text area and select the HTML editor.

Click on insert JavaScript code. In this step we will use an example for a region selection. You can copy and past the below HTML code in order to create the accordion. Each of these three items has 3 subitems and is divided by a line. However, they have published this community page that documents what to do instead. Here you will find a complete DXP with all the scripts in it you need to create your own accordion.

Want to learn more about Spotfire through our client use cases, handy how-to articles and blog-posts? Click the button below to discover our knowledge. By continuing your visit to this site, you accept the use of cookies.

For more information, to manage or change the settings of cookies on your computer, please read our Privacy Policy. Go to main menu Go to main content Go to search.

spotfire show hide text area

Select your location. Business Intelligence. What is an Accordion? The Accordion in Spotfire Spotfire uses the Accordion within the filtering panel to show or hide filters from a certain data table. Step 3: adding the Accordion In this step we will use an example for a region selection. Tibco Spotfire Knowledge. Share on facebook Share on twitter Share on linkedin Share by e-mail.

Devoteam's shortcuts.This allows us many possibilities to layout and style our Text Area. There are a variety of capabilities that now become possible. In this first basic example, we will see how you can use JavaScript to add a tooltip inside the Text Area. Then you can enter in your JavaScript. We pass in those id values as string parameters, and then we can access them in the JavaScript using document. From there, we can attach the onmouseover and onmouseout events to main DIV tag and add the JavaScript functions that will be executed to hide and show the other DIV tag.

We can start by building an HTML table:. In this example we are adding three Calculated Values. One will just display a Row Count. The other will display the total records from this week, using this expression:.

What is Show/Hide Items?

Next we add our JavaScript. First, we need to access the div tags. We can access each DIV tag individually using the document.

Once we have the DIV object, we can find the value from the Calculated value using the innerText property. Using this, we can add some logic to check the value and color the tiles accordingly.

For example, in the DIV tag where we are displaying the change from last week to this week, we can check if the value is greater than 1 and color it green, and if its 0 we can color it yellow, and if its less than 0 we can color it red.

Finally we can wrap all this code in a JavaScript function and then add a timer using the setInterval function to call that function every 5 seconds. This will mean the colors will update dynamically every 5 seconds based off filtering.

To learn more about using JavaScript inside a Text Area and to see an example of how to use it to generate an accordion style menu, please view our Quick Reference Topic discussing JavaScript.

Support Documentation Community Contact Us. Top 10 Methods for Outlier Detection. All Rights Reserved. Evaluating BI and Analytics Platforms?The text area can only be edited when the Toggle Edit Mode button,in the visualization title bar has been clicked, or, when Edit Text Area has been selected from the pop-up menu.

spotfire show hide text area

When in edit mode, you will see a toolbar at the top of the text area where a number of options are available:. Cuts the selected object from the current position, to be pasted somewhere else. Including images can be very costly to memory, so it is recommended to keep images small. Opens the Insert Web Link dialog where you can type or paste the link to any website which might be of interest for the analysis. You can also use this button to add a mailto link opening a new message in your standard email client, or a tibcospotfire link which links to a different analysis.

Opens a drop-down menu where you can specify a background color to the text area. Allows you to specify a background image for the text area. Click Browse for Background Image Tip: Use your favorite image editor to make the image look the way you want it before adding it to the text area.

Opens the Action Control dialog where you can insert an action link or button which applies a bookmark, switches page or runs a script, etc. Opens the Property Control dialog where you can insert input fields, drop-down lists, list boxes, etc. Allows you to insert a dynamic item a sparklinea calculated valuean iconor a bullet graph into the text area. To change the name of the Text Area, or to show or hide the title bar, right-click on the text area and select Properties.

However, if you edit the HTML for a text area directly it is recommended to continue using this method for any further editing of the text area. The HTML sanitizer is switched on true by default. The Edit HTML dialog will provide you with some information regarding unsupported elements which you will only see in this mode. What is a Guided Analysis? Copies the selected object. Pastes the selected object in the text area. Specifies the font of the text.

Specifies the font size of the text. Sets the selected text to boldface. Sets the selected text to italics. Underlines the selected text.

thoughts on “Spotfire show hide text area”

Leave a Reply

Your email address will not be published. Required fields are marked *