Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] Locking panel in a BIP portal
Go
New
Search
Notify
Tools
Reply
  
[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 8201m
App Studio 8201
 
Posts: 141 | Registered: January 06, 2009Reply With QuoteReport 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: 1110 | Location: USA | Registered: January 27, 2015Reply With QuoteReport 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 8201m
App Studio 8201
 
Posts: 141 | Registered: January 06, 2009Reply With QuoteReport 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, 2014Reply With QuoteReport 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 8201m
App Studio 8201
 
Posts: 141 | Registered: January 06, 2009Reply With QuoteReport 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 8201m
App Studio 8201
 
Posts: 141 | Registered: January 06, 2009Reply With QuoteReport 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, 2014Reply With QuoteReport 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 8201m
App Studio 8201
 
Posts: 141 | Registered: January 06, 2009Reply With QuoteReport 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, 2014Reply With QuoteReport 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, 2014Reply With QuoteReport 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, 2014Reply With QuoteReport 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 8201m
App Studio 8201
 
Posts: 141 | Registered: January 06, 2009Reply With QuoteReport 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 8201m
App Studio 8201
 
Posts: 141 | Registered: January 06, 2009Reply With QuoteReport 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, 2014Reply With QuoteReport This Post
Virtuoso
posted Hide Post
-HTMLFORM or bust!


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

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-2018 Information Builders, leaders in enterprise business intelligence.