Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 178 - Copy and Paste From Excel  (Read 4192 times)
Reuben B.
Four Js
Posts: 1114


« on: June 15, 2023, 01:23:01 am »

Accountants and Analysts love Excel.  One of the tasks they may have is to use Excel to create a bunch of numbers that they then want to import into your Genero application.    Examples might include budget and forecast figures.  Another usage of Excel is as an intermediary in a cheap method to do a one-time transfer of data from one application to another (export to csv or Excel, import the csv or Excel into your application).
 
Rather than writing dedicated load programs that might use LOAD, or base.Channel to read files, or a dedicated Web Service API to load data, the concept is to use an existing screen where the user can manually enter many rows of data via an INPUT ARRAY.  The question is then can I copy a range of cells from Excel and paste it into this or any INPUT ARRAY?  The answer is Yes using reflection.

Read more at https://4js.com/ask-reuben/ig-178/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Reuben B.
Four Js
Posts: 1114


« Reply #1 on: October 09, 2024, 01:52:28 am »

GBC 5.00.08 (https://4js.com/online_documentation/fjs-gbc-manual-html/#gbc-topics/gbc_whatsnew_50008_2.html) added the ability for the GBC to manage the paste of clipboard content from Excel.  The techniques referred to in this article are still valid and interesting, but you can review wether the default paste behaviour now meets your needs and means you no longer need to use the techniques listed in this article.

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines