You Are Here:

Community: Developer Discussion Boards

#1 Old How to assign a value to a form field? - 2006-11-09, 12:02

Join Date: Nov 2006
Posts: 9
bandz_fab
Offline
Registered User
Hi Guys, This is my 4th post on this forum and hopefully by this time someone will answer my questions so here goes. How can I assign a value to a field field? lets say you have a couple of text form fields and the last form field will be used to display the output or values computed by the program. How can I do this??? Can I also set the last form field as readonly??? If it is possible how can I enable this feature?

Hoping and praying that by this time around you could help me out. Thanks.
Reply With Quote

#2 Old Re: How to assign a value to a form field? - 2006-11-10, 12:06

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi bandz_fab,

First of all download PythonForS60_doc_1_3_12.pdf if you don't have it yet.

In 5.1.5 there is writen:
Quote:
Creates a Form instance. fields is a list of field descriptors: (label, type[, value ]) where...
So, to display a form with values check this example
Code:
fields = [  (LANG['Name'], 'text', APP['name']),
            (LANG['Version'], 'text', APP['version']),
            (LANG['Author'], 'text', APP['author'])]
about = appuifw.Form(fields, appuifw.FFormViewModeOnly)
about.execute()
LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#3 Old Re: How to assign a value to a form field? - 2006-11-11, 00:05

Join Date: Nov 2006
Posts: 9
bandz_fab
Offline
Registered User
thank you sir for answering my questions.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
field not modified in form silviuccia Symbian User Interface 0 2006-09-01 12:10
adding field in form cristoforo General Symbian C++ 1 2006-05-24 10:45
求助,电话本问题,请高手解答 Kiss_Fish Symbian 5 2005-09-27 03:07
How can I add a popup field to the form dynamically stelee Symbian User Interface 0 2005-09-05 11:19
popup form field dalore Symbian User Interface 0 2003-07-11 04:44

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia