Home » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45944 is a reply to message #45942] |
Sat, 30 January 2016 06:37   |
|
dolik.rce wrote on Sat, 30 January 2016 01:13Hi Abhijit,
I don't immediately see any problem with your code, without actually running it...
If I were you, I'd try to add some logging into key places of the code, to figure out where exactly is the problem. Use LOG and DUMP macros, which produce a log when the application is compiled in debug mode. To see the log, just press Alt+L or go to Debug > View the logfile. I'd start with adding DUMP(json) after the loop. Also, I guess you already tried inspecting the values of id, by adding PromptOK. Does it show the names of fields you are expecting?
Also, the code seems little over-complicated. Have a look at examples in reference/Jsonize. It displays exactly what you want, saving large structures into json file (just not as dynamically as you try to do it). Also reference/SelectFile might be of some help.
Best regards,
Honza
Hi Honza,
Thanks. Earlier I tried to see the DUMP file and now again I checked. It reports " json = {}". Also PromptOK did not show as the code did not go through that "IF" loop " if (dynamic_cast<EditField *> (q)) ".
Best,
Abhi
|
|
|
Goto Forum:
Current Time: Sun May 04 22:10:49 CEST 2025
Total time taken to generate the page: 0.07850 seconds
|