Marc

Thanks a million. Let me give this a try. You're right. I might be able to 
write to a text file and then parse it to a table on a webpage. Let me give 
that a shot. 

I really appreciate the feedback. If I crack it, I'll forward you a link to the 
final webpage. 

Thanks again!
Eric

Sent from my iPhone

On Jun 1, 2014, at 11:30 AM, "Meketon, Marc" <[email protected]> 
wrote:

> Could you use the “printf” statement to write a JSON text file that could be 
> imported into the web page?
>  
> solve;
>  
> param filename symbolic := "d:\temp\file.txt";
> printf "{FinInvAff:{\n" > filename;
> for { fmdl in fmatdloc,t in tim }
> {
>   printf "  fmdl:%s, t:%d, value:%f\n", fmdl, t, FinInvAff[fmdl, t] >> 
> filename;
> }
> printf "}}\n" >> filename;
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Eric Moore
> Sent: Saturday, May 31, 2014 2:08 PM
> To: GLPK help
> Subject: [Help-glpk] Write Solution Variable to a Google Table
>  
> Does anyone have an example they could share on how to use the data drivers 
> to write solution variables to a web page table? I've got a simple model 
> solving in a webpage. The output is written to a textarea. I had a previous 
> version of an end to end supply chain model that would write the solution 
> variables to MySQL tables. I just can seem to find an example to help me 
> figure out how to write a table of solution variables to a table that listed 
> on a webpage. I am certain there is a simple way to use the JSON driver to 
> write the variables to a Google table. Just can seem to get myself started. 
> Any example that any way can share would be a huge help. Sorry for naive 
> question. Just trying to get this thing started.
>  
> The link below is what I have build. It is very simple. The input tables 
> don't link to GLPK yet. That is another step that I need to complete. For now 
> I'm just trying to figure out how to write the solution to a Google table 
> that I would add to the bottom of the webpage.
>  
> https://dl.dropboxusercontent.com/u/2567864/Finished%20Good%20Planning%20Model/index.html
>  
> Thanks,
> Eric
>  
> 
> This e-mail and any attachments may be confidential or legally privileged. If 
> you received this message in error or are not the intended recipient, you 
> should destroy the e-mail message and any attachments or copies, and you are 
> prohibited from retaining, distributing, disclosing or using any information 
> contained herein. Please inform us of the erroneous delivery by return 
> e-mail. Thank you for your cooperation.
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to