I have been working with 4D write pro the last days. Mostly i am impressed how relatively easy it will be to handle and maintain large sets of documents that needs to be consistent and hard typed. I had to struggle the first days but then it all became clear to me how to handle Write Pro programing.
The one thing i have not found is a good approach how to handle is the issue of dynamic tables. I have an idea to insert an expression that returns a table inside the document. A table that can format outside of the expression. Much like the Process 4D tags. I have found a ways to inject HTML into a WP document but not really as a result of an expression. Am i missing something here?
As it is now i can see two solutions:
- Use a “bookmark” or some other marker that a parser could fin and the execute WP code accoirdingly. #MyTable1 would trigger the opening code to replace that with method that actually creates a table in WP coding. Keeping the table “dynamic” in this solution would be a complete hardcoding exercise.
- Some kind of function code that injects html coding with the risk of destroying the internal structure of the docoment.
Anyone. What is the best way to right now handle “dynamic” tables in a WP document?