On Wednesday, September 7, 2016 at 10:00:05 PM UTC-7, Peter wrote:
>
>
> Thanks for the response Dave,
>
> I haven't got the hang of this editor yet so I hope this doesn't appear as 
> a total mess...  
>
> My view code...    
>
>  {{ line=0                 }}
>  {{=inv_lines              }}
>  {{ for item in inv_lines: }}
>  {{     line+=1            }}
>   <TBODY>
>      <TR>
>         <TD ALIGN=CENTER WIDTH=50>    {{ =line                   }}  </TD>
>         <TD ALIGN=CENTER WIDTH=80>    {{ =item.start_time.date() }}  </TD>
>         <TD ALIGN=CENTER WIDTH=50>    {{ =item.duration          }}  </TD>
>         <TD ALIGN=LEFT   WIDTH=550>PAP{{ =item.person+1000       }}/ {{ =
> item.task_type }}/ {{ =item.title }}/ {{=item.task_status}}</TD>
>         <TD ALIGN=RIGHT          >  € {{ =item.charge            }}  </TD>
>         <TD ALIGN=CENTER         >    {{ =button('edit' , 'edit_task' , (
> item.task.id)) }} </TD>
>         </TR>
>  {{ pass }}
> O
>
> which is similar to your last example   
>

Looks good.  (I had a TABLE example on hand, too, but the LI was more 
compact)
 

> (however the <ul><LI> wrapper screws with my formatting by forcing bullet 
> points)
>
>
Footnote:  the  <ul> can be styled with list-style-image:none, or you can 
use an <ol> to get your numbering back.
<URL:https://www.w3.org/TR/2011/REC-CSS2-20110607/generate.html#generated-text>
With the UL() and OL() helpers, you'd use the _class argument;  the web2py 
css files probably already have some appropriate classes defined.

 

> *The weird thing is the problem seems to be gone.   *
>

Good news!
 

>
> I set up some new transactions, out of sequence by datetime, like     
>
> 1st/Aug...  
> 23rd/Aug..  
> 7th/Aug...  
> 15th/Aug...  
>
> So these would have transaction table ids in sequence e.g. 5,6,7,8 
> respectively  
> When I run the view now (with these newly created transactions) it ignores 
> the id sequence and preserves the 'orderby=start_time'.  
>
> The old transactions that I was working are still there but currently not 
> available until I do some adjustments to let them   
> invoice again - so I will try them again tomorrow just to see if there was 
> something in there that I am missing.  
>
>
Okay, we'll keep an eye out for a follow-up.  Perhaps there was a browser 
glitch involved.

 

> Thanks again!
> Peter
>

/dps
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to