How do you handle page overflow in JustBasic for page heading controls. Is there an indicator set when it reaches bottom of a page?
Related
Need an advice.
It appears that ANY setting of filters on one report -- even something as simple as records per page -- disrupts how other reports appear in a rather buggy looking way.
For example:
Go into my page > some view
Set Page Size to 13 and click Apply.
Now it's showing 13 records per page. BUT this simple setting has now trashed nearly every other pages view, which now only displays those fields that were in the view personalised. Other records are hidden.
What can I do in this case?
Probably a very stupid question from a new bee. I'm looking for a solution to navigation back from a page, not by pressing a navigation button, but from code. So in my case by selecting a table row, I open its detail page:
page.openPage(DetailsPage.class.getName());
This DetailsPage has a delete button that triggers some functionality and requires to close the page at the end of all the delete actions.
When using closeCurrentPage() on this DetailsPage I get this error:
java.lang.IllegalStateException: Can not close top level page.
What is the proper way to close a page/ navigate back to the parent?
Thanks!
Vincent
I am not very experience with Tabris, but I will try to help.
First of all, check if DetailsPage should be configured as a top level page.
If this is indeed your intention then you cannot close this page (because it is an top level page).
To open previous page you need to implement this on your own.
For example:
opening details page
PageData data = new PageData();
data.set( "previousId", getUI().getPageOperator().getCurrentPageId() );
data.set( "previousData", getUI().getPageOperator().getCurrentPageData() );
page.openPage( DetailsPage.class.getName(), data );
Opening previous page from details page
openPage(getData().get( "previousId", String.class ),
getData().get( "previousData", PageData.class ) );
Hope this helps
As mferlan pointed out, top level pages can't be closed. This document may help understanding why: http://developer.eclipsesource.com/tabris/docs/1.3/working/tabris-ui/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have small test to handle bitmap in MFC (VC++ 2008).
I want to process left mouse click or right mouse click on a image to call any event.
(I dont want to calculate coordinates, I only want to handle image as a object and left click, right click on that object)
Anyone know the MFC lib or source code, please help me.
Thanks.
Use a picture control to display the image. The picture control is represented in MFC by CStatic. Since CStatic does not generate the mouse notifications that you want you need to customize it, using the MFC subclassing technique.
First you create a control member variable of type CStatic. Then to add the custom mouse handling that you want you create a class derived from CStatic and add message handlers for all the mouse messages that you are interested in, like WM_LBUTTONDOWN and WM_RBUTTONDOWN. Change your control member variable to be your CStatic-derived class instead of CStatic. Now you are intercepting the mouse messages that come in to the picture control. Write a little code in each message handler to notify the parent dialog/form, like...
#define UWM_LIMAGECLICK (WM_USER+10) // your custom message
GetParent()->PostMessage(UWM_IMAGECLICK, IDC_IMAGE, 0); // your picture control's ID
The parent window can receive and handle this message with
ON_MESSAGE(UWM_LIMAGECLICK, OnLImageClick) // in the message map
LRESULT CYourParentClass::OnLImageClick(WPARAM wParam, LPARAM lParam)
{
....the image was L clicked
return 0;
}
Hi I was wondering which Layout I could use to get the search box in the top right hand corner. I used (Welcome Page) Blank Web Part Page) as the page layout but its missing the search box in the top right corner.
Also another question: How can I add my own layouts to the list in the Create Page, page. Thank you.
The search box is defined in your master page. Ususally default.master, it would not matter which layout you choose the elements defined in the master page will still be in the same place. In your case it would appear that the search box does not exist on your master and would need to be added in again.
You would need to amend the master page for your site and add the appropriate SP control for search into the appropriate place on your page. This will ensure that a SP search box is rendered in that location for every page.
To define your own page layout have a look at Link 1 and Link 2.
As for the search box, it is defined as part of the Site Template. Try creating a Site using the Collaboration Site template.
Any ideas how to stop browsers from forcing focused form fields into view when positioned overflow hidden?
How about moving the offending field off the page (position:absolute;top:-9999;)? That will take it out of view.
If you're wanting the field to appear where you originally put it however you could have a dummy set of fields (taken off the page with top:-9999) and transfer focus to them as the user goes through the form. If you update the fields in view as the dummy fields are changed then you can give the impression the user is manipulating the visible form.