!--a11y-->
Use the tab page ‘Page Attributes’ to define the necessary page attributes for the page
basket.htm.
basket_input contains the current user input. If the user changes the number of items in the shopping basket and clicks on Update Basket Contents, the new value is transferred to the shopping basket structure
application->m_basket. The attribute must be marked as ‘automatic’, because when a request for this page is sent, the page content is updated automatically. You can find the reference type for this with the local type definitions:|
types: begin of sb_input, catid type string, qty type string, del(1) type c, end of sb_input. types: sb_input_table type table of sb_input. |
bookcat_tab
is the internal table that contains detailed data on all the books in the shopping basket. This table is built in the event handler OnInitialization.catid is catalog ID of the item for which the user is currently entering input. For example, if the user activates the checkbox to delete the second item in the basket, and then clicks Update Basket, the catalog ID of the second article of the shopping basket maintenance method is transferred (see
OnInputProcessing).totalamount is the variable that contains the total price of all items. It gets the correct value from the
Event Handler OnInitialization.![]()