==== Explanation of the code ==== Imagen estanteria ===IMPORTANT=== \\ * All the images of the books must be saved in the files folders of the application. * The background image is saved in the icons folder. * Besides, all of them must be saved in the application database. === PictureMAP Collection Code === \\ |< 100% 8% 92% >| ^ Code ^ Explanation ^ | **show-no-data="false"** | It does not show the message It does not show the message that there is no data if there is no data. | | **type="Z"** | It indicates the type of data of the property. | | **viewmode="picturemap"** | It indicates that the contents instead appearing on "GRID" mode it will be seen as a sensible image in some points. | | **method="executenode(reservar)"** | When clicking on a book it is indicated that it is going to be reserved and its status changes. | | **method="executenode(entregar)"** | When clicking on a book it is indicated that it is going to be delivered and its status changes. | ==== Example of code of the PictureMAP collection ==== \\ ==In this collection we layout the screen of the device, that is, we distribute the screeen according the information we want to show. == |< 100% 50% 50% >| ^ Code ^ Explanation ^ | **sql="SELECT t1.* FROM ##PREF##estanterialibros t1"** | Query that returns the books information. | | **dependent="false"** | It indicates that the object belonging to this collection must check if the proprietary object is saved or it is not, to save them. | | **check-owner="false"** | It indicates that the collection must check if the proprietary is saved in disk before executing a loadallin the case of content collection. | ==== Example of code of the bookshelf book collection ==== \\ ==In this collection we indicate it what we want to show in the first contens of the PictureMAP collection== |< 100% 50% 50% >| ^ Code ^ Explanation ^ | **sql="SELECT t1.ID,t1.CODIGO AS MAP_CODIGO,t1.TITULO AS MAP_TITULO,t1.AUTOR AS MAP_AUTOR,t1.ESTADO FROM ##PREF##estanterialibros t1"** | It returns us the status which the book is in. | | **show-toolbar="false"** | By default **true**. If we put it to false in a collection when we use it as a contents, the buttons of new, edit... do not appear, although it is allowed the edition and the creation of new ones. To lock it, it would be with locked="true". | | **cell-bgcolor="#FFFFFF"** | It allows to define the cells background color by default. | ==== Code of the statusBooks collection ==== \\ ==In this collection we indicate what we want to show in the second contents of the PictureMAP collection. ==