Tables will return a table object for operate a table, its functions: update_ui(self): Your operation on the tables will just done in background and not show in the UI, call this function to update all UI data tables to show the changes.table_names(self): Return a list of all tables' name._getitem_(self, tabName): Get a table object by its name.In this template code, program will use tables read all rows of the table named "output" and put the data into the variables. If not variables.has_key('output_index'): This is an global object for control all data tables. All of the variables will show in variables table. The global variables that other run code actions and itself can visit repeatedly. You can see the line result = False will make the action done as failing to break the loop. The codes are written with python language, and there are some special global variables in FMiner to do work.īy default, result is True, when you set it to False, the "runcode" action will be done as failure, see the counter template code: if not variables.has_key("counter1"): The file path can be relative path, then FMiner will try to find the file in folder of project file(*.fmpx). This template will read each row of a data table and put the data into the variables with name as format of table_column when execute the action. This template will create a counter in variables, every time run the action, it will add 1. There are some default code templates in FMiner for some common uses You can write some python code to control the flow or input data. It permits you to reference a table of values for input variables used to crawl a site, and can use it to control the process flow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |