A data structure Fs_Data if located in the copy module latest_d

This is the main system data structure which iSeries2web uses to transport information between programs. Even though this is a system structure, you as a developer can use these to your benefit. Below is a list of the most common variables you can use. It’s like the INFDS but only for iSeries2web.



Fs_inboxPointer to the XML cloud
Fs_ResultPointer to the outgoing XML cloud (only exist at the end of the turn-around)
FS_FunctionThe primary function holder
FS_SubfuncSecondary function holder. A subfunction to FS_Function
Fs_systemThe current system id (normally 0)
Fs_companyA company number (normally 1)
Fs_langCdLanguage code of the user currently signed on
Fs_svrNamThe name of the server running this session
Fs_SessIdThe session ID from the browser
FS_useridThe user id of the person signed on the this session
Fs_ipadressThe IP-address of the client
Fs_expert*on if the user is set to be an expert (bypass all autorization)
Fs_autchgA code used to set authority.
Fs_autdltA code used to set authority.
Fs_autdspA code used to set authority.
Fs_autcrtA code used to set authority.
Fs_error_codeThis will be filled with a 20 char error code if iSeries2web, encounters a error
Fs_returnUse this to set the return code, that is used as a key in ssapd002, when finding the HTML page that is to be shown
Fs_notfoundIf an RTVxxx function could not find the requested variable name this is set to ‘1’
s_buttoniSeries2web will set this field to the value of the button pressed (only if defined by XMLB)
Fs_max_countThe values from the system file (SSAPD000P) that gives a default value. This is used when displaying lists, so they don’t run for ever (default is 500)
Fs_lrIndicates if the system preference is set to LR or return. Value ‘1’ indicates that programs should use “seton LR”
Fs_modeThe type of “mode” the system is running currently. fs_crt_mode, fs_crt_mode, fs_edit_mode, fs_disp_mode. These are set in your program and is a fast way of setting the button's right. These can be overwritten by specifying the individual fs_xxxx buttons (see hereunder)
fs_editSet to *off or *on to overwrite fs_mode
fs_updateSet to *off or *on to overwrite fs_mode
fs_deleteSet to *off or *on to overwrite fs_mode
fs_reloadSet to *off or *on to overwrite fs_mode
fs_createSet to *off or *on to overwrite fs_mode
Fs_disabledThis field controls if input fields on in the HTML are to be “dimmed” and thereby input inhibited. To set the value of this field there are two system supplied constants - Disabled and Enabled. Using these constants the system will react correctly
fs_dec_charHolds the value from SSAPD000P indicating what character is to be used as decimal separator.
fs_dec_numHolds the value from SSAPD000P indicating the default number of decimals to be shown when formatting numbers
fs_1000_charHolds the value from SSAPD000P indicating what character is to be used as thousand separator.
fs_dat_lenHolds the value from SSAPD000P indicating what default length of a date when formatting
fs_dat_sep1Holds the value from SSAPD000P indicating what character is to be used as the date-month separator
fs_dat_sep2Holds the value from SSAPD000P indicating what character is to be used as the month-year separator
Fs_dat_fmtHolds the value from SSAPD000P indicating what date formatting should be used *DMY or *ISO can be used.
fs_tim_lenHolds the value from SSAPD000P indicating how many characters of the time should be used when formatting using XMLT.
fs_tim_sep1Holds the value from SSAPD000P indicating what character is to be used as the hour-min. separator.
fs_tim_sep2Holds the value from SSAPD000P indicating what character is to be used as the min.-sec. separator.
fs_loHolds the value from SSAPD000P indicating what character are in lower case. Use this in conjunction with fs_up and the RPG command XLATE.
fs_upHolds the value from SSAPD000P indicating what character are in upper case. Use this in conjunction with fs_lo and the RPG command XLATE.
fs_key_idThis value is send with every screen and can be used to hold a unique id for a record e.g. the order number etc. This value is set in a program and then retrieved automatically for use in the same or another program upon return from the browser. Example:
fs_gen_blanksTBD
fs_doc_typeTBD
fs_inbox_lenTBD
fs_no_xmlTBD
fs_dsodataTBD
fs_lstprefixTBD
fs_renamTBD
fs_copyTBD
fs_svrnam2TBD
fs_docidnoTBD
fs_winlabelTBD
fs_usecalTBD
fs_debug*ON, if the user is allowed to recive debug information.
fs_doc_nameTBD
fs_svrnam3TBD
fs_titleTBD
fs_arc_pathTBD
fs_arc_fileTBD
fs_arc_orgTBD
fs_arc_typeTBD
fs_arc_contTBD
fs_http_errorTBD
fs_http_ptrTBD
fs_http_lenTBD
fs_cache*ON, indicates that tha cache function for language labels is active
fs_timerATBD
fs_timerBTBD
fs_trace*ON, indicates that tha trace function for the "business process mananager" is active
fs_webidThe unique id, for the specific webserver that is sending the request. I.e. in a cluster the servers are "one", but this id will tell wich one!
fs_morphUsed to transfer information between modules to determin if morphing is activated
fs_typeHolds current toplevel type from function2program definition
fs_useexit001Get or set the value that controls the use of the userexit feature
fs_dis_typeGet or set the value that controls the alternative-disabled feature