In Sencha-touch, how can I make a form popup when a user clicks on an item in a list? - sencha-touch

In Sencha-touch, how can I make a form popup when a user clicks on an item in a list?

I would attach a listener to the 'itemtap' or 'itemdoubletap' events within your Ext.List instance which triggers the display of your form. That's off the top of my head as I haven't touched (rimshot) Sencha Touch since before it came out of beta.
http://dev.sencha.com/deploy/touch/docs/?class=Ext.List

You might want to explore disclosures, which place an arrow on the list item for the user to click, or as Wilhelm says, attach to a regular tap or selection event.
For 'modal' popups, simply create a panel with floating:true. See the docs at http://dev.sencha.com/deploy/touch/docs/?class=Ext.Panel and the examples in the User Interface / Overlays section of http://dev.sencha.com/deploy/touch/examples/kitchensink/

for this i will guide you please go through link which i have give will help You alot
http://www.mysamplecode.com/2012/07/sencha-touch-floating-panel-example.html

Related

Web Dynpro Action on Button

There is some kind of Shopping Cart in which you have Product positions.
There is a Button in web dynpro which is supposed to copy the text from the Inputfield from one position to the others.
When I click one of the positions, and enter a text in the inputfield and click on copy to all other positions - it doesn't copy.
Only if I click the button twice it copies the position to the others. What am I doing wrong?
I'm not a web dynpro expert.
Could be an IE bug or some problem in the code.
You can check the onAction property of your button and also check if there's any loop in the events that could probably cause this "only for the second click" behavior.
Please share your Controller/View code so we can provide a complete answer.

Show Button only in edit mode odoo

I have added a button to existing form of purchase order in Purchase order Line Tree. But i want to show that button only in edit mode. I tried:
<button name="adjust_received_qty" string="⇒ Adjust" type="object" class="oe_edit_only"/>
i tried to put class = oe_read_only, but it does not work in odoo 8.
Thanks,
UPDATE
My requirement is : i want to show the button when user clicks edit button. if i use the suggested approach, i will able to hide button in create view.but it will be visible in form view even in view mode. I want to show the button only in edit view ( when user clicks the edit button )
Please Help,
try class=oe_edit_only
it's working fine for me
Standard Odoo work must be using python+xml in general, and it's not recommended to use javascript long codes with it because it may cause performance problems.
I've not done this but I think you can achieve this using javascript and add on click event listener on edit button and use show()-hide() function on the fields/button which you want to hide/show so it may help you to solve this issue.
Maybe digging in deep odoo codes may give you another solutions who knows :D

Add global button in CRM

Is there a way to add a new button to ALL PAGES in CRM?
I have tried different ways but in some views, the new button is shown at the end. Im trying to found a way to create a button and place it as first button, to any view, entity and page in CRM. Is this accomplisable?
I'm afraid that out-of-the-box buttons will often take precedence over custom buttons, and the only way to change that would be to hide the out-of-the-box buttons.
I'm assuming you are adding the button via the Application Ribbon, correct? (not every single form and grid)
You can add items to the "Jewel", (the dropdown from "File" in the top left). It's not exactly the same as putting it in the ribbon because you have to make an extra click, but it should show up globally.

How to maintain text in popup control even if click outside popup control

In my windows phone application I add one popup control for user login.
If user enter his credentials and click outside popup control then the data vanishes.
how to maintain data in popup even if user clicked outside popup?
Is there any property so that we can make background page ideal when popup window comes?
use IsolatedStorage for that to maintain data.
see the link
http://www.kunal-chowdhury.com/2011/06/windows-phone-7-mango-tutorial-12-using.html
hope this will help you...

How to create a nice add button to list view like in the Weather app?

Following these steps:
Open the Weather app.
Right click
Click on places
See that little item with the + symbol? I want to do something exactly like that, the looks and behaviour.
Assuming you are just trying to get some basic ideas about metro-ui controls and you are on Release Preview.
When you do right click, the control that's being triggered is called App Bar. The "place" button is a App Bar Command. Clicking on the button will take you to another page (HTML or XAML). This page contains a ListView control with GridLayout. You can dynamically change the ListView Template and assign different actions to the itemInvoke event.
Here is a quick tutorial for App Bar and commands:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465309.aspx
Here is a quick tutorial for List View control:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465496.aspx