Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] Locking panel in a BIP portal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-OPENED] Locking panel in a BIP portal
 Login/Join
 
Platinum Member
posted
I have a page that contains a report tree, a widget and lot of canvas space. The idea is that user drags multiple reports on the canvas and leaves them on the canvas for later use. Sometimes, users are dragging reports from tree into the widget panel. Is there a work around (WF or JavaScript) to lock the widget panel alone on the page?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8207.11
App Studio 8207
 
Posts: 146 | Registered: January 06, 2009Report This Post
Virtuoso
posted Hide Post
There are options within the page properties (of the BIP Designer) along the bottom that allow you to lock the page paneling, etc. so people can't manipulate things.

Down in the properties, find the checkboxes for:

- Lock Page
- Prevent Layout Change

Hope one or both accomplishes what you are trying to do.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Platinum Member
posted Hide Post
@CoolGuy – Thank you for your response. I am aware of the Lock Page property. Setting this property will lock all the items on the page. It will disable the option of dragging report on the canvas which, in our case, is an important requirement.


WebFOCUS 8207.11
App Studio 8207
 
Posts: 146 | Registered: January 06, 2009Report This Post
Master
posted Hide Post
Have you tried making the one panel a banner instead? You can have side banners, which is how we did it.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Platinum Member
posted Hide Post
@GavinL– Thank you for your response. I have tried your suggestion. If I add left banner then the banner appears in all the portal pages. I want this feature only on a specific page.


WebFOCUS 8207.11
App Studio 8207
 
Posts: 146 | Registered: January 06, 2009Report This Post
Platinum Member
posted Hide Post
Does anyone know the property on div and iframe that will disable drag and drop? I should be able to identify the ids of the div/iframe that is hosting the widget and disable it using JavaScript. I have tried few but in vain.


WebFOCUS 8207.11
App Studio 8207
 
Posts: 146 | Registered: January 06, 2009Report This Post
Master
posted Hide Post
ondragstart="return false;" ondragenter="return false;" ondragover="return false;" ondrop="return false"

If that doesn't work, you can use jquery.

$(document).ready(function() {
  $('iframe').on('drop', function(event) {
    event.preventDefault();
  });
});



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Platinum Member
posted Hide Post
@GavinL - I have tried setting the properties (ondragstart="return false;" ondragenter="return false;" ondragover="return false;" ondrop="return false"). It did not work. I din't quite get the jquery. Can you give JavaScript equivalent of this function?


WebFOCUS 8207.11
App Studio 8207
 
Posts: 146 | Registered: January 06, 2009Report This Post
Master
posted Hide Post
Try putting a dummy function ondragestart, ondragenter, ondragover, and ondrop.

Hand coded, may have wrong syntax
<script>
function eventfired(o) {
   alert(o);
   return false;
}
</script>

<iframe id=myframe ondragstart="eventfired('ondragstart')" ondragenter="eventfired('ondragenter')" ondragover="eventfired('ondragover')" ondrop="eventfired('ondrop')" src="whereever.htm"></iframe>


See what happens, when you drag over. Might be a security thing.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Master
posted Hide Post
I just did a test on:
http://www.w3schools.com/tags/...html5_ev_ondragstart

I replaced their example:
<div class="droptarget" ondrop="drop(event)" ondragover="allowDrop(event)"></div>

to
<div class="droptarget" ondrop="return false" ondragover="allowDrop(event)"></div>


It works in chrome and IE 11.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Master
posted Hide Post
Also, you asked how to do it in JavaScript..

ondrop="drop(event)"

function drop(event) {
    event.preventDefault();
}



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Platinum Member
posted Hide Post
@GavinL - I am using WF iframe. The only events supported are onfocus and onblur. I did add other events (ondragstart, etc) in the JavaScript area. However, the other events did not work during run time. Frowner


WebFOCUS 8207.11
App Studio 8207
 
Posts: 146 | Registered: January 06, 2009Report This Post
Platinum Member
posted Hide Post
There must be some setting controlling the drop function. This property gets set when we lock the page in the BIP design. I think this setting is checked during the drag and drop. I have tried comparing the source code between the locked and unlocked pages. I am unable to figure out.


WebFOCUS 8207.11
App Studio 8207
 
Posts: 146 | Registered: January 06, 2009Report This Post
Master
posted Hide Post
Not sure I can help you there. That would be one reason I write most of my code, that runs under WF, as my own HTML outside the combines of IBI. It's in a fex, but I use -HTMLFORM a lot in fact. This allows me to use WebFOCUS Synonyms and manipulate how I want it to be and only be limited to HTML5 standards.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Virtuoso
posted Hide Post
-HTMLFORM or bust!


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] Locking panel in a BIP portal

Copyright © 1996-2020 Information Builders