Loading a grid or matrix with external data
Hi, we have two SAP companies defined, from one company I need to perform a search on the second company and provide a grid or a matrix with the results.
We are using the 2007 SDK is it possible to do this?
Many thanks.
Mike.
i think you can use the Recordset object like "oRs.DoQuery("select [company2].dbo.table.....
Similar Messages
-
SPM : Integration with External Data Sources
Dear Experts,
Can you let me know with your comments or by sharing any link or documentation, as to how to Integrate SPM with External Data Sources.
And how many or what all external Data Sources, can SPM Connect with ?
Regards
PankajHi Pankaj,
There are no limitations of external data you can bring into BW and visualise in the SPM UI - you can expose custom bex queries as "datasources" in the user interface, and these can show anything you like. Its just a question about what makes sense to show in SPM.
Are you looking to bring in anything specific?
Thanks
Neil -
Strategies for populating drop downs with external data
Hi,
I have a couple nice forms that call various array scripts that populate drop down boxes based on a selection. Everytime I need to update pricing, models, etc... I have to go in and manually edit the array. I am using just designer - we do not have the server version.
Is there a better way to do this ranther than edit the array and keep saving version? I have seen some expamples using anXML file to the form. This looks like a solution but I am not sure how to do it if this.
It would be nice to have seperate database that contained my widgets external, update it and then make the connection.
Any help would be apprecated!This is a similar thread....
http://forums.adobe.com/message/5538822#5538822
Maybe this is a taboo subject as it something adobe wants you to buy the server version for... I see this get asked many times but there never seems to be a direct answer.
In an effort to make my question more clear - If i have users out there with a form, and I want to update the form with a nightly updated file, that may contain pricing for example, how can one do this?
So the core form stays the same, but dropdowns can be populated with external data.
Thanks in advnace for any all help. -
Filling matrix with Dummy Data
I am doing a demo screen for a client and I need to fill a matrix with hard coded data. I followed the sample code and I have the following code but it is not working for me (it throws a matrix-line exists exception):
// Now get the matrix Item.
SAPbouiCOM.Item matrixItem = oForm.Items.Item("v33_Grid");
theMatrix = (SAPbouiCOM.Matrix) matrixItem.Specific;
Form.Freeze(true);
SAPbouiCOM.UserDataSource uds;
uds = oForm.DataSources.UserDataSources.Add("salesUds",SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 10);
theMatrix.AddRow(1, theMatrix.RowCount);
SAPbouiCOM.Column col = null;
// Ready Matrix to populate data
theMatrix.AutoResizeColumns();
col = theMatrix.Columns.Item("desc1");
col.DataBind.SetBound(true, "", "salesUds");
uds.Value = "Test description";
// setting the user data source data
theMatrix.LoadFromDataSource();
oForm.Freeze(false);
oForm.Update();
I really need to get this working. ANyone got any ideas what I am doing wrong?Hi Laura,
You should use theMatrix.SetLineData() which is the avaiable statement for user matrixes.
Here is some code that loads a form with a matrix from an XML. This way you can edit form values in the XML, instead of hard coding.
Dim oXMLDoc1 As Xml.XmlDocument = New Xml.XmlDocument
oXMLDoc1.Load("C:BaseForm.xml")
App.LoadBatchActions(oXMLDoc1.InnerXml)
Dim oForm As SAPbouiCOM.Form = App.Forms.GetForm("ITA0002", 1)
Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("5").Specific()
Dim Informes As SAPbouiCOM.UserDataSource = oForm.DataSources.UserDataSources.Item("Informes")
Dim ID As SAPbouiCOM.UserDataSource = oForm.DataSources.UserDataSources.Item("ID")
Dim i As Int16 = 1
oMatrix.AddRow(ListaInformes.Length)
For Each Informe As String In NameList
Informes.ValueEx = Informe
ID.ValueEx = i.ToString
oMatrix.SetLineData(i)
i = i + 1
Next
The xml is this one:
<?xml version="1.0" encoding="UTF-16"?>
<Application>
<forms>
<action type="add">
<form AutoManaged="1" BorderStyle="4" FormType="ITA0002" ObjectType="-1" SupportedModes="1" appformnumber="ITA0002" client_height="284" client_width="291" color="0" default_button="1" height="316" left="363" mode="1" pane="1" title="Informes" top="149" type="4" visible="1" width="297">
<datasources>
<userdatasources>
<action type="add">
<datasource size="254" type="9" uid="Informes"></datasource>
</action>
<action type="add">
<datasource size="10" type="9" uid="ID"></datasource>
</action>
</userdatasources>
</datasources>
<items>
<action type="add">
<item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="0" from_pane="0" height="19" left="6" linkto="" right_just="1" supp_zeros="0" tab_order="10" text_style="0" to_pane="0" top="260" type="4" uid="1" visible="1" width="65">
<AutoManagedAttribute></AutoManagedAttribute>
<specific caption="OK"></specific>
</item>
<item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="0" from_pane="0" height="19" left="77" linkto="" right_just="1" supp_zeros="0" tab_order="20" text_style="0" to_pane="0" top="260" type="4" uid="2" visible="1" width="65">
<AutoManagedAttribute></AutoManagedAttribute>
<specific caption="Cancelar"></specific>
</item>
<item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="20" left="5" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" top="5" type="99" uid="3" visible="1" width="80">
<AutoManagedAttribute></AutoManagedAttribute>
<specific AffectsFormMode="1" caption="Informes" val_off="0" val_on="1">
<databind alias="Informes" databound="1" table=""></databind>
</specific>
</item>
<item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="1" height="224" left="8" linkto="" right_just="0" supp_zeros="0" tab_order="60" text_style="0" to_pane="1" top="28" type="127" uid="5" visible="1" width="276">
<AutoManagedAttribute></AutoManagedAttribute>
<specific SelectionMode="2" layout="0" titleHeight="0">
<columns>
<action type="add">
<column AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" editable="0" font_size="12" forecolor="-1" right_just="0" text_style="0" title="2" type="16" uid="2" val_off="N" val_on="Y" visible="1" width="20">
<databind alias="ID" databound="1" table=""></databind>
<ExtendedObject></ExtendedObject>
</column>
<column AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" editable="0" font_size="12" forecolor="-1" right_just="0" text_style="0" title="Nombre" type="16" uid="1" val_off="" val_on="" visible="1" width="255">
<databind alias="Informes" databound="1" table=""></databind>
<ExtendedObject></ExtendedObject>
</column>
</action>
</columns>
</specific>
</item>
</action>
</items>
<items>
<action type="group">
<item uid="3"></item>
<item uid="4"></item>
</action>
</items>
<FormMenu></FormMenu>
<DataBrowser></DataBrowser>
</form>
</action>
</forms>
</Application>
Regards,
Ibai Peñ -
I am not sure if I am overcomplicating something I am trying to do with designer/Acrobat.
I am trying to create an interactive work order.
Much of the basic layout has been done, and most of the fields are doing what I want them to do, though I still have a little here and there that needs some tweaking. But before I get to doing those, my primary focus is to have the form access external data.
For example. I have a table in the form that has the following fields.
Quantity Part Number Description Price Amount
Quantity, price and amount are all internal to the form itself, and are fillable by the user of the form, with the exception that the amount field is a calculated value based on the previous two. My intention is that these fields are only filled by the user of the form when needed.
My issue however is the Part Number and Description fields, which has me quite perplexed on what would be the best way to go.
From some of what I have read here and there in this forum and elsewhere, it seems that I have to have some kind of complex setup regarding sql servers if I want to use a simple database file (access for example) where I can edit as needed on the fly to pull data into the form as needed, using for example, a pulldown, to populate the two fields.
I can muddle through that for my personal needs, however, my intention is to provide the form to co-workers so they can use it without having to set up what I am seeing as extremely complex setup of installing and configuring sql servers and so forth. The computers will not be connected to any networks, these are field laptops.
What I was hoping was to provide the database with the pdf file and let the end user simply copy those to a folder and use them without much fuss, aside from them being able to edit the database file to add their own custom information. I was also considering adding in the ability for them to save and recall customer contact information as well.
I am not by any stretch of the imagination a programmer. I am a technician. I can figure out how to use access easily enough. But beyond this...well...its all greek to me if you get my gist.
Am I overcomplicating the matter. Is there an easier approach to what I want to do? Are there any complete samples (includes all the files needed) available that I can use and study to accomplish what I am trying to do?
Appreciate any input from you folks here.
Thanks.Hi,
There are (at least) two ways of approaching this.
One is to have the Part No. and Description in an external source (eg database) and then set up a data connection in the form to access this information. One problem is that if the user are using Adobe Reader, then the data connections will not work. See summary of deployment options here: https://acrobat.com/#d=3lGJZAZuOmk8h86HCWyJKg
Another option is to hard wire the Part No and Description into the form. There is an example here and links to a tutorial on Acrobat Users website. Linking Drop Down Fields / Combo Boxes
Good luck,
Niall -
Hi,
does anybody knows if there's a way to include external data within the extension without modifying the code?
Basically I need to deploy my extension using different settings (depending on user credentails).
It would be nice if were possible to inoculate an xml file or expand manifest.xml in order to add some external data without changing code every time.
Is there a right way to do this?
Thanks!package
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
import flash.net.URLVariables;
public class urlloader extends Sprite
public var dataArray:Array
public function dataLoader()
var request:URLRequest = new URLRequest("params.txt");
var variables:URLLoader = new URLLoader();
variables.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.addEventListener(Event.COMPLETE, completeHandler);
try
variables.load(request);
catch (error:Error)
trace("Unable to load URL: " + error);
private function completeHandler(event:Event):void
var loader:URLLoader = URLLoader(event.target);
var variables:URLVariables = new URLVariables(loader.data);
dataArray = variables.dayNames.split(",");
dispatchEvent(new Event("loadComplete"));
trace(dataArray[1]);
// in your fla
var loader:urlloader=new urlloader()
loader.dataLoader()
loader.addEventListener("loadComplete",f);
function f(e:Event){
mainText.text=loader.dataArray[1];
} -
Cannot Load Text Without Cheking the (With Master Data option)
Hi,
Suppose I want to create a Characteristic Infoobject, that will have only <b>text</b> but no attributes or hierarchies.
For that in the Master data/texts tab of the Infoobject definition I checked the WITH TEXTS option but unchecked the WITH MASTER DATA option.
But when I was trying to load the text to the infoobject it was not giving an error. But when I checked the WITH MASTER DATA option I was able to load the text.
Can any one say why this happens, that though we do not want to load attributes, we have to check the with master data option for loading texts only.
Thanks in advance.Can You tell us the error description..
You donot need to check the master data option..
Texts can be loaded without checking that option..
If you tell us the error message we would be able to help you identify the real cause..
Check for error log in SM37 or ST22
ashish -
Populating InDesign document with external data?
Hi All – I hope I’m asking this question in the correct forum. I’m assuming that this is a scripting issue, but if it’s not, I apologize. Anyway - am wondering if this is possible, and if so, if someone could point me in the general direction of further information:
My company occasionally asks us to produce employee directories that include information (photo, contact info, education info, etc.) about various segments of the Firm population – for example, one directory might include all women of color, one might include everyone in the Los Angeles office, etc. I would like to find a way to “template” this in InDesign so that the relevant info can flow into the document from an external data source – for example, HR’s SQL database or maybe a spreadsheet generated from that database. I know that we are currently able to do something similar using Word, but the end product looks like crap.
I’m not sure what this would even be called in InDesign, so any info will be greatly appreciated. I'm using version CS5. Thanks!i'd do this using the Data Merge feature. It's similar to the mail merge feature of word. There's a great video of how it works here: http://www.theindesigner.com/blog/episode-43-data-merge-video
there are more complicated ways using XML or third party plug-ins, but i'd try this method first.
colly -
TextField Scrollbar with external data
If I load a textField with data using AS3, e.g. mytext.text =
"lots of text here....", and if the textField has a UIScrollBar
component attached, the scrollbar works fine in testmovie mode, and
in IE, but doesn't display in FF.
The scrollbar displays correctly if the text is included in
the textfield in the authoring environment, it only fails when the
text is added using AS, and only in FF!
Can anyone give me any insight into this problem? I don't see
any discussion of such a problem anywhere on the web so I imagine
I'm doing something wrong!The scrollbar component needs to know how much text is loaded
into the textfield so that it can work correctly. For whatever
reason, the Flash activeX control can deal with this but the plugin
doesn't work as well.
If you apply the scrollbar using actionscript, and add it to
the textfield after the text is loaded, it will work
correctly. -
Load a XML file 47mbyte (with records data) in the RTF
I load a XML data in the RTF file, but when I tried generate the EXCEL file, it get a error.
Can somedy help me?
Thanks.Can you paste the error message here?
-
Hi!
I wolud like to create a variable based on an object from the database times a value the user can choose.
For example:
=<Sales>*( 0,2 or whatever the user choose to write).
I do not want the user to edit in the variable, can I create a prompt where I can take the answer times sales?
Thanks
//MarianneHi Marienne,
I think this should go under the Desktop Intelligence, as that is the latest version of BO Full Client.
With regard to your issue.
Add a condition to your universe that always resolves to to true and prompts the user to enter the number.
@select('My Class\My Object') = case when @prompt('Enter Factor', 'N',....) = 0
then @select('My Class\My Object')
else @select('My Class\My Object')
end
Add this to your query and then create a variable v_userEnteredFactory as
=UserResponse("Enter Factory")
Hope this helps
Alan -
When loading a table from the database in a Matrix, I like this:
- I created the method of example "CreateFormWithMatrix."
- OItem oForm.Items.Add = ("Matrix1" SAPbouiCOM.BoFormItemTypes.it_MATRIX);
=-oColumns oMatrix.Columns;
oColumns.Add-oColumn = ("Code" SAPbouiCOM.BoFormItemTypes.it_EDIT);
oForm.DataSources.UserDataSources.Add-oUserDataSource = ("IntPhone" SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20);
oForm.DataSources.DBDataSources.Add-oDBDataSource = ("@ TB_TESTE");
- OColumn oColumns.Item = ("Code");
oColumn.DataBind.SetBound (true, "@ TB_TESTE", "Code");
-oMatrix.Clear ();
-oMatrix.AutoResizeColumns ();
-oDBDataSource.Query ();
-oUserDataSource.Value = "prefix";
-oMatrix.LoadFromDataSource ();
So fill the matrix with all data from my table.
How do I show in my matrix to only the data that filter through a select?
Example: Show the data in the matrix where the name is "Jesus."Hello
You can fill matrix with a query, using datatable
You may try this sample
Dim oForm As SAPbouiCOM.Form = sbo_application.Forms.Add("MATRIXTEST")
oForm.Visible = True
oForm.Width = 300
oForm.Height = 400
oForm.DataSources.DataTables.Add("oMatrixDT")
oForm.DataSources.DataTables.Item("oMatrixDT").Clear()
Dim sSQL As String = "SELECT * FROM OQUT WHERE Name= 'Jesus' "
oForm.DataSources.DataTables.Item("oMatrixDT").ExecuteQuery(sSQL)
Dim oItem As SAPbouiCOM.Item = oForm.Items.Add("oMTX", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
Dim oMatrix As SAPbouiCOM.Matrix = oItem.Specific
Dim oColumn As SAPbouiCOM.Column = oMatrix.Columns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "#"
oColumn = oMatrix.Columns.Add("1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.DataBind.Bind("oMatrixDT", "Col1")
oColumn.TitleObject.Caption = "Customer Code"
oColumn = oMatrix.Columns.Add("2", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.DataBind.Bind("oMatrixDT", "DocEntry")
oColumn.TitleObject.Caption = "Quote Key"
oColumn = oMatrix.Columns.Add("3", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.DataBind.Bind("oMatrixDT", "NumAtCard")
oColumn.TitleObject.Caption = "Cust Ref Number"
oColumn = oMatrix.Columns.Add("4", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.DataBind.Bind("oMatrixDT", "DocDate")
oColumn.TitleObject.Caption = "Document Date"
oColumn.DisplayDesc = False
oMatrix.LoadFromDataSource()
Regards -
Data of matrix(with userdatasource columns) dissapear in form_add mode
Hi all,
Why when i put the mode of my userform in ADD_mode the data of my matrix (with userdatasource data in columns,not linked to one table) disapear?.
How i can do to not lost data? Exist any way?
Thank you all again.
Regards.Aitor,
I guess you are using UDO, and set it the ObjectType to form.
It is a default behavior that B1 will clear the form for new entry, when it switchs to add mode.
Would you specify the scenario more? Why would you like to keep the data in the form from Find / OK to Add mode?
Kind Regards
-Yatsea -
How to open a pdf form with fdf data
Hi all,
I am working on a new project. In that, I have to load a PDF contract form with FDF data on Internet Explorer Window.
I don't know how to do it. Actually I tried using this format on the URL (while loading the respective page)
http://www.example.org/pdf_file_name.pdf#FDF=http://www.example.org/fdf_file_name.fdf
But it opened as an empty pdf document. . Actually I need it with the fdf data.
Can anyone know any other way to do this?
Or is this not possible to open a pdf form with fdf data in a browser?
Thanks in advance
Annamalai@ Bernd. It still opens a text file
Here's my FDF file sample
%FDF-1.2
%âãÏÓ
1 0 obj
<<
/FDF << /Fields
<</V (07/22/2009)/T (Loan_Note_Date)>><</V (22.29)/T (Loan_AnnualPercentage_Rate)>></V ()/T (Seller_ESignatureArea1_Date)>><</V (GA Dealer)/T (Seller_Signer_FullNameTitle)>><</V ()/T (ThirdParty_ESignatureArea1_Date)>>
/F (MARSMFLZ.pdf)/ID [ <1f0b6b55f345db39e8246247138fe562><e960588530b0d06d35cd618b34d4c314>
]>>
>> endobj
trailer
<<
/Root 1 0 R
>>
%%EOF
(I have uploaded the related pdf file before.)
Just now I got an idea to use WScript (the code is written in javascript)
ws = new ActiveXObject("WScript.shell");
ws.Run('"AcroRd32.exe" "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf"', 1, true);
this opens my fdf document in Acrobat reader using command prompt.
I have a doubt now, can i use some string in place of "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf" in the above command?
I mean something like fdf_file = "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf"
and replace ws.Run('"AcroRd32.exe" fdf_file,1,true). I tried it but it doesn't work Any idea's? Since the path will not remain the same always. So i need to change it -
Lookup field in external data-object????
Hi All.
Is it possible to create lookup field in data object with external data-source?Hi ,
yes you can create.look ups for any Data Objects.
Regards
Siva Sankar
Maybe you are looking for
-
Everything else about my computer works fine, but I get a small pop-up window in the bottom right asking if I want to allow some kind of program access, and the options are 'allow always', 'allow once', or 'block.' I forgot that I lost access to MF a
-
Infopath form load rule not working in browser forms but works on Client
Hi I am working on an Infopath form and there are rules on form load. The form load checks for a value in a list, if the username() matches the one in the list, then the form would change its view. It works when I open it on client, but on the browse
-
Turning a mac laptop into a wacom...
This looks very cool. http://www.tenonedesign.com/inklet.php For anyone with a touch sensitive Mac laptop, just adding inklet software and the pogo stylus can turn the laptop into a touch sensitive wacom... sort of. It looks like there's a bit of li
-
Using Win7 Recovery DVDs to bring Satellite L850-1C9 to "Out of the Box"?
Hi, I am trying to use the recovery DVDs for my Satellite L850-1C9, PSKDLE, to return my HD to the original condition. Even though the hidden partition was there, I always got errors, for instance F3-F200-0002. But this was not the only one. I am at
-
ISE, Active directory and OUs
Hello Everyone I have an ISE with an AD integration, i am trying to limit the access to the wireless users, i only added one OU "wireless users", but all the users can access to the wireless network, i just want to allow the access to the users in th