Jump to content
Server Maintenance This Week. ×

Unread items icon


This topic is 2365 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Folks we all know how useful the "unread" badge icon on your telephone can be, I'd like to try and implement something like this into my FM SP database. 

I've a filter on the invoice list view that allows me to see any orders that need invoicing to the customer. 

The search criteria is:

OMIT = invoice posted = "1"
FIND = Quantity Remaining = "0"

I've tried to make a button on a button bar in the preferences layout using the same process as the tab formatting, namely: 

Let     (     [     number = Count ( T14m_preferences_INVOICES||id_constant::ID_Invoice ) ;     label = If ( number = 1 ; "Inv" ; "Invs" ) ;     findmode = "Invs" ;     size = 22 ;     color =  RGB ( 154 ; 154 ; 154 ) ;  // Grey     sizedNumber = TextSize ( number ; size ) ;     styledNumber = TextStyleAdd ( sizedNumber ; Plain ) ;     coloredLabel = TextColor ( label ; color )     ] ;     If     ( Get ( WindowMode ) = 1 ; findmode ;         styledNumber & " " & TextSize ( coloredLabel ; 13 )         )     )

I've associated the T14m table with the preferences using ID constants, so:

ID_Constant_Zero ("0") = quantity_remaining_total
ID_Constant ("1") NOT= Invoice_Posted

So far, the button just shows "INV ?" 

Feel like that link between the two tables isn't right. 

Anyhow, is there a better way to do this, say with pretty numbers like iOS has on it's icons? 

 

Thanks in advance. 

 

 

Link to comment
Share on other sites

This topic is 2365 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.