Save Input Data to Excel in Siena
Guys,
Quick (and hopefully) easy question regarding Project Siena and Excel:
I have a single screen (Screen1) and an Input Text Field (Input1) and a Gallery (Gallery1):
I am wanting to have a user enter a numeric value into Input1, say 100,000.
Once that value is entered, I would like to save it in Excel, conduct numerous calculations on the Excel value (Input1) and then present the new numbers to the user in Gallery1.
My question: Is there a way to save inputted data into an Excel data source?
Thanks,
Chris
Chris,
You can save data in Siena, you just can't write that data to a file such as Excel right now. If I understand you correctly, you should try the following:
Change the OnChange property of Input1 to:
UpdateContext({MyValue: Value(Input1!Text)/2})
Explanation:
This creates and updates a variable called MyValue. The name is unimportant, and you can call it whatever you want, as long as you use the same name when you reference it elsewhere.
It sets the value of MyValue to whatever the user inputs in Input1 divided by 2. The actual math doesn't have to be what I wrote, this is just an easy example.
Create a Label and set its Text to:
MyValue
This will display the value.
To get this to display on another page, you need to pass the context. To do this, create a button, and set its OnSelect property to:
Navigate(Screen2,"",{MyValue: MyValue})
This Navigates to the page called Screen2, and sets MyValue (for Screen2) to MyValue (from Screen1).
This is assuming you only want one number stored, you can also do all of the above using collect(). If you use a collection, you won't have to pass the context between screens. A list of Functional References can be found
HERE:
-Bruton
Just let us know if you also want an example of using this in a collection.
Similar Messages
-
Save input data from popup modal MVC
Hi I am trying to save data from popup. When I execute my controller side data is not saved. Please see code below:
View:
@model IEnumerable<Model>
<h2>Manage Dimension</h2>
<link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/gridmvc.min.js")" type="text/javascript"> </script>
<script src="@Url.Content("~/Scripts/js/bootstrap.min.js")" type="text/javascript"> </script>
<link href="@Url.Content("~/Content/bootstrap/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/bootstrap/css/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css" />
@using (Html.BeginForm())
@Html.AntiForgeryToken()
@*<html>*@
<body>
<hr />
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>
ID
</th>
<th>
Name
</th>
<th>
Value
</th>
<th>
Action
</th>
</tr>
@foreach (var item in Model)
foreach (var i in item.Values)
<tr>
<td>
<span data-bind="text: ID">@item.ID</span>
</td>
<td>
<span data-bind="text: Name">@item.Name</span>
</td>
<td>
<span data-bind="text: Value">@i.Value</span>
</td>
<td>
<button type="button" class="edit-mode" data-toggle="modal" data-target="#myModal" id="c.ResellerId">edit</button>
</td>
</tr>
</table>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Edit/Add Dimension</h4>
</div>
<div class="modal-body">
<div id="dialog-form" title="Create new user">
<form>
<fieldset>
<label for="name">Name</label>
<input type="text" name="name" id="name" value="" class="text ui-widget-content
ui-corner-all"><br /><br />
<label for="email">Value</label>
<input type="text" name="value" id="value" value="" class="text ui-widget-content
ui-corner-all">
</fieldset>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-default" id="inviteRequest">Save changes</button>
</div>
</div>
</div>
</div>
<br />
<br />
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" data-toggle="modal" data-target="#myModal" data-bind="click: Save">Add</button>
</div>
<script src="~/Scripts/App/Modal.js"></script>
@*<script type="text/javascript" src="https://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js"></script>*@
@*<script src="@Url.Content("~/Scripts/js/bootstrap.min.js")" type="text/javascript"> </script>*@
<script type="text/javascript">
$(document).ready(function () {
$('#inviteRequest').click(function () {
console.log(1);
$('#myModal').modal('hide');
$.post('/ManageDimension/Create', { "Name": name, "Value": value })
alert("You clicked me!");
window.location.reload(true);
</script>
</div>
</body>
</html>
Controller:
[HttpPost]
public ActionResult Create( DataModel dimension)
if (ModelState.IsValid)
db.Save(dimension);
return RedirectToAction("Index");
else
return View(dimension);Hi,
This is a forum for Visio.
To get more professional support, I recommend you post this question in MVC forum.
http://forums.asp.net/1146.aspx/1?MVC
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who
read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Greta Ge CHN
TechNet Community Support -
How we save report data into excel
hi
can you tell me how we send oracle report builder report data into excelHi,
Try this code.
PROCEDURE PRINT_REP_WEB IS
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(100);
Str_Job_ID VARCHAR2(100);
Str_URL VARCHAR2(100);
PL_ID PARAMLIST ;
BEGIN
PL_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
RO_Report_ID := FIND_REPORT_OBJECT('REPORT_OBJ');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, '<report_name>');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'SPREADSHEET');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, '<report_server_name>');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('<report_server_name>') + 2, LENGTH(Str_Report_Server_Job));
Str_URL := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=<report_server_name>';
WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
DESTROY_PARAMETER_LIST(PL_ID);
END;Regards,
Manu.
If my response or the response of another was helpful, please mark it accordingly -
Save data to excel using froms_ole builtin
Hi All,
can somebody send me an example how to save any data to excel workbook
using FORMS_OLE builtin package (or OLE2 in later versions) ?
I'm working with forms 4.5
Thanks
BranoFor merging of cells you can refer following code!
[Merging of cells.|https://www.sdn.sap.com/irj/scn/wiki?path=/display/community/oleconceptfordownloadingthereportoutputintoexcel]
Regards,
Lalit Mohan Gupta. -
Issue with Saving the Query output data in Excel format
Hi,
Recnetly we had upgraded from 4.6c to ECC 6.0.
In ECc 6.0 environment, when user try to export the query output , we are getting only XML option to save the data.
But user want to save the data in EXcel format, he was able to do that in 4.6C.
pleas eprovide some inputs, on this issue.
Thanks,
Sanketh.I cannot for the life of me imagine, why a link to a post in the 'Business One Forum' where one uses ODBC to transfer query-data to MicroSoft Excel is of relevance to the OPs question, even if the same is not a security issue.
Never mind. [note 40155|https://service.sap.com/sap/support/notes/402155] deals with various symptoms in the ALV-Excel combination as as of release 4.6C. There are various others, mostly in components BC-SRV-ALV and BC-ABA-LI - also: I remember that when we upgraded from 4.5B to 4.7C there was an issue with Excel-templates -> the solution was in the release notes somewhere. So, in addition to SMP you might want to check the release notes and/or upgrade guide for solutions.
And yes, moderators ... this is not a security issue, this should go to ECC-Applications/Upgrade. -
Hi,
I have a screen 9002 where I have used a CUSTOM CONTAINER and the screen 9002 is called from 9001.
I am showing an ALV GRID in the CUSTOM CONTAINER by using CL_GUI_ALV_GRID.
Screen 9002 also has 2 buttons (PF-STATUS): PRINT and SAVE in application tool bar. Now, I need to print the data of ALV and save the data in excel by pressing these 2 buttons respectively. Please let me know the way-out. If these functionalities can achieved by standard tool of the screen 9002, it will be also OK.
Thanks
ArghyaHi,
Why don't you use the function "excel inplace" in the ALV? With the ALV you have some buttons "SORT/TOTAL/FILTER... and you have PRINT and EXCEL INPLACE"?
Do you use the method call method g_grid->set_table_for_first_display in order to display your data alv?
Best regards -
How to save cluster in some excel file
Hi,
I have been using bundle function to draw XY graph from 2 one dimensional array. However, I need these values to be saved in some excel file so that I can look at the graph in future. However, I could not connect the "output" of "Bundle" function to "ClusterToArray" function and so, I am not able to save the date, please let me know how to do.
Thanks,
DushyantOne way of doing it would be to create a 2D array from you one dimensional arrays rather than the output of the bundle. Then you would need to transpose the 2D array and using the Write to spreadsheet VI to save the data in excel. See the attached picture.
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
Attachments:
array to excel.JPG 14 KB -
I am using Jsp which is getting data from the EJBs...and shows in tabular format...i hav to give user a option to save that data in EXCEL format.Is there any utility available to do this...or can i use
==========================================
contentType="application/vnd.ms-excel"
==========================================
If i use this whether i get HTML output from the Jsp page..
Please clear meprovide option to get data in format of CSV (comma separated values) then they can open this text file in Excel and save it as Excel worksheet.
-
Hi,
I want to save data in Excel? But how?
Can somebody send me a VI?
Thank youIf you want to do excel formatting and really have full functionality in Excel without having to buy the reports toolkit, you can use the Excel ActiveX controls. If you have Excel installed you can use ActiveX references to do anything you want excel to do for you. Use an automation reference and select the Excel class. I forget what its called, but you should be able to find what does what without too much problem. You just use methods from the reference. It takes a bit of work to figure out what everything does, but I have written huge formatting vi's that open excel, format cells, run macros, and save files in excel and then close excel when its done. It all depends on how fancy you want to get.
-Devin
I got 99 problems but 8.6 ain't one. -
Hi everybody how to save the inputed data in one simple list output .
here am wrting the description of the requirement ...
am displaying one report output in that output i have all my fields open so that user can directly chage the dats what ever needed or he needs.
then after changing when he will press the save button the changed data should be saved to one of the database tables ..
so can anybody please help me out how to do this requirement
this is a simple report with all fields in the output screen in input modehiiii
if you want to save the data that user have updated then use following statement on SAVE button.
UPDATE ztable1
SET C1 = 2
WHERE C2 IN ( SELECT C3
FROM T2
WHERE C4 = 0)
reward if useful
thx
twinkal -
I'm trying to backup a my hard drive with disk utility but I'm getting an error Unable to create Backup.dmg" (input/output error). Is there any other way to save my data? I believe my hard drive is failing or corrupt file. I can't boot up. Grey screen and spinning wheel. I've tried everything https://discussions.apple.com/message/20580424#20580424
any help will be greatly appreciated.Check here. Also have you done a TimeMachine back up?
http://support.apple.com/kb/TS2570 -
Save the input data of single WD4A screen
Hi All,
I am interested to know, whether as in the case of the ABAP report screen where we can save the input data as variant, is it possible for us to save all the input fields into a variant in WD4A.
Thanks,
Selvakumar M.,hi,
Refer the following blogs on Variant in Wd Abap :
/people/sharad.agrawal/blog/2008/08/21/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-1
/people/sharad.agrawal/blog/2008/08/25/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-2
I hope it will help you.
Thanx.
Saurav. -
Repost: Save data in Excels spreasheet to Oracle DB ?
Hi all,
I have an excels spreadsheet that have data in it, and I want to read the excels
spreadsheet and save the data in my oracle DB. For example 4 columns:
ID Prices Period Effective Date
1 40 5/1/00 5/3/00
2 30 5/1/00 5/3/00
Thanks
In your file is there always a value for each field?
If you have nulls you need to put an expression to not map when there is a null. This is important if they are numbers as numbers tend to want a value.
In the transformation on the right, right-click the field that will recieve nulls, select the if clause. This will create a if above the field. Drag the field on the left to both the if and the field itself.
On the if map you need to add the expression string-length(field) > 0. Do this by right-click the if map and choose strings conditions, string-length, then a a logical expression > 0
cheers
James -
Using OBIEE Scheduler to export and save data in excel/pdf
Hi
Is it possible to use obiee scheduler and run particular reports and export the data into excel/pdf and save this file at given location on server.
env: obiee 11g/linux OS
Thanks for any ideas.Hi,
Yes it is possible.
As per my knowledge we don't have such option but we can do one way.
Using IBOTS you can store specific report and specific time in specific location.
Note : Using JS script.
Are you going to implement this way send me your mails id will send you js script for doing this.
Re: Auto SAVE to excel -- Please refer this thread.
Create js file using the below script and add this js scrif in your ibot advanced tab.
var FSO = new ActiveXObject("Scripting.FileSystemObject");
var foldername = 'D:\IBOT'
if (FSO.FolderExists(foldername))
var fileName = foldername + "\\" +Parameter(1);
var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
else
FSO.CreateFolder(foldername);
var fileName = foldername + "D:\IBOT" + Parameter(1);
var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
Thanks,
Satya -
I would like the ability to have a settings screen and allow the user to enter parameters. These parameters need to be saved even when the program (VI) is shut down. As an example I made a quick simple program, Sample test 1.vi. Here there is input data, amplitude, a maximum setting and a minimum setting. I would like the user to be able to set the settings (maximum and minimum) to the desired level, run the program, stop the program, shut down the program. Upon restarting the program the settings should be at the last entered value. Any ideas or assistance is appreciated. Thanks,Brian
Attachments:
Sample test 1.vi 8 KBLook through the example VIs that ship with LabVIEW. They have examples on working with ini files. I have included an example of the VIs that we use for our applications as well.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Attachments:
Application Template-Get Test Specific Parameters From Config File.vi 20 KB
Application Template-Save Test Parameters To Config File.vi 19 KB
Application Template-Test Parameters.ctl 6 KB
Maybe you are looking for
-
HT201080 How do I edit a family members details?
How do I edit a family members details? I have set up family sharing in iCloud and accidentally saved an incorrect birthdate. Can I edit these details?
-
I need to buy a camcorder but am confused by all the formats (MiniDV, HD etc) - with the software I have which type of camcorder will I be able to use EASILY. thanks
-
HttpServer error in reading buffer size via keyboard input - HELP
I've written a simple HttpServer program that reads keyboard input to construct a buffer to copy the requested file into the socket's output stream. I've done the string-to-integer conversion using BufferedReader and parse.Int. However, when I go to
-
how do you free up disk space on macbook pro 2013 model to upgrade and update software
-
Where can I download DW CS4?
DW CS4 will not open, the green rectangle appears then the Problem report window opens. I using a MAcBook Pro running OSX 10,9.3. I only bought the download and don't have a back up disc, but I do have the legal license number