edit-task
Home
Up
Delete
Task Name:
Task Description:
ADD option to support multiple images for each L5 record
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">FEATURE 0789 - PhotoDisplay - Multiple images</h1> <h2>[previously]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>] <a href="/view/task?id=2818" target="_blank">FEATURE 0789 - photos</a> - overview of this feature and development process</li> <li><strong>> i] FEA UPDATE 0789 multiple images {L5}</strong></li> <ol> <li>*] currently we can upload a single image for any {L5} record, article, item, ....</li> <li><strong>*] WANT - ADD option to support multiple images for each record -</strong> </li> <li>] # MyHelper.generatePhotoTab() { // 3 options - no photo, single photo, multiple photos</li> </ol> <li><strong>cc i] FEA UPDATE 0789 photo slideshow {L5} w/multiple images</strong></li> <ol> <li>] # displays multiple images in a a photo slider carosel control, </li> </ol> <li>2013-10-28 - 789 photos update - multiple photos, photo image gallery(yoxview) </li> <ol> <li>x] photos[] -</li> <li>x] doc ready call yoxview(in pg script) -</li> <li>x] yox script linked - </li> <li>x] generatorTab, </li> <li>x] thumbnail code edited, - </li> <li>] DB table ALTER</li> </ol></ol> <h2>[currently]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li><strong>x] ADD myHelper.generatePhotosTab</strong></li> <ol> <li>x] single photo display</li> <li>x] multi photo display (links to each)</li> <li>x] no photos message </li> </ol> <li><strong>x] DB ALTER TABLES DB TEMPLATE -v-014</strong></li> <ol> <li>x] expand photo field from char to varchar(4096) on tables ....</li> <li>> ] dont know if we need such a large block, (@avg filename.Length of (15char) would hold )</li> <li>*] field size / limits </li> </ol> <li><strong>x] DB INVENTORY - alter tables statement</strong></li> <ol> <li>x] update db public</li> <li>x] update db_1, ..., db_9</li> <li>x] update db 10, ..., db 17</li> <li>x] update db 17 ... </li> </ol> <li><strong>x] PG add/{L5}</strong></li> <ol> <li>?] changes = </li> </ol> <li><strong>i] PG edit/{L5} UPDATES SUMMARY - ] has photo, replace existing photo/s, ] has photo, add more photos, </strong></li> <ol> <li>x] </li> <li>x] server logic - read current photos into array if multiple</li> <li>x] server logic ON POST - TEST for ] file && add ] file && replace ] no file , add to photos[] or </li> <li>x] add checkbox for "add" or replace</li> <li>x] add client side code to toggle checkbox value </li> </ol></ol> <div><hr /></div> <div><ol> <li><strong>] update PG edit/article</strong></li> <ol> <li>x] first photo </li> <li>x] has photo, OPTION ] add another,</li> <ol> <li> x] added checkbox "add", default setting true, </li> </ol> <li>i] has photo, OPTION ] replace with another </li> <ol> <li>if user sets to false then REPLACES Photo/(s) with new photo,</li> </ol> <li>*] PRB if no photo then user adds, do we get "photo1"</li> </ol> <li><strong>x] add test - check appendPhoto</strong></li> <ol> <li>*] if appendPhoto, keep adding, ELSE replace with current photo</li> <li>x] PRB && Request["appendPhoto"].AsBool() - is not returning (REMEMBER test on value VS checked attrib)</li> <li>x] TRY use value attribute</li> </ol> <li><strong>x] logic first photo </strong></li> <ol> <li>] PRB currently gets the "," "photoName" </li> <li>] REVISED </li> <ol> <li>loaded "initial" string into arry, split string into elements, </li> <li>write array to string using String.Join</li> </ol></ol> <li><strong>x] add checkbox </strong></li> <ol> <li>] "id=appendPhoto", labelled* "Add", status = "checked"</li> </ol> <li><strong>x] add client-side code "toggle checkbox - value" ?? checked</strong></li> <ol> <li>x] true - adds photo to existing</li> <li>x] false - currently selected photo replaces existing photos ...</li> </ol></ol> <div><hr /></div> </div> <h2>[next]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li><strong>] on ADD </strong></li> <ol> <li>] choose multiple photos at time </li> <li>] file picker box</li> </ol> <li><strong>] on EDIT</strong></li> <ol> <li>] replace single in list with filepicker (VS replacing entire list) OR manual edit</li> </ol> <li><strong>] ?? CODE BLOCK COMMENTS</strong></li> <ol> <li>x] bouncing around, ADD to EACH edit-v-00# page (same code 6*, or keep here(1*) and reference from each edit-v-000# page</li> </ol> <li>] </li> </ol> <div style="font-size: 10px; font-weight: normal; text-align: start;"><hr /></div> <div style="font-size: 10px; font-weight: normal; text-align: start;"> <p>if (item.photos > 1 )</p> <p>{</p> <p>buildList();</p> <p>}</p> <p>else</p> <p>{</p> <p>displayPhoto();</p> <p>}</p> <p> </p> <p>] http://dba.stackexchange.com/questions/386/what-is-the-difference-between-mysql-varchar-and-text-data-types</p> <p> </p> <p>] FIX PRB step id=94</p> <p>- ERROR ACCESS "users/public/ "</p> </div> <h1 style="text-align: center;"> </h1> <h1 style="text-align: center;"> </h1>