Refresh data in popup by external event
Hi folks,
I have got a popup with an alv grid displaying data from a database table.
I want to reload the alv grid in case new entries were created outside of this popup.
I thought it would be possible to fire an ABAP OO event after writing new data to database.
The popup implements a handler for this event and this handler executes a manual refresh.
My problem is that the event handler doesn't get this external event.
In case I fire the event within the popup screen it works.
I already thought about a periodic screen refresh. But that causes to much database traffic.
Are there any suggestions?
Thanks,
Josef
Hi Joseph.,
I think periodic refresh is the way for ur requirement., U pls post ur thread here.. [ABAP OO Forum|ABAP Objects; . U will get some more useful inputs.,
Thanks & Regards
Kiran
Similar Messages
-
hi, i hava a problem, i have a jtable where same Data column depend from another column of the same jtable and a jtextfield that is external to jtable
my jtable is
jcombobox | text | text | text ecc....
when the user change the SelectedItem of jcombobox the other column`s data is jacombobox values * external JtextField text....
if i change the value of the external jtextfield how can i refresh the data in the jtable whitout click over all cell???
this is the code of the My CellRender of the first column:
public class MyComboBoxRenderer extends JComboBox implements TableCellRenderer {
JTable jt;
PortataUgelli pug;
public MyComboBoxRenderer(String[] items,JTable table,PortataUgelli pu) {
super(items);
this.jt=table;
this.pug=pu;
addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt){
if (jt.getSelectedColumn()==0){ //This action is only for the first column
String ugello= (String)getSelectedItem();
if (ugello==null) ugello=""+0;
double b=Double.parseDouble(pug.getPressione().trim());
String par="" + new VariID().getFunzioneUgelli(ugello,b); //this method calculate the value of the other cell
int sel;
if (jt.getSelectedRow() < 0) sel=0;
else sel = jt.getSelectedRow();
jt.setValueAt(par,sel,1); //set the value of the cell
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
if (isSelected) {
setForeground(table.getSelectionForeground());
super.setBackground(table.getSelectionBackground());
} else {
setForeground(table.getForeground());
setBackground(table.getBackground());
// Select the current value
setSelectedItem(value);
return this;
}It's fairly simple...
you need to have your own custom TableModel. Extend AbstractTableModel and when you go to set a cell (to change the data in that cell) you simply fire an event with the:
fireTableCellUpdated(int row, int column) method to let the view know that the data changed in that cell of that table changed and needs to be redrawn...
Here's the link to the tutorial page/section on creating a custom table model and also firing events when data changes:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#data -
Screenprogramming and external event
Hello
I have to write a program with will refresh it's screen depending on a external event. In my case the external event is processed by a ABAP-Class on the same application server. So my idea was to set up an event handler but it didn't work.
Cause it has to work as a prototype, now i write the data in table an the program with has to display this pulls that table any 1 second. I'd like to now if there are other possibilities to solve such problems. One of my ideas was to set up a shared object which fires a event when new data will arrive. But i read in a blog from Thomas Jung that this is not possible (/people/thomas.jung3/blog/2004/12/09/netweaver-for-the-holidays-a-lession-in-sharing-abap-shared-memory)
Every input is appreciated !
Kind regards
HerbertHi Amy and Nusag,
Appreciate your answers. Definitely is not an easy one.
One possibility I'd be considering (as an alternate solution) is to use a Java Application Server that actually acts only as forwarder to messagges (dependencies on counterpart requires JMS) and deal with this "small payload fee".
Honestly woudn't be confident on implementing a messaging channel on WCF nor have duplicated application services implementation.
I'll be glad to read more suggestions.
Best Regards.
RGONZALEZP. SharePoint, BizTalk, SQLServer, EADevelopment Certified Partner. Hardware Development, Robotics, Human Interop, Infrastructure Sensing. -
Error while assigning external event
Hi Guys!
I'm getting error, while trying to assign an external event on table output.
I've got a button with action POSTPO, that is residing in standalone form. That action should send data form some form and a table to BAPI.
When I try to configure connector line and assign that *event (from event scope 'any element'), I recieve Internet Explorer's script error " 'length' is null or not an object".
Here are two screenshots: [1|http://www.dennisk.org/tmp/SAP/event_err.jpg], [2|http://www.dennisk.org/tmp/SAP/event_err_mod.jpg].
At the same model I can assign that event to different form and table. The only difference is that before that faulty elements there is a chain of two directly connected BAPIs.
Is there a way to fix it?
Thanks in advance!
Regards,
DKanybody?
-
CR 2008/VS 2005/Winform : HOW TO REFRESH DATA ONLY ?
Hi,
I display a report in a CrystalReportViewer (Windows Form).
This report have NO Saved data, use some parameters, use a formula, and connect to a SQL Server via OLE DB.
I would like to REFRESH THE REPORT after some data has been modified in the Database. (just the DATA in the report, NOT the parameters, NOT their values, and NOT the formula).
PROBLEM : this SIMPLE TASK seems to be IMPOSSIBLE to do !!! (I can't beleive this !)
If I call Refresh() or ReportRefresh(), in the Viewer or in the ReportDocument, the formula AND the report Parameters have no more effects.
"ReuseParameterValuesOnRefresh = true " : DON'T WORK !!!
QUESTION : Is there a way to refresh DATA in a report without completely reload the entire report file & params & formulas & Data & ... ???
Thanks a lot for your help.
StephI have had a similar issues with report parameters.
The solution for me was to set the parameter value in the RefreshReport event of the ReportDocument not the crystalReportViewer. -
Create Popup or external window
Hi,
I have some code in wdDoInit() of View. Before view completely loads, I require to popup a dialog box or external window with a message.
Is this possible to create Popup or external window from the first view of the application, such that the popup appears first and then the rest of the view loads?
Presenty I do not get any popup even though I have done coding for the same and straight away the view appears.
Thanks
Anagha
Message was edited by:
Anagha JawalekarHi Anagha,
First go to the Method tab of view and create two Event handlers (Ok and Cancel).
Then try this code inside wdDoInit() of view.
String dialog = "Do You Want to Continue? ";
IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Ok"),"OK");
IWDEventHandlerInfo CancelEventInfo = wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Cancel");
confDialog.addChoice(CancelEventInfo,"Cancel");
confDialog.show();
Check this links.
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/0f/134540631d6f13e10000000a1550b0/frameset.htm">Creating an External Window</a>
Generic Search
Re: opening a new window on lead select in a table!!!
Re: close a pop-up window
Regards,
Mithu -
Real Time Refresh Data in Dashboards
Hi
How I can see near to real time refresh data in the OBIA Dashboards?
Scheduling ETL over night only show the data posted a day ago.
Regards
Naeem AkhtarHi,
In order to show fresh data in dashboards(not from cache) we go for event polling table.
Using Event Pooling will run the incremental Load to show real time data?No it dosent run any incremental load, it purge cache to show fresh data in dashboards
Go through below guide which will help you out -
http://docs.oracle.com/cd/E14571_01/bi.1111/e10541/querycaching.htm#i1005513
http://gerardnico.com/wiki/dat/obiee/event_table
Regards,
Srikanth -
Wtk emulator external event generator problem
Hi all,
I am developing a peer to peer application that uses bluetooth to communicate, I tried setting the longitude and latitude in the external events generator to check if the devices would be in range, and I chose typical values 33S 18E, 32S 17E that would provide a distance > 100m meaning the devices would be out of range of one another, however they still are connecting and sending data to one another despite having set these co-ordinates.
I used the location API to check if the external events generator was working properly, and I can check via the midlet that it has indeed picked up the co-ordinates I have, therefore I am very confused as to why, the devices are still able to connect despite being out of range.
Could anyone please help me?
I am rather desperate as I am on a deadline.
Thank you in advance.Did you check the WTK User Guide?
There is a chapter about using Location API describing location scripts. +"...Location scripts are XML files consisting of a list of locations, called waypoints, and associated times..."+
Also, there is a section describing CityGuide example - it mentions location +"events files"+ used in that demo application. -
WTK store external event settings
Hello,
When closing the Java WTK emulator, all external event settings (e.g. location data) are getting lost. How can I store these settings, so that I do not have to enter them manually each time the emulator is started?
Regards,Did you check the WTK User Guide?
There is a chapter about using Location API describing location scripts. +"...Location scripts are XML files consisting of a list of locations, called waypoints, and associated times..."+
Also, there is a section describing CityGuide example - it mentions location +"events files"+ used in that demo application. -
Delivers: external event or process?
Hi all,
I know Delivers or iBots can fire or start external process as actions to be executed when iBot completes. Is it possible the other way around, I mean, an external process or event call or fire an iBot?
I have an RFI on OBIEE that has as a requirement that dashboards should be "pushed"/delivered to users whenever an external event happens, such as a load in the Data Warehouse or a given external script is run.
Thank you in advance.
Regards.There is an important utility today that would enable Application developers to integrate BI Scheduler/Delivers into their application. That utility is called as SASchinvoke.exe. This enables end users to call/run ibots programmatically from any application...
follow the article in this blog
http://oraclebizint.wordpress.com/2008/03/06/oracle-bi-ee-101332-integrating-schedulerdelivers-into-other-applications/
Hope this helps.
thanks
Madan Thota -
Data loss popup - on SAVE button
Hi Friends,
basically on webui for any transactions we will have a SAVE button on the overviewset... we can enhance that viewset and redefine that event handler SAVE to write our own logic...
but when we do some changes to a transaction and hit standard BACK button( this will be available along with forward button, on right hand side top), it gives a data loss popup, do u want to save , with buttons, Yes/No/Cancel.
if we press Yes, it saves the transaction too.. but how and where can we write the logic we wrote in SAVE button( on viewset ), when on data loss pop up, YES button is pressed on the pop up??
Any thoughts
RDHi Sarat,
thanks for you reply
but could you please explain little more on this. which close event are you talking abou?
i have say bt115H_SLSO/SOHOverview. are you talking about the do_handle_event of this IMPL will trigger when i click yes in the popup??
whic IMPL class i can catch this close event which you mentioned?
htmlb_event_ex attribute of the close event of which IMPL's method..
could you tell me how exactly this close event is catched?
thanks
RD -
Can not refresh data int the report...
Application on C#.
Steps:
1. Get Report without data from the database
2. Change the dataconnections in report to the current user
3. refresh data on the report (FilePath = TempFilePath)
4. Resave report file with data
5. Automatically open CrystalReportsViewer2008 and load the report
Result
On developer machine is allright, but on the user machine data isn't refreshed. Therefore CrysrtalReportsViewer2008 can't open report. It say that check the SaveDatawithReport parameter.
In process I found that in temp directory on user pc, didn't creates some temprorary files which creates on developer PC. Why? Help me please.
Sorry for my English.There is the code of my programm
function ParseReport is refreshed the data and change dataconnections for current user
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using CRApp;
using Microsoft.Win32;
namespace CRApp
* u041Au043Bu0430u0441u0441 u0434u043Bu044F u0430u0432u0442u043Eu043Cu0430u0442u0438u0437u0438u0440u043Eu0432u0430u043Du043Du043Eu0433u043E u0432u0438u0437u0443u0430u043Bu044Cu043Du043Eu0433u043E u0434u043Eu0441u0442u0443u043Fu0430
* u043A u0444u0430u0439u043Bu0430u043C u0448u0430u0431u043Bu043Eu043Du043Eu0432, u0441u0433u0435u043Du0435u0440u0438u0440u043Eu0432u0430u043Du043Du044Bu0445 u0432
* u043Fu0440u043Eu0433u0440u0430u043Cu043Cu0435 Crystal Reports
public partial class Export2CR_MForm : Form
public Export2CR_MForm()
InitializeComponent();
Start();
public void Start()
LoginForm Login = new LoginForm();
DialogResult Dres = Login.ShowDialog();
if (Dres == DialogResult.OK)
if (Login.GetConStr().ToString() != "")
GetReportNamesFromDataBase(Login.GetConStr());
SetConnectionString(Login.GetConStr());
this.CenterToScreen();
Visible = true;
Login.Close();
else
Login.Close();
this.CenterToScreen();
this.OnClosed(null);
* u041Fu043Eu043Bu0443u0447u0430u0435u043C u043Fu0443u0442u044C u043A u0432u0440u0435u043Cu0435u043Du043Du044Bu043C u0444u0430u0439u043Bu0430u043C
TempFilePath = Path.GetTempPath();
* u041Au0440u0438u0441u0442u0430u043Bu043Eu0432u0441u043Au0438u0439 u0432u044Cu044Eu0432u0435u0440u043Eu043A
CrystalDecisions.Windows.Forms.CrystalReportViewer viewer;
* u041Fu0443u0442u044C u043A u0432u0440u0435u043Cu0435u043Du043Du043Eu0439 u043Fu0430u043Fu043Au0435
private string TempFilePath;
* u041Fu0430u0440u0430u043Cu0435u0442u0440 u0437u0430u043Fu0438u0441u0438 u0432 u0440u0435u0436u0438u043Cu0435, u0442u0430u0431u043Bu0438u0446u0435 (u0438u0442u0434...)
* u041Du0443u0436u0435u043D u0434u043Bu044F u0442u043Eu0433u043E u0447u0442u043Eu0431u044B u0432u044Bu0431u0438u0440u0430u0442u044C
* u043Eu043Fu0435u0440u0435u0434u043Bu0451u043Du043Du044Bu0439 u0434u0430u0442u0430u0441u0435u0442, u0441u043Eu043Eu0442u0432u0435u0442u0441u0442u0432u0443u044Eu0449u0438u0439 u0432u044Bu0431u0440u0430u043Du043Du043Eu0439 u0437u0430u043Fu0438u0441u0438
private int ObjectIDOfTemplate;
* u0423u0441u0442u0430u043Du043Eu0432u043Au0430 u0437u043Du0430u0447u0435u043Du0438u044F ObjectIDOfTemplate
public void SetObjectIDOfTemplate(int /*
* ObjectID u0442u043Eu0433u043E u0448u0430u0431u043Bu043Eu043Du0430,
* u043Au043Eu0442u043Eu0440u044Bu0439 u043Du0430u0434u043E u043Fu043Eu043Bu0443u0447u0438u0442u044C
EnternalObjectID)
ObjectIDOfTemplate = EnternalObjectID;
* u041Fu043Eu043Bu0443u0447u0438u0442u044C ObjectID u0448u0430u0431u043Bu043Eu043Du0430
* u0441 u043Au043Eu0442u043Eu0440u044Bu043C u0440u0430u0431u043Eu0442u0430u043Bu0438 u0434u043Bu044F
* u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F u0435u0433u043E u0432u043Du0435 u0431u0438u0431u043Bu0438u043Eu0442u0435u043Au0438
public int GetObjectIDOfTemplate()
return ObjectIDOfTemplate;
* u041Fu0443u0442u044C u043A u0432u044Bu043Fu043Bu044Eu043Du0443u0442u043Eu043Cu0443 u0444u0430u0439u043Bu0443
private string TemplateFilePath;
* u0423u0441u0442u0430u043Du043Eu0432u0438u0442u044C u043Fu0443u0442u044C u043A
* u0432u044Bu043Fu043Bu044Eu043Du0443u0442u043Eu043Cu0443 u0444u0430u0439u043Bu0443
public void SetTemplateFilePath(string In)
TemplateFilePath = In;
* u041Fu043Eu043Bu0443u0447u0438u0442u044C u043Fu0443u0442u044C u043A
* u0432u044Bu043Fu043Bu044Eu043Du0443u0442u043Eu043Cu0443 u0444u0430u0439u043Bu0443
public string GetTemplateFilePath()
return TemplateFilePath;
* u0424u0443u043Du043Au0446u0438u044F u043Eu0442u043Au0440u044Bu0442u0438u044F u0444u0430u0439u043Bu0430,
* u043Fu043Eu043Bu0443u0447u0435u043Du043Du043Eu0433u043E u0438u0437 u0431u0430u0437u044B u0438
* u043Fu043Eu043Bu043Eu0436u0435u043Du043Du043Eu0433u043E u0432u043E u0432u0440u0435u043Cu0435u043Du043Du0443u044E u043Fu0430u043Fu043Au0443
public int ParseReport(string FilePath)
viewer = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
CrystalDecisions.CrystalReports.Engine.ReportDocument rd =
new CrystalDecisions.CrystalReports.Engine.ReportDocument();
try
rd.Load(FilePath);
try
for (int i = 0; i < rd.DataSourceConnections.Count; i++)
rd.DataSourceConnections<i>.SetConnection(
GetConnectionString().GetServerName(),
GetConnectionString().GetDatabaseName(),
GetConnectionString().GetUserName(),
GetConnectionString().GetPassword()
for (int j = 0; j < rd.Database.Tables.Count; j++)
DataTable dataSet = new DataTable();
SqlConnection C = new SqlConnection(GetConnectionString().ToString());
string ViewName = GetDataViewName(GetConnectionString(), ParseTableName(
rd.Database.Tables[j].Name));
SqlCommand Q = new SqlCommand("select * from " + ViewName
, C);
Q.CommandType = CommandType.Text;
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = Q;
adapter.Fill(dataSet);
rd.Database.Tables[j].SetDataSource(dataSet);
catch (Exception e)
MessageBox.Show(e.Message);
try
SetTemplateFilePath(TempFilePath + "\\" + FileTreeView.SelectedNode.Text.ToString() + ".rpt");
rd.ReportOptions.EnableSaveDataWithReport = true;
viewer.ReportSource = rd;
viewer.RefreshReport();
rd.SaveAs(TemplateFilePath);
rd.Close();
return 0;
catch (Exception e)
MessageBox.Show(e.Message);
return -1;
catch (Exception ex)
rd.ReportOptions.EnableUseDummyData = true;
rd.ReportOptions.EnableSaveDataWithReport = true;
viewer.RefreshReport();
rd.SaveAs(TemplateFilePath);
MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
return -1;
* u0420u0430u0437u0431u0438u0435u043Du0438u0435 u0438u043Cu0435u043Du0438 u0442u0430u0431u043Bu0438u0446u044B
* u0434u043Bu044F u043Fu043Eu043Bu0443u0447u0435u043Du0438u044F u043Du043Eu043Cu0435u0440u0430 u043Au043Bu0430u0441u0441u0430
public string ParseTableName(string TableName)
// MessageBox.Show(TableName);
int x = 0;
if (TableName.Contains("Class"))
x = TableName.LastIndexOf("s");
return TableName.Remove(0,x+1);
if(TableName.Contains("Attr"))
x = TableName.IndexOf("r");
// MessageBox.Show(x.ToString());
// MessageBox.Show(TableName.Remove(0, x+1));
return TableName.Remove(0, x+1);
* u0424u0443u043Du043Au0446u0438u044F u043Fu043Eu043Bu0443u0447u0435u043Du0438u044F u0444u0430u0439u043Bu0430 u0438u0437 u0431u0430u0437u044B
public int ParseReportWithDataBase()
try
string ConnectionString = GetConnectionString().ToString();
SqlConnection C = new SqlConnection(ConnectionString);
C.Open();
string SelectString = "select P119 from "+ GetDataViewName(GetConnectionString(),"24") +" where P115='";
SelectString = SelectString+FileTreeView.SelectedNode.Text.ToString()+"'";
SqlCommand Q = new SqlCommand(SelectString, C);
Q.CommandType = CommandType.Text;
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = Q;
DataTable table = new DataTable();
adapter.Fill(table);
byte[] b = (byte[])table.Rows[0].ItemArray.GetValue(0);
FileStream fs = File.Create(TempFilePath+"\\"+FileTreeView.SelectedNode.Text.ToString()+".rpt");
fs.Write(b, 0, b.Length);
fs.Close();
C.Close();
return 0;
catch (Exception ex)
MessageBox.Show(ex.Message);
return -1;
* u0421u0442u0440u0443u043Au0442u0443u0440u0430, u043Eu043Fu0438u0441u044Bu0432u0430u044Eu0449u0430u044F u043Fu0430u0440u0430u043Cu0435u0442u0440u044B
* u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F u043A u0431u0430u0437u0435 u0434u0430u043Du043Du044Bu0445,
* u043Au0430u043A u0434u043Bu044F u0432u043Du0435u0448u043Du0435u0433u043E u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F
* u0442u0430u043A u0438 u0434u043Bu044F u0432u043Du0443u0442u0440u0435u043Du043Du0435u0433u043E
public struct ConnectionString
* u0418u043Cu044F u0441u0435u0440u0432u0435u0440u0430 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
private string DataSource_Value;
* u041Du0430u0437u0432u0430u043Du0438u0435 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
private string InitialCatalog_Value;
* u0418u043Cu044F u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
private string UserID_Value;
* u041Fu0430u0440u043Eu043Bu044C
private string Password_Value;
* u041Fu0435u0440u0435u0433u0440u0443u0436u0435u043Du043Du044Bu0439 u043Au043Eu043Du0441u0442u0440u0443u043Au0442u043Eu0440
* u0434u043Bu044F u0440u0443u0447u043Du043Eu0439 u0438u043Du0438u0446u0438u0430u043Bu0438u0437u0430u0446u0438u0438
* u0441u0442u0440u043Eu043Au0438 u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F,
* u043Du0443u0436u0435u043D u0434u043Bu044F u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F u0435u0433u043E
* u0432 u043Eu0434u0440u0443u0433u0438u0445 u0444u043Eu0440u043Cu0430u0445
public ConnectionString(string /*
* u0418u043Cu044F u0441u0435u0440u0432u0435u0440u0430 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
InDataSource_Value,
string /*
* u041Du0430u0437u0432u0430u043Du0438u0435 u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
InInitialCatalog_Value,
string /*
* u0418u043Cu044F u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
*/ InUserID_Value,
string /*
* u041Fu0430u0440u043Eu043Bu044C
*/ InPassword_Value)
DataSource_Value = InDataSource_Value;
InitialCatalog_Value = InInitialCatalog_Value;
UserID_Value = InUserID_Value;
Password_Value = InPassword_Value;
* u041Fu043Eu043Bu0443u0447u0438u0442u044C u0438u043Cu044F u0441u0435u0440u0432u0435u0440u0430
* u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
public string GetServerName()
return DataSource_Value;
* u041Fu043Eu043Bu0443u0447u0438u0442u044C u043Du0430u0437u0432u0430u043Du0438u0435
* u0431u0430u0437u044B u0434u0430u043Du043Du044Bu0445
public string GetDatabaseName()
return InitialCatalog_Value;
* u041Fu043Eu043Bu0443u0447u0438u0442u044C u0438u043Cu044F
* u0442u0435u043Au0443u0449u0435u0433u043E u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
public string GetUserName()
return UserID_Value;
* u041Fu043Eu043Bu0443u0447u0438u0442u044C u043Fu0430u0440u043Eu043Bu044C
* u0442u0435u043Au0443u0449u0435u0433u043E u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
public string GetPassword()
return Password_Value;
* u041Fu0435u0440u0435u0432u043Eu0434 u0441u0442u0440u0443u043Au0442u0443u0440u044B u0432 u0442u0435u043Au0441u0442u043Eu0432u044Bu0439 u0432u0438u0434
* u0434u043Bu044F u0438u0441u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u043Du0438u044F u043Fu0440u0438 u0441u043Eu0437u0434u0430u043Du0438u0438 u043Au043Eu043Du043Du0435u043Au0442u043Eu0440u0430
public override string ToString()
return "Data Source="+DataSource_Value+";Initial Catalog="+
InitialCatalog_Value+";User ID="+UserID_Value+";Password="+
Password_Value;
* u0424u0443u043Du043Au0446u0438u044F u043Fu043Eu043Bu0443u0447u0435u043Du0438u044F u0441u0442u0440u043Eu043Au0438 u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F u043Fu043E u0443u043Cu043Eu043Bu0447u0430u043Du0438u044E
* u043Du0443u0436u043Du0430 u0431u044Bu043Bu0430 u0434u043Bu044F u0442u0435u0441u0442u043Eu0432
static private string GetDefaultConnectionString()
return "Data Source=BSRV01;Initial Catalog=Prokat_Last;User ID=sa;Password=";
* u0412u043Du0443u0442u0440u0435u043Du043Du044Fu044F u0441u0442u0440u043Eu043Au0430 u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F
* u043Du0435 u0434u043Eu0441u0442u0443u043Fu043Du0430 u0434u043Bu044F u0432u044Bu0437u043Eu0432u0430 u043Du0430u043Fu0440u044Fu043Cu0443u044E
private ConnectionString localConnectionString;
* u0423u0441u0442u0430u043Du043Eu0432u0438u0442u044C u0441u0442u0440u043Eu043Au0443 u0432u043Du0443u0442u0440u0435u043Du043Du0435u0433u043E u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F
public void SetConnectionString(ConnectionString CS)
this.localConnectionString = CS;
* u041Fu043Eu043Bu0443u0447u0438u0442u044C u0441u0442u0440u043Eu043Au0443 u0432u043Du0443u0442u0440u0435u043Du043Du0435u0433u043E u043Fu043Eu0434u043Au043Bu044Eu0447u0435u043Du0438u044F
public ConnectionString GetConnectionString()
return this.localConnectionString;
* u0424u0443u043Du043Au0446u0438u044F u0443u0434u0430u043Bu0435u043Du0438u044F u0432u0440u0435u043Cu0435u043Du043Du043Eu0433u043E u0444u0430u0439u043Bu0430
* u043Fu043Eu0441u043Bu0435 u0437u0430u0432u0435u0440u0448u0435u043Du0438u044F u0432u0441u0435u0445 u043Eu043Fu0435u0440u0430u0446u0438u0439 u0441 u0448u0430u0431u043Bu043Eu043Du043Eu043C
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
if (FileTreeView.Nodes.Count!=0)
if (File.Exists(TemplateFilePath))
File.Delete(TemplateFilePath);
* u041Eu0431u0440u0430u0431u043Eu0442u0447u0438u043A u0434u0432u043Eu0439u043Du043Eu0433u043E u043Au043Bu0438u043Au0430
* u043Fu043E u0448u0430u0431u043Bu043Eu043Du0443 u0432 u0434u0435u0440u0435u0432u0435 u0444u0430u0439u043Bu043Eu0432
public void FileTreeView_DoubleClick(object sender, EventArgs e)
int Result = 0;
try
Result = ParseReportWithDataBase();
if (Result == 0)
Result = ParseReport(TempFilePath + FileTreeView.SelectedNode.Text.ToString() + ".rpt");
if (Result == 0)
Process.Start(TemplateFilePath);
else
MessageBox.Show("u0424u0430u0439u043B u043Du0435 u043Cu043Eu0436u0435u0442 u0431u044Bu0442u044C u043Eu0442u043Au0440u044Bu0442!");
catch (Exception ex)
MessageBox.Show(ex.Message);
* u041Fu043Eu043Bu0443u0447u0435u043Du0438u0435 u0432u0441u0435u0445 u0444u0430u0439u043Bu043Eu0432 u0441 u0440u0430u0441u0448u0438u0440u0435u043Du0438u0435u043C .rpt
* u0438u0437 u0431u0430u0437u044B u043A u043Au043Eu0442u043Eu0440u043Eu0439 u043Fu0440u0438u0441u043Eu0435u0434u0438u043Du0438u043Bu0438u0441u044C
public void GetReportNamesFromDataBase(ConnectionString CS)
try
SqlConnection C = new SqlConnection(CS.ToString());
SqlDataAdapter adapter = new SqlDataAdapter();
DataTable table = new DataTable();
table.Clear();
string sqlcom = "Select P115 from " + GetDataViewName(CS,"24") + " where P116 like '%.rpt'";
SqlCommand Q1 = new SqlCommand(sqlcom,C);
Q1.CommandType = CommandType.Text;
adapter.SelectCommand = Q1;
adapter.Fill(table);
FileTreeView.Nodes.Clear();
for (int i = 0; i < table.Rows.Count; i++)
FileTreeView.Nodes.Add(table.Rows<i>.ItemArray.GetValue(
table.Rows<i>.ItemArray.Length-1).ToString());
// MessageBox.Show(table.Rows<i>.ItemArray.GetValue(0).ToString());
C.Close();
catch (Exception ex)
MessageBox.Show(ex.Message);
* u041Fu043Eu043Bu0443u0447u0438u0442u044C u0438u043Cu044F DataView
* u0434u043Bu044F u0442u0435u043Au0443u0449u0435u0433u043E u043Fu043Eu043Bu044Cu0437u043Eu0432u0430u0442u0435u043Bu044F
private string GetDataViewName(ConnectionString CS,string ClassID)
string ViewName = "";
SqlConnection C = new SqlConnection(CS.ToString());
C.Open();
SqlCommand Q = new SqlCommand("[dbo].[_SysGetClassesInfoNew1]"/*P115 from dbo.Attr24 where P116='.rpt'*/, C);
Q.CommandType = CommandType.Text;
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = Q;
DataTable table = new DataTable();
adapter.Fill(table);
for (int i = 0; i < table.Rows.Count; i++)
if (table.Rows<i>.ItemArray.GetValue(0).ToString() == ClassID)
ViewName = table.Rows<i>.ItemArray.GetValue(13).ToString();
// MessageBox.Show(ViewName);
C.Close();
return ViewName;
* u041Eu0431u0440u0430u0431u043Eu0442u0447u0438u043A u043Au043Bu0438u043Au0430 u043Du0430 u0432u044Bu043Fu0430u0434u0430u044Eu0449u0435u043C
* u043Cu0435u043Du044E u0432 u043Fu0443u043Du043Au0442u0435 "Delete"
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
FileTreeView.SelectedNode.Remove(); -
Need info on Standard Web services to pull Order data in CRM from external applications
Hi Gurus,
I have a requirement to pull Order data in CRM from external non-sap application using Web services. Are there any standard SAP provided web services to pull order data based on some input? If yes, can you provide me any kind of documentation related to this?
Appreciate your help on this.
Thanks
LakshmanHi Lakshman,
I have checked further.
Please review below link of the SAP Help documentation :
http://help.sap.com/saphelp_nw70/helpdata/en/47/3a989cbcef2f35e10000000a1553f6/content.htm?frameset=/en/46/97218e79f115eae10000000a114a6b/frameset.htm¤t_toc=/en/d1/802cfc454211d189710000e8322d00/plain.htm&node_id=439&show_children=false
and also the link :
–http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=347DD31EB5AB4BC592BD8B29C0981A1B
Hoping that this will be helpful.
Best regards - Christophe -
Hi,
In Dashboard using Web Intelligence Report and updating it through live office.I created a dashboard but i have to refresh data every day for that i used a button to refresh the data in the screen.
i.e connection refresh Button will it works for live office . if it means please explain how to get data .
Thanks & Regards,
Vinay.GOr you trying to get the refreshed data on open then check the webi report is scheduled.
If you are using any prompt to get the refresh data, then check the trigger to cell is configured properly. -
Hey everyone, I'm creating a Flex/ColdFusion app. and I've
been working with CFCs and RemoteObjects. I know that when you want
to refresh data you have to call the CFC with the RemoteObject
every time (after the creationComplete is called I use addedToStage
and removedFromStage to re-call the CFC). Is there a better way to
refresh my data or "re-initialize" the component?
Also, does anyone know the proper way to log someone out
using ColdFusion and Flex? I pass the cflogout method in my CFC and
in Flex I return the user to the login page and "reset" my objects
I use to store user data, but after logging in as a different user
the previous user's info is still present. So I've resorted to
reloading the URL to clear the application of all data. Any tips?
Thanks,
PJI don't really get what you mean with "re-initialize the
component"?
Here you can learn about login and logout in ColdFusion.
http://www.brucephillips.name/blog/index.cfm/2006/11/27/Login-and-Logout-Flex-Example-That -Uses-ColdFusion-CFLogin-and-CFC-Role-Security
Maybe you are looking for
-
Using a Mac and a Surface Pro with the same catalog?
I am using CC on my Mac as my primary computer. I'm thinking of getting a Surface Pro to use as a second computer. 1. Are there any issues with opening and saving a catalog back-and-forth between a Mac and a PC? I'm thinking of doing it via Dropbox.
-
SYntax error while creating a formula for %
Hi All, I have to calculate Growth percentage and creating formula. But its giving me a syntax error. I am writing like this:- (Month to Date Sales-MTD PRior Year Sales)/ MTD PRior Year Sales*100 % Can anyone please tell me where I am making a mista
-
I am having trouble with iOS7 with texting. Initial text is in blue surround and does not go through. If I hold down on it the message pops up that says Copy l Send as Text Message l More. If I hit the Send as Text Message it goes right through.
-
We use IDVD to burn our imovie projects. My problem just recently is that when I want to burn a number of the same DVD project, the first one always burns fine and then one or two consectutive DVD's will burn without an error or quitting or just plai
-
The Swedish golf paper Svensk Golf is now awailable in an app Paperton. "Svensk Golf" is free when you are a member in a Swedish golf club. By mistake I paid for a subscription, th app is new and apparently there are som technical issues yet. My ques