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
October 05, 2015, 10:03 AM
CoolGuy
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.
October 05, 2015, 10:19 AM
WFConsultant
@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
October 05, 2015, 10:24 AM
GavinL
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
October 05, 2015, 11:15 AM
WFConsultant
@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
October 05, 2015, 11:21 AM
WFConsultant
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.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
October 08, 2015, 03:28 PM
WFConsultant
@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
October 08, 2015, 03:50 PM
GavinL
Try putting a dummy function ondragestart, ondragenter, ondragover, and ondrop.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
October 08, 2015, 03:58 PM
GavinL
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
October 08, 2015, 04:03 PM
WFConsultant
@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.
WebFOCUS 8207.11 App Studio 8207
October 08, 2015, 04:10 PM
WFConsultant
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
October 08, 2015, 04:11 PM
GavinL
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
October 08, 2015, 04:37 PM
CoolGuy
-HTMLFORM or bust!
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.