Switching between tabs in android - android-widget

Hi I Have 3 tabs in one sceen..
first tab:some edittext fields with some data in disable mode.initially only one button will be there ie "edit",when u click "edit" then fields will change to editable mode.and "save","cancel" buttons will come.
My Requirment:if we change data in edittext fields and if u are trying to change tab I should display an alert box saying that "do u want to save data?"
can any one tell how can i achive this?
thanks in advance

Just implement OnTabChangeListner in main activity and in this check whether edit text is in editable mode.u can check it by using a flag. set flag when user press on edit button. if flag is true then show alert.

Related

Nattable - ButtonPainter on cell is going on edit mode on click ,

i am trying to follow class Rendereing_a_cell_as_a_button
https://github.com/eclipse/nebula.widgets.nattable/blob/master/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/examples/_102_Configuration/Rendering_cells_as_a_link_and_button.java
from Nattable example to create similar button , i have copied same example code.
Button is showing on the desired column, but on click the style is not getting change of button like clicked and also listener is not getting called, it is going to edit mode and showing the content of cell.
Before Click
After click
If your table also supports editing you need to ensure that cells in the column that shows buttons should be not editable. This can be done by registering an IEditableRule#NEVER_EDITABLE for that column.

How to only remove the default button Close in Fom StatusBar?

how to remove the only Button close (default button) in the Form , in Dynamics AX-2012?
This button is located on the lower right , named "Close"
But I don't want to remove all others informations in StatusBar.
Thanks,
enjoy!
The "Close" button is part of a status bar on a form.
Change StatusBarStyle property of the form Design to SimpleWithoutClose value.
Update:
It seems like there is no option to remove the "Close" button without leaving all other parts of "Full" status bar style.

Ms access form: field order

can I somehow set in what order the text fields become active after pressing the "Tab" button?
I think it depends on when you added the field and not where it is in the form. So can I change this or I should add the fields in the order I want to switch them with the "Tab" button?
Thanks!
There are at least a couple of ways to change tab order.
With the form in design view, right click on an area of the form without a control. On the context menu that appears, click on Tab Order. A dialog will open that will allow you to change the tab order.
Another method is via the property sheet for each control. On the Other tab there is a property for Tab Order. Just set it to whatever you like.

UITextView Copy option not showing in top iPhone app?

Am working in message based iPhone app. I have added UITextView to show the messages typed by the user. This app allows the user to copy the messages. Whenever the user selects the messages in the bubbles the Copy option showing in middle of UITextView. How to show the Copy option in Top of the TextView?
Can anyone please help me to solve this issue? Thanks in advance.
Gopinath, this is in-built. You cannot change the default behavior. One option could be to write your own custom TextView which would show the copy option at the top. A workaround could be this:
Just let the user select the text (disable showing 'copy' in the UITextView)
You add a button at the top of the bubble
When the user selects the text & clicks on your UIButton 'copy', then copy whatever is the selection programmatically in your own method.

Option Button hook in ClearQuest

I'm trying to set a text field to display text when a group of two option buttons is set to Yes. (They are Yes and No radio buttons). I have them set so when checked, the value is 1.
When Yes is selected, text is supposed to be visible in the text field. When No is selected, I would like for the field to be blank.
Right now, when I run the test database, check Yes, and save the radio button looks like it's saving the Yes, but then reverts to having No checked.
I'm writing my hook in Perl. So far I have this in the Value Changed hook for the Yes radio button:
my $checked = $entity->GetFieldValue($fieldname)->GetValue();
if($checked eq "1"){
my $setCharge = " This text when check Yes!";
$entity->SetFieldValue("name_of_text_field", $setCharge);
}
the radio buttons are both SHORT_STRING as is probably evident by my string comparison.
I've tried setting the other radio button to 0 just to make sure it's not checked, but that seems redundant since only one radio button can be selected. I've tried writing a hook for the no Value Changed, but that didn't work either.
Ideas?