sapb1

Create Custom ActiveX Controls for SAP B1

独自空忆成欢 提交于 2020-04-12 10:21:01
问题 I am trying to create custom control for SAP b1 using ActiveX. I created Windows Forms Control Library Made Project Assembly Info COM-Visible (Project properties => Application => Assembly Information) Registerd for COM interop (Project properties => Build) My UserControl looks like this: [ComVisible(false)] public delegate void OnCheckBoxClickEventHandler(string val); [ProgId("MyComLib.Controls.TextBoxCheck")] [ClassInterface(ClassInterfaceType.None)] [ComSourceInterfaces(typeof

SAP B1, How to display fetched Image from ItemImage?

筅森魡賤 提交于 2020-02-03 03:57:09
问题 I'm fetching an image from SAP B1 Service Layer. In postman, I'm able to view it as image/png , but there is an issue displaying it. What's the correct way to show it in <img /> ? require(fetchedImage) - doesn't work I have created a Cloud Function to fetch the image and pass it on to the client, but I am not sure how to do it. Having a super weird object something like this data: > '�PNGörönöu001aönöu0000öu0000öu0000örIHDRöu0000öu......... Don't know how to pass it via res.send(IMAGE IN PNG)

Escape value in MSSQL Server with Java

末鹿安然 提交于 2019-12-25 06:36:34
问题 How can I escape a value for usage in a query to MSSQL Server? I know how it would be possible using JDBC but since I'm using SAP Business One DI API there is no way (I'm aware of) of using prepared statements. It would be sufficient to know how to escape string values while additionally knowing how to escape identifiers would be nice, too. Update : After reading New SQL Truncation Attacks And How To Avoid Them it seems sufficient to escape identifiers using [ (and doubling each occurrence of

How can I add service call in SAP B1 SDK?

好久不见. 提交于 2019-12-25 00:09:01
问题 I want to add service call in SAP B1 SDK but I'm getting the following error message Notice: Trying to get property of non-object in C:\wamp Error:-5002 Below are sample codes of PHP $oService=$mycomp->GetBusinessObject(191); $oService->CallType=5; $oService->CustomerCode="460201"; $oService->subject="Text here"; $oService->Add; Is there any other field which is mandatory 来源: https://stackoverflow.com/questions/57376155/how-can-i-add-service-call-in-sap-b1-sdk

SAP DI Server - How to issue first request?

大兔子大兔子 提交于 2019-12-22 01:32:44
问题 I have set up a Windows server using SAP Business One, and am trying to fire up the DI Server. I would like to make a HTTP request with a SOAP body, but I don't know what URL to put in postman. I also can't figure out how to run the example files in the installation folder for DI Server. Does anyone know how to get started with DI Server? 回答1: Unless you are also using B1WS, starting the DI-Server service doesn't give you a listening HTTP server. You need to write your own listener, for

SAP DI Server - How to issue first request?

╄→гoц情女王★ 提交于 2019-12-04 23:24:39
I have set up a Windows server using SAP Business One, and am trying to fire up the DI Server. I would like to make a HTTP request with a SOAP body, but I don't know what URL to put in postman. I also can't figure out how to run the example files in the installation folder for DI Server. Does anyone know how to get started with DI Server? Unless you are also using B1WS, starting the DI-Server service doesn't give you a listening HTTP server. You need to write your own listener, for instance as a simple .ashx page hosted under IIS, which accepts a request and passes it to the Interact method of