SBO - SDK Screen Painter
hi
i wanna know if anybody help me to know how work add - on Screen painter,
there is a manual of how to use?
Thanks
Yes - this is what SP is about. You design your screen
from SP and save it as an XML file. At this point you
load it in B1 from your addon using the LoadBatchAction.
You just need to change the FormID before loading it, this
is an easy task: if you want some sample you can see the
samples here in SDN or check the code of B1DE here on SDN
too.
Once it is loaded you can use all the UI SDK methods and
properties to handle events and items in this form.
Similar Messages
-
How to show screen design in .srf (from Screen Painter) using SDK?
How to show screen design in .srf (from Screen Painter) using SDK?
You need to use the LoadBatchActions method of the Application object to load .SRF files.
John. -
Is it me or is screen painter a bit naff in sbo 2004 ?
Hi
Screen painter seems fine for normal text and labels but if you use many other objects it doesn't seem to work properly.
Check box's don't work, it seems to loose datasources, it doesn't seem to handle pains well. I seem to have to edit the xml file and all is well but as soon as you add more fields those changes are lost.
Am I missing something or are most people starting in screen painter and editing xml files ?
I think screen painter is better in 2005 but the eval copy I have loaded doesn't seem to want to load any addons
Any comments warmly received
Regards AndyHi Nick,
Why does SAP try to develop a full GUI development tool, instead of using avaiable tools?
I have tested the BO DE toolkit, and it is really good. Why doesn´t SAP go on with this toolkit and integrate the GUI development tool in VS.Net?
I don´t think it would be too difficult to create a subset of controls that just creates the SBO XML form when generating the forms. This way, developers should develop once, use twice (inside SBO as an AddOn, or outside SBO, as 3rd party application using the DI.).
This will really improve the development time of SBO AddOns, which is nowadays not too good (IMHO). BO DE toolkit is just the start for a really good development platform. But is just the start.
Any comment is wellcome.
Ibai Peñ -
Hi,
I've developed a form in the screen painter. I want to add the business logic from SDK. Is it possible...it should be right?
I have a very complex form with around 20-25 edit boxes and one grid. The issues
I have designed the form in the screen painter and am trying to access the edit boxes from SDK. the code snippets is like
oForm = SBO_Application.Forms.GetFormByTypeAndCount("60004", 0)
When i try to access it says form not found. sbo_appl.forms.activeform worked, but when i used
oEdit = oForm.Items.Item("9").Specific
in the next line, it says 9 is not a valid feild.Yes - this is what SP is about. You design your screen
from SP and save it as an XML file. At this point you
load it in B1 from your addon using the LoadBatchAction.
You just need to change the FormID before loading it, this
is an easy task: if you want some sample you can see the
samples here in SDN or check the code of B1DE here on SDN
too.
Once it is loaded you can use all the UI SDK methods and
properties to handle events and items in this form. -
Screen Painter Failed to Connect to SBO App
Hi, I'm trying to use screen painter.. I have already registered the add on , but when the application begins it displays this error.
Hope someone can help me!
Thanks in advace.Hello,
you must check the configuration of DIAPI, en el file C:\Program Files (x86)\SAP\SAP Business One DI API\Conf\b1-local-machine.xml.
You edit this file and check the LicenseServer if defined. -
Hey All,
Does anyone know how I can get my hands on a copy of the SP1 screen painter that has support for datatables, choose from list etc..? I have the SBO2005 screen painter now but it doesn't have any of those features. I know SP1 is not officially released yet but I was hoping to find a copy of the new screen painter to test out over the next few months.
ThanksCurtis,
The only method to receive SP1 for 2005A is to nominate a customer that you have that would be willing to upgrade to SP1 that you have done development for. This needs to then be approved by SAP. There is a very limited number of these SP1 2005A releases with SAP approval. This starts in the March 2006 timeframe although you would want to nominate a customer now.
Otherwise 2005A SP1 is supposed to be released in Q2 barring any last minute issues.
HTH,
Eddy -
Coding in form created in screen painter
I have created a form in screen painter.How can I do coding in this form.I have added a save button in the form.How can I fire the click event on this button.The file created has extension srf and it can not be opened in asp.net.
Hi Dilip,
Although the file has a srf file extension it is actually an XML file. You can use this file to create an instance of your form through code. In the UI API there is a Application object. This object has a method called LoadBatchActions which takes one parameter which is your srf file (ie the path and filename). Calling this method will create a form in the active UI based on your srf file. You can then create an instance of the Form object in the UI API and use this to manipulate your form through code.
I also recommend you look at the SDK learning material here on the SDN and also look at the samples that come with the SDK.
Kind Regards,
Owen
P.S. Please note that you've posted your question in the application forum for SAP Business One. This forum is for discussions on the application functionality of SBO and not the SDK. Instead, please post queries about screen painter and other development questions here:
SAP Business One SDK
Thanks -
Setting Folder Pane in Screen Painter
Hi All,
I have a question about setting a value of pane - folder's property. When I set this property in Screen Painter and choose form preview form's pane level changes, but when I save this form in xml file and load in my add on I have to add code that changes pane level after clicking on folder. Also SAPbouiCOM doesn't contain such property like Pane. What is this property for? Why it works in SP and doesn't when load from xml? Is this just for Screen Painter?
Regards
SzymonForm.PaneLevel is a property for form and it changes form panelevel.
I think that comparable property for for Folder.Pane (in Screen Painter) would be val off and val on.
The most important thing for me was to be sure that I have to handle changing of panelevel by myself. I thought that maybe this property wasn't handle by SAP SDK correctly.
Regards
Szymon -
[Help]Screen Painter
Hi experts,
Lately I'm using PL07 and now I uninstalled my SAP Client and installed PL04 after that, I'm having a problem with Screen Painter. Please check the image below. Help me about this.
http://www.webforone.com/images/5dwd2lodq9rsjs3aiaf.jpg
Thanks,hi hikaru,
Symptom
Add-on fails to upgrade on the client when there is a new add-on version available on the server in the common DB.
SAP Business One displays an error message:
"Add-on <Name of add-on>: Add-on installation failed because another version is already installed. Please ensure that the version number is higher than the version previously installed."
Add-on status is then set to pending.
Cause
Consulting.
This issue occurs when both of the following conditions are met:
There is a version of the add-on available on the server in the SARI table of the common DB that is newer than the one on the client.
The server name or IP address registered in the AddOnsLocalRegistration.sbo file on the client for this add-on is different than the name or IP address registered with the license server for the SAP Business One database server.
For example, this issue can occur after upgrading to SAP Business One 8.8 and "(local)" is listed as the server name in the AddOnsLocalRegistration.sbo file. But according to new security policies, "(local)" is no longer a valid server name and the server name registered with the license server will have changed when upgrading to release 8.8.
The following would occur in such a case:
The SAP Business One 2007 client connects to the (local) server.
The client registers an add-on from the server.
The server is upgraded to release 8.8, and is registered with the license server with an IP address or server name. The client upgrades to release 8.8, and continues to work with the same server. The local AddOnsLocalRegistration.sbo file is unchanged by the upgrade.
The add-on is upgraded on the server.
At the next logon, the client checks the version of the add-on on the server and finds that it has been upgraded. The client attempts to upgrade the add-on using the information in the AddOnsLocalRegistration file. But the upgrade fails because the server name in the file is incorrect.
Solution
(1) Open "AddOnsLocalRegistration.sbo" file
(2) Locate the "Common" node under the "AddOn" node and update the "Name" Attribute to the DB Server machine name which is currently used.
(3) Repeat step(2) to update the "Name" Attribute for all AddOns.
(4) Lanuch the SAP Business One and AddOn should upgrade as usual.
Other terms
SAP Business One client, AddOnsLocalRegistration.sbo, add-on upgrade, 8.8 add-on upgrade fails
regards,
Fidel -
Column order in screen painter
Hello all,
After creating a form in screen painter the column are not showing in the order they are shown in screen painter.
I checked the .srf file and the order of the columns is correct, but when SAP B1 opens the form the matrix has the order of the columns all mixed up.
Any ideias?
Thanks in advance.Hi,
Your question belongs to SDK forum. You may search that forum first. If there is no similar question with answer, post it there.
Thanks,
Gordon -
Hi Dear;
where can i find explanation about the screen painter and specially for the grid, columns and matrix
regards;Hi Satish;
i want a document that explain screen painter in deep and not like SDK.
where can i find these docs?
regards -
Screen Painter don't work when I click menu "Tools/Screen Painter", and show a System Message :Add-on Screen Painter is disconnected.Please contact:www.sap.com
Restart Add-on
Log off the current company
Continue working without this Add-on.
What should I do?Hi
First uninstall Screen Painter then open the file C:\Program Files\SAP\SAP Business One\AddOnsLocalRegistration.sbo
in notepad remove the lines related to screen painter (If there is any)
<AddOn Exe="BK_ScreenPainter.exe" Installer="ScreenPainterInstaller.exe" InstallerMD5="384B6B18CA81A26CD8CC2A160BBBFC0A" Name="Screen Painter" Path="C:\Program Files\SAP\SAP Business One\AddOns\BK\Screen Painter" SelfUpgrd="false" Space="BK" UID="BK_Screen Painter" UnInstEstTime="180" UnInstParams="/zu201Duninstallu201D /x" UnInstaler="ScreenPainterInstaller.exe" UnInstallerMD5="384B6B18CA81A26CD8CC2A160BBBFC0A" Ver="880229"><Common ID="1" Name="B1DEVSRV"/></AddOn>
save it and try again to install the screen painter.
If that doesn't work go to this C:\Program Files\InstallShield Installation Information directory and find find the screen painter installer and remove it.
Hope this will help you
Regards
Arun TB -
How to Create form in Screen Painter
Hello to all,
My client want Quality Report just like they add in microsoft excel that is they say that they doesn't want addon
so i have to create form just like excel that is there employee feel that they enter data in SAP
so i create it through screen painter?
Where i got full demo of screen painter that how it work?Hi Jaykumar......
This question is into wrong forum.
You should post it into SDK/Addons Forum
Please close this thread and open the same one in suggested forum where you find No. of experts to solve your problem.......
Regards,
Rahul -
Option Button Databinding in Screen Painter
What is the correct way to specify Databinding in the Screen Painter for Option Buttons? I assume that the first button is specified differently than the others, so I will need to know how the settings for the second option button differ from the first button.
Also, how is the Groupwith property handled with the Screen Painter?Hi Bob,
You need to create a UserData source and bind it to the option buttons you want to link together. Try to do it with screen painter but if it does not work you can go to the generated xml file and modify it by hand.
The groupwith property is not handled by the ScreenPainter, you must do it in the xml file.
You have a sample code in the UI API SDK Help.
Hope it helps
Trinidad. -
Load form created by screen painter
hello every one,
i've a problem. What are the steps to be followed to load a form created by screen painter? might i have any sample code In order to understand the various phases? thank a lothi
lorenzo pelati
first u create a form in screen painter , nd after save this form , when u save this form than this fom extation is .srf file, after that convert this file to .xml
file , and after call this form to our application ,
follow this code.........................................
in this code newpa.xml is a one form xml file.
in this code SBOFormEditor_13 is a screen painter form id,
private void LoadFromXML( ref string FileName ) {
System.Xml.XmlDocument oXmlDoc = null;
oXmlDoc = new System.Xml.XmlDocument();
// load the content of the XML File
string sPath = null;
sPath = System.IO.Directory.GetParent( Application.StartupPath ).ToString();
sPath = System.IO.Directory.GetParent( sPath ).ToString();
oXmlDoc.Load( sPath + "
" + FileName );
// load the form to the SBO application in one batch
string sXML = oXmlDoc.InnerXml.ToString();
SBO_Application.LoadBatchActions(ref sXML);
private void SaveAsXML( ref SAPbouiCOM.Form Form ) {
System.Xml.XmlDocument oXmlDoc = null;
string sXmlString = null;
oXmlDoc = new System.Xml.XmlDocument();
// get the form as an XML string
sXmlString = Form.GetAsXML();
// load the form's XML string to the
// XML document object
oXmlDoc.LoadXml( sXmlString );
string sPath = null;
sPath = System.IO.Directory.GetParent( Application.StartupPath ).ToString();
SBO_Application.MessageBox("sahe ha " + sPath, 1, "OK", "", "");
// save the XML Document
oXmlDoc.Save( ( sPath + @"\newpa.xml" ) );
public call form() {
SetApplication();
string transTemp0 = "newpa.xml";
LoadFromXML( ref transTemp0 );
oForm = SBO_Application.Forms.Item("SBOFormEditor_13");
// Show the loaded Form
oForm.Visible = true;
SaveAsXML( ref oForm );
fallow this code .
Maybe you are looking for
-
Special characters in the combo box
Hi OIM Gurus, I have populated some values with special characters in combo box,when i select the option it should show me the result set ,instead it shows"Illegal Characters Entered The data provided contains special characters that are not allowed.
-
No PPPoE Configurations were found.
I have an icon in the toolbar on the desktop which is shaped like 2 arrows facing away from eachother with a couple of dots inside them. I only have one network set which is wi-fi so I don't understand how to get rid of the icon. I would like to be a
-
How to delete a discussion I just created?
Oops I posted my # in my last post delete please!!!
-
Never-Ending transcoding/importing? Here's the fix.
Symptom: Transcoding keeps getting to 99% or so, and reverting back to 75% and continuing Ad Infinitum in a seeming never-ending loop. Problem: The registry is corrupted. Solution: 1. Close all programs. 2. Run Regedit. 3. Go to HKEY_CURRENT_USER ->
-
PIR Tariff Preference data update using BAPI/FM
Hi Experts, I have a business requirement to update the "Vendor Declaration" data in the PIR. Change PIR (ME12) -- > Extras --> Tariff Preference We want to update the following fields from a ABAP program. LFEI-WERKS LFEI-GZOLX LFEI-PRENE LFEI-PRENG