Jump to content
uniGUI Discussion Forums
mhmda

[mobile] PhoneBook mobile app

Recommended Posts

Hello,

 

Here is a basic Phonebook mobile app, to show you how to use unitouch, I hope this will help or improve your work :-)

 

you can run test online here: http://roya4u.com:8888 username: unigui password: 1234

 

Screenshots:

 

ph1.png

 

 

ph2.png

 

 

ph3.png

 

 

ph4.png

 

 

ph5.png

 

We have used a custom unitouch components, the new components are attached to this post, you may download and use it in your projects.

 

The full project (with exe) also attached.

Project+Components.rar

  • Upvote 5

Share this post


Link to post
Share on other sites

Nice app. Thank you for sharing.

 

BTW, you can also use a TUniLoginForm .

When I add a TUniLoginForm to my mobile project, the Login form does not get displayed.  Is there anything else I need to set to activate the login form for a mobile web app?

Thanks!

Share this post


Link to post
Share on other sites

When I add a TUniLoginForm to my mobile project, the Login form does not get displayed.  Is there anything else I need to set to activate the login form for a mobile web app?

Thanks!

My mistake...I was adding in the Desktop version of a LoginForm to my mobile project, not the mobile version.

Share this post


Link to post
Share on other sites

Can not find the following files!

 
[dcc32 Fatal Error] uniGUI17Core.dpk(30): E2225 Never-build package 'rtl' must be recompiled
[dcc32 Fatal Error] mMsoftEdit.dpk(37): E2202 Required package 'uniGUI17Core' not found

Share this post


Link to post
Share on other sites

Can not find the following files!


 

[dcc32 Fatal Error] uniGUI17Core.dpk(30): E2225 Never-build package 'rtl' must be recompiled

[dcc32 Fatal Error] mMsoftEdit.dpk(37): E2202 Required package 'uniGUI17Core' not found

Share this post


Link to post
Share on other sites

Mohammad, I downloaded your code as I wanted to check out your components.

 

It will not compile with Tokyo 10.2 ?

 

{$IMPLICITBUILD OFF}

 

rtl must be recompiled.

 

I changed all *17* references to *25* references.

 

It now says 'Cannot compile - unimNumberEdit missing' ?

 

I changed unimNumberEdit to unimEdit, uniDBEdit

 

It now compiles - please advise if my changes are acceptable.

 

ALSO I have asked for help elsewhere re Mobile Calendar (UniGUI Mobile does not have one ?) and I even supplied touch code from my research - would you be kind enough to help me make this happen ?

Share this post


Link to post
Share on other sites

Mohammad, With your config.itemTpl, How can I read a float value (say hours.minutes) and paint field {1} accordingly as 1="01:00 am", 14.30 = "02:30 pm" etc. ?

 

                '<td style="padding-top:4px;padding-left:10px;" width="16px">'+
                 '<image src="images/list/clock.png" height="16" width="16"/></td>'+
                '<td style="font-size:15px;padding-top:3px;padding-left:8px;color:#535454;">{1}</td>'+

Share this post


Link to post
Share on other sites
config.itemTpl= new Ext.XTemplate(
    '<table>'+
                 '<tr>'+                 
                  '<td>{[this.displayDate(values)]}</td>'+                  
                 '</tr>'+                                                                                             
    '</table>',
    {
      displayDate: function(values) {
            return Ext.Date.format(values[3],'d-m-Y');                    
        } 
    }
 );

Not tested :-)

Share this post


Link to post
Share on other sites

In harmony with the new layout, how can I make the ">" (<img src="images/list/file5.png" style="position:absolute;right:15px;top:55px;"/>) emulate a DiscloseButton Click ?

Share this post


Link to post
Share on other sites

Mohammed, I am having trouble with the TUnimDBListGrid Refreshing (I change the data and issue a refresh but old data still shows), can you please advise - Thanks.

 

procedure TCalendarmForm.MyDateChangeValue(Sender: TObject);
begin
  if ByPassFlag = True then Exit;
  //////////////////////////////////////////////////////////////////////////////
  ListGrid.BeginUpdate;
  UniMainModule.tblCart.Close;
  DateTimeToString(DateStr, 'yyyy-mm-dd', MyDate.Date);
  BookingDateStr:= '(BookingDate = DATE '+Chr(39)+DateStr+Chr(39)+')';
  UniMainModule.tblCart.Filter:= BookingDateStr;
  UniMainModule.tblCart.Filtered:= True;
  UniMainModule.tblCart.Open;
  ListGrid.EndUpdate;
  UniSession.AddJS(CalendarmForm.ListGrid.JSName+'.refresh;');
  //////////////////////////////////////////////////////////////////////////////
end;
 
If I leave the form (via grid row Disclose Button) and then return via new form's Close Button - the new data shows up ?
 
I tried UniSession.Synchronize; after Refresh but it makes no difference.
 
Please advise.

Share this post


Link to post
Share on other sites

×