Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Developing sample app

$
0
0
Re: Developing sample app
FoxInCloud
Re: Developing sample app
03/08/2012
08:42:26 PM
3G818D1WA Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
The best way to remove a form title bar in a modal form is these 2 lines in the css. Say the formnme in VFP is form1:

/* on the password screen remove the form header */ #Window_form1_scx .mac_os_x_title { display:none!important; } #Window_form1_scx .top { display:none!important; } /* end form header removal--*/


1. We have a small issue running in the browser with the Add function in our projects maintenance form. Works in VFP IDE. Units table is a filtered free table at this time. This table has several index including a candidate index uniqueid (index = uniqueid field). Date entry is in text fields not in the grid. Data entry seems "resisted" (hard to control entry). Data entered does not get saved by Save button. We have an Edit button which only does a set focus to first text field. Save works after an Edit. Weird. This is a very basic form.

Add button clickk event:
SELECT units
savecurrentrecord = RECNO("units")
cDomainString = "HOME"
cProjectString = projects.pid
SELECT MAX(seq) FROM units WHERE domain = cDomainString AND pid = cProjectString AND NOT DELETED() INTO CURSOR maxseq
IF VARTYPE(maxseq.max_seq) = "X" && .NULL.
nextseq = "001"
ELSE
nextseq = STRTRAN(STR(VAL(maxseq.max_seq)+1,3)," ","0")
ENDIF
SELECT units
*!* APPEND BLANK
*!* nextuniqueid = SYS(2015)
*!* REPLACE IN units ;
units.domain WITH USERS.domain, ;
units.pid WITH Projects.pid, ;
units.seq WITH nextseq, ;
model_no WITH "", ;
units.qty WITH 1, ;
units.selleach WITH 0, ;
units.tonnage WITH "3", ;
units.uniqueid WITH nextuniqueid
INSERT INTO units (uniqueid) values (SYS(2015))
REPLACE IN units ;
units.domain WITH USERS.domain, ;
units.pid WITH Projects.pid, ;
units.seq WITH nextseq, ;
modelevap WITH "", ;
units.qty WITH 1, ;
units.selleach WITH 0, ;
units.tonnage WITH "3"

thisform.refreshdata()
Thisform.GrdUnits.Refresh
Thisform.txtModel_no.setfocus

Edit button click event:

Thisform.txtModel_no.setfocus


Save button click event:

SELECT units
TABLEUPDATE(.T.) &&TABLEUPDATE() - same result
thisform.grdunits.setfocus

2. see email for a few more screen shots.

Garth


'No disk drive': VFP/Windows issue - need additional details when this error occurs

Alias name already in use: you probably have 2 copies of wwIPstuff.vcx in Set('Path') - or make sure you run FAA and FAS in 2 separate VFP instances

Acrobat: should not be an issue if you use PDFxChange


7. a. FiC does supports form.NoTitleBar on master forms - we might consider supporting it on child forms but then user would loose the 'report a bug' link in form title bar, and the ability to move the form inside the browser view port.
You might add to xxx.css:
.dialog .top.table_window, .mac_os_x_close, .mac_os_x_minimize, .mac_os_x_maximize {display:none;}

7. b.
Supporting
In between You might add to xxx.css:
.dialog .top.table_window, .mac_os_x_close, .mac_os_x_minimize, .mac_os_x_maximize {display:none;}

7. d.
FiC reference:
- Form title bar: modify xxxTest.ini
- Form page: override xxxProcess.wFormHTML_cSignature(), .wFormHTML_cHeader(), .wFormHTML_cFooter()

VFP reference: where?


3.,4.,5. - debugger screens - see private email, forthcoming..
7. a. no title bars -the entire design has forms with no title bar - client's choice. We created a form with no title bar and tested in FIC - Title bar is still present. Apparently FiC does not support NoTitleBar form property. Any CSS options on title bar?
7. b. no min., max. or close buttons on any forms. CSS options ???
7. d. no VFP or FIC text or icons wanted anywhere in production version. See private email attachments.

Thanks.


1. You can set .RecordSource at design time or at grid.Init() - better not change it afterwards
2. FiC supports child grid with a parameterized view - just requery your child view when parent grid record changes - just like in our on-line demo http://foxincloud.com/demos.php
3. please provide a debugger screen shot when error occurs
4. same as 3.
5. please check you don't have 2 copies of the same vcx in scope
6. .wAfterRowChange() should run if .AfterRowColChange() has no code at all
7.a. don't understant
7.b. on master form or child form?
7.c. just implement your sub-class of awFrmMB (xxx.vcx!xxxFrmMB) and check xxx.vcx!xxxFrm.cwcMessageBoxClass = 'xxxFrmMB'
7.d. "no FoxInCloud text" - where?



Further along ...
1. We put the record source definitions for both parent and child tables in the form's init() but saw no obvious difference.

2. We replaced the set filter parent/child table link with a set relation link. This works as expected in VFP IDE, but in browser, child table grid shows all child records. We added expression (Projects.domain+ Projects.pid) to relational expression property in child grid - no change. How can we show only the child record associated with parent table records in browser?

3. For our convenience, we added the FAA app (awadapterstart) to our project. This works fine except when we hit Run, we get a messages "There is no disk in the drive ....".

4. When FAA comes up and we hit "Adapt" we get repeated messages, "The Acrobat Reader that is running cannot be used to view PDF files in a Web Browser. ..." Acrobat is not running and we have the default set to PDF-XChange Viewer. ???

5. When we run xxxtest.prg to test the app in a browser, we get the message "Alias name already in use" twice. We hit ignore and are able to proceeded and test the app in the browser anyway.

6. We had to put replicate our wAfterRowChange() code under AfterRowColChange to make the app work in VFP IDE. We verified that wAfterRowChange() is not being run in VFP IDE by adding a SET STEP ON to the method.

7. Here is some feedback from our client to our FoxInCloud screens:
a. They want no title bar which can be handled within in VFP. We like the abilty to move windows. Maybe title bar can be retained but "disguised".
b. They don't want the three buttons at the top of a window.
c. They want the message box icons to be much smaller.
d. no FoxInCloud text.

Garth






Viewing all articles
Browse latest Browse all 10393

Trending Articles