Remove slices through SDK?

I can't find any information on this in the SDK PDF (only a read-only property for how many slices a document contains), but is there a method to automatically remove any slice data that's in an image? I ask because if you use the Save For Web export as part of your script, and if the file contains slice data, Photoshop creates an "images" folder alongside an HTML document. This causes problems though if you're writing a document (like XML) that links to that export content for the paths are invalid (for they're not what you specified and instead include the "images" slice folder).
So what I was hoping to do, since my export script doesn't save the original docs anyway, was to wipe out any slice data before export to avoid the directory issue.

Hi,
try this one
Dim rsd As SAPbobsCOM.Recordset
        rsd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
        rsd.DoQuery("SELECT T0.[TableName] FROM OUTB T0")
        Dim sTableID As String
        Do Until rsd.EoF
            sTableID = rsd.Fields.Item("TableName").Value.ToString.Trim
            Dim oTables As SAPbobsCOM.UserTablesMD
            oTables = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
            If oTables.GetByKey(sTableID) = True Then
                oTables.Remove()
            End If
            oTables = Nothing
            rsd.MoveNext()
        Loop
Regards,
Siva

Similar Messages

  • How  To Remove Tables Through SDK Code(Using MetaDataObject)

    Hi Experts,
    I am with a problem in my sdk code.As follows,I added a table with no object  into the database through the sdk code using OUsertablesMd object.Now My Query is i want to delete the same table through my code.I am using oUserTablesMD.Remove()
    Method.It's throwing an error message.If any one culd send the sample of removing sap tables through dk code would be helpful
    Help Would be appreciated!!
    Thanking You,
    Vijay Kumar

    Hi,
    try this one
    Dim rsd As SAPbobsCOM.Recordset
            rsd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            rsd.DoQuery("SELECT T0.[TableName] FROM OUTB T0")
            Dim sTableID As String
            Do Until rsd.EoF
                sTableID = rsd.Fields.Item("TableName").Value.ToString.Trim
                Dim oTables As SAPbobsCOM.UserTablesMD
                oTables = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                If oTables.GetByKey(sTableID) = True Then
                    oTables.Remove()
                End If
                oTables = Nothing
                rsd.MoveNext()
            Loop
    Regards,
    Siva

  • Problem with UDO Registration through SDK (Default Form Option)

    Hello All,
    I am trying to create a UDO Registration through SDK which is done easily but the udo contain default form option.
    But after creating the udo , the defualt form option is clicked in the wizard but the system is not showing that default form in SAP.
    Please suggest if i am missing something for making this udo a default form .
    Code which i have written is following :-
    Dim oUserObjectMD1 As SAPbobsCOM.UserObjectsMD
                oUserObjectMD1 = Class_Law_Main.ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
                If oUserObjectMD1.GetByKey("OSL_LawStage_Master") = False Then
                    oUserObjectMD1.CanCancel = SAPbobsCOM.BoYesNoEnum.tNO
                    oUserObjectMD1.CanClose = SAPbobsCOM.BoYesNoEnum.tNO
                    oUserObjectMD1.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
                    oUserObjectMD1.FindColumns.ColumnAlias = "Code"
                    oUserObjectMD1.FindColumns.ColumnDescription = "Code"
                    oUserObjectMD1.FindColumns.Add()
                    oUserObjectMD1.FindColumns.ColumnAlias = "Name"
                    oUserObjectMD1.FindColumns.ColumnDescription = "Name"
                    oUserObjectMD1.FindColumns.Add()
                    oUserObjectMD1.FindColumns.ColumnAlias = "DocEntry"
                    oUserObjectMD1.FindColumns.ColumnDescription = "DocEntry"
                    oUserObjectMD1.FindColumns.Add()
                    oUserObjectMD1.FindColumns.ColumnAlias = "U_StgName"
                    oUserObjectMD1.FindColumns.ColumnDescription = "Stage Description"
                    oUserObjectMD1.FindColumns.Add()
                    oUserObjectMD1.FindColumns.ColumnAlias = "U_StgSeq"
                    oUserObjectMD1.FindColumns.ColumnDescription = "Stage Sequence"
                    oUserObjectMD1.FindColumns.Add()
                    oUserObjectMD1.FormColumns.FormColumnAlias = "Code"
                    oUserObjectMD1.FormColumns.FormColumnDescription = "Code"
                    oUserObjectMD1.FormColumns.Add()
                    oUserObjectMD1.FormColumns.FormColumnAlias = "U_StgName"
                    oUserObjectMD1.FormColumns.FormColumnDescription = "Stage Description"
                    oUserObjectMD1.FormColumns.Add()
                    oUserObjectMD1.FormColumns.FormColumnAlias = "U_StgSeq"
                    oUserObjectMD1.FormColumns.FormColumnDescription = "Stage Sequence"
                    oUserObjectMD1.FormColumns.Add()
                    oUserObjectMD1.CanDelete = SAPbobsCOM.BoYesNoEnum.tNO
                    oUserObjectMD1.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
                    oUserObjectMD1.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
                    oUserObjectMD1.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO
                    'oUserObjectMD1.ChildTables.TableName =
                    oUserObjectMD1.Code = "OSL_LawStage_Master"
                    oUserObjectMD1.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
                    oUserObjectMD1.Name = "Law Stages Master"
                    oUserObjectMD1.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData
                    oUserObjectMD1.TableName = "OSL_OLSG"
                    lRetCode = oUserObjectMD1.Add()
                    '// check for errors in the process
                    If lRetCode <> 0 Then
                        Class_Law_Main.ocompany.GetLastError(lRetCode, sErrMsg)
                        MsgBox(sErrMsg)
                    End If
                End If
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD1)
                oUserObjectMD1 = Nothing

    Hi Robert,
    I recommend you do your changes in your file/XML file before you load your form. It's much quicker and easier this way
    e.g
    //make your changes in your xml form
    SBO_Application.LoadBatchActions(ref YourXMLFileString);
    Cheers, Lita

  • How to call the javascript file through sdk?

    I created a plugin through SDK. Now i need to call my javascript file in that plugin code(c++). Could you please advice me with some samples. This is for "Illustrator CS".
    Thanks,
    Prabudass

    I haven't the foggiest idea, except to perhaps suggest firing a script by using the AIActionManager::PlayAction command. That's assuming you can 'action' the use of a script though. If you can, it should be possible that way, if not, I have no idea.

  • How to call the javascript  through sdk?

    I created a plugin through SDK. Now i need to call my javascript file in that plugin. Could you please advice me with some samples. This is for "Photoshop CS". Kindly help me.

    Could you please provide me an example for
    1) plugin could call JavaScript is if an automation plugin calls a script by name.
    2) And also give an example for how to call plugin through javascript.
    I am new for adobe sdk. So kindly help me.
    Thanks in advance,
    Prabudass

  • Using 'Launch Application' through SDK

    Hi,
    I want to know if there exists a way of using the 'Launch Application' feature through SDK other than using something like System.Diagnostics.Process.Start("***.exe").
    Thanks,
    Binita

    Hi Binita,
    You can use the following code:
    oApplication.ActivateMenuItem("523")
    oForm = oApplication.Forms.ActiveForm
    If oForm.TypeEx = "20100" Then
       oForm.Items.Item("3").Specific.Columns.Item("0").Cells.Item(1).Click() '// replace 1 with whatever row you want
       oForm.Items.Item("1").Click()
    End If
    Regards,
    Vítor Vieira

  • How To Add Freight Amount in Invoice Before the Invoice is Posted Through SDK

    Dear All,
    I have a requirement in SAP B1 9.0 where the user want to add the freight amount in the freight window based on an udf value automatically .
    So if there is an possibility of adding the freight amount based on an udf calculated value though SDK before the Invoice get added in the Database.
    Please suggest if this is possible through SDK or any work around for this scenario in SAP.
    Thanks & Regards,
    Amit

    Hi Amit,
    Here is a way to do it via UIAPI:
    Setting a Freight by the UI API ?
    If you need to do it via DIAPI, have a look here:
    How to update amount in freight column(INV3) of A|RInvoice through SDK
    DI Copy AP(AP Invoice) from PO(Purchase Order)
    Populating Freight Charges on Sales Order
    Freight in A/R Invoice
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Create Print Layout Design Through SDK

    Hello,
    I want to ask is it possible to create Print Layout Design For Invoices through SDK .
    Thanks,
    Amit

    Hi Amit,
    It is not possible to get PLD through SDK.  You can only use crystal reports if you want it thru SDK.  More over, PLD is client specific.  So if you design it in your system, then, you need to use Copy Express to push it to your client's (end user) system.
    Regards,
    Satish.

  • Change quantity of a component in a BOM created through SDK

    I am creating AR Invoices which are based on Sales Orders through SDK. These SO have a BOM which has only 1 component, when I create a AR Invoice off of these SO I have to be able to change the quantity which is delivered. How do I specify that I am changing the quantity of the component and not the amount of the Parent?
    thx,
    Richard

    Owen,
    If you go to Document Settings and change the selection to Price and Total for Parent Item Only, when you choose this BOM which is a Sales Item, you can modify the quantity of the Child Item and it does not affect the Parent Items price or quantity.
    This is what I am trying to accomplisg through the SDK, but it seems all I can insert is the Parent Item in the Marketing Document, how can I alter the Child quantity?
    thx,
    Richard

  • Printer Dialog Box through SDK creating problem

    Hello Experts,
    I have created a addon for printing Invoice Report in which i have given the option of Printer Dialog Box .
    Through sdk i have called that printer dialog box in the addon .It's running well in the server showing the Printer Dialog Box
    but while running the addon in client machine first two to three times printer dialog box appears after that while pressing the
    print button of my addon form Printer dialog box is not appearing .
    Then after restarting the machine Printer dialog box shows which is creating problem for the client use .
    Suggest the right way to sort out the problem .
    If anyone need to see the code which i have written i can post that code.
    Thanks
    Amit

    Hello Janos,
    Following code i have write for prrinter dialog box to open
    Public Sub ShowPrintDialogBrowser()
    Dim MyProcs() As System.Diagnostics.Process
    FileName = ""
    Dim PrintFile As New PrintDialog
    Try
    PrintFile.AllowSelection = True
    PrintFile.ShowNetwork = True
    MyProcs = Process.GetProcessesByName("SAP Business One")
    Dim UserName = Environment.UserName
                 For i As Integer = 0 To UBound(MyProcs)
                    If GetProcessUserName(MyProcs(i)) = UserName Then
                        GoTo NEXT_STEP
                    End If
                Next
                sbo_application.MessageBox("Unable to determine Running processes by UserName!")
                GC.Collect()
                Exit Sub
    NEXT_STEP:
    For i As Integer = 0 To MyProcs.Length - 1
    Dim MyWindow As New WindowWrapper(MyProcs(i).MainWindowHandle)
    Dim ret As DialogResult = PrintFile.ShowDialog(MyWindow)
    If ret = DialogResult.OK Then
    File_Directory = PrintFile.PrinterSettings.PrinterName
    PrintFile.Dispose()
    ElseIf ret = DialogResult.Cancel Then
    File_Directory = ""
    System.Windows.Forms.Application.ExitThread()
    Else
    File_Directory = ""
    System.Windows.Forms.Application.ExitThread()
    End If
    Next
    End If
    Catch ex As Exception
    SBO_Application.MessageBox(ex.Message)
    FileName = PrintFile.PrinterSettings.PrinterName
    Finally
    PrintFile.Dispose()
    End Try
    End Sub
    Imports System.Management
    Private Function GetProcessUserName(ByVal Process As Process) As String
            Dim sq As New ObjectQuery("Select * from Win32_Process Where ProcessID = '" & Process.Id & "'")
            Dim searcher As New ManagementObjectSearcher(sq)
            If searcher.Get.Count = 0 Then Return Nothing
            For Each oReturn As ManagementObject In searcher.Get
                Dim o As String() = New String(1) {}
                'Invoke the method and populate the o var with the user name and domain                        
                oReturn.InvokeMethod("GetOwner", DirectCast(o, Object()))
                Return o(0)
            Next
        End Function
    Regards,
    Amit

  • 'Add in Sequece' button click event through SDK

    Hi fellow developers,
    How can I activate the 'Add in Sequence' button of Incoming Payments screen through SDK. I don't see any event that corresponds to it.
    In document creation for example we have, obj.Add()
    Please help.
    Thanks.
    Edited by: Ryan Paras on Feb 25, 2010 10:56 AM

    hi. but i need to do this in c #, so it is relevant to c#
    http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz

  • How do load system form matrix -Inventory-Goods Issue through SDK UI &DI

    While I am accessing system form matrix -Inventory Goods Issue/ Goods Receipt, the matrix object is not accessible.
    Error is coming stating "Item 13 is invalid, where 13 is item uid for matrix.
    So,How do load system form matrix -Inventory-Goods Issue(FORM 720/-720) through SDK UI &DIAPI.
    Form Type: -720
    How to get reference of System form matrix object -Inventory-GoodsIssue.
    Some thing similar to CopyFrom functionality for -Inventory-Goods Issue.
    Currently my client requirement is as follows.
    I created a UDF ((U_ILC) Incoming Log Challan) for marketing documents. And, this field is added in the header level of Goods Reciept, Goods Issue documents.
    1. Through Inventory->Goods Receipt (ILCNo.10), items are received. Assume, M00001, M00002 are the items received with qty, price, whse, account values.
    2. Through Inventory->Goods Issue, item should be issued. In this Goods Issue Form, after entering U_ILC value as 10, pressing Tab, the GoodsIssue matrix should be loaded with the values of GoodsReceipt(IGN1 for U_ILC:10) document i.e. M00001,M00002 along with the same values as in GoodsReceipt of ILC:10.
    The code is as follows:
    If (( ( pVal.FormType = "-720" or pVal.FormType = 720) And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = False)) Then
                '// get the event sending form
                oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If pVal.ItemUID = "U_ILCNo" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.Before_Action = False Then
                    SBO_Application.MessageBox("ILC No. Lost Focus")
                    oMatrix = oForm.Items.Item("13").Specific
                    oColumn = oForm.Columns.Item("1")
                    oEditItmCode = oColumn.Cells.Item(1).Specific
                    oEditItmCode.Value = "07215090x606"
                    oItem = oForm.Items.Item("U_ILCNo")
                    oEdit = oItem.Specific
                    SBO_Application.MessageBox(oEdit.String)
                End If
            End If
    3. The code
    oMatrix = oForm.Items.Item("13").Specific
    is raising error. I have used Event Logger and breakpoints to see where the code is halting.
    Help me, how to access the matrix of Goods Receipt/ Goods Issue and load based on the existing data.
    Thanks in advance

    HI
    If your code is in the SBO_Application_ItemEvent then try using this line
    oForm = SBO_Application.Forms.Item(strFormUID)
    instead of
    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

  • How to disable formsetting menuitem through sdk code

    hi experts,
    I am facing bit problem while loading my udo screen ,when my screen is getting opened sap's menuitem formsetting is enable'd,My requirement is to disable the formsetting menuitem only when udo screen opens through sdk code.so,that user cannot change any of the field in the matrix.
    help would be appreciated.
    regards,
    Vijay Kumar

    Hi Vijay ,
    Try This.....
    'After Loading form
    oform=sbo_application.forms.item("ur fromid")
    sbo_application.Menus.Item("5890").Enabled = False
    Thanks
    Shafi

  • Unit price change through SDK

    Hi,
    We have set limited rights to sales user (permission not given for user to "change row amounts") at sales order row level. Is there any way to change Unit Price or discount  in sales order through SDK?  We have to reset Unit price/discount for free Item.
    Can any one done this type of possibilites?
    Regards,
    Manish

    Hello Manish,
    what do you mean "free" items? Discoun of All items can freely changed or there are several items which discounts can be changed/cleared.
    Stored procedure is not a good idea, because updating by SQL a field is not allowed by SAP.
    >Is there any way to change Unit Price or discount in sales order through SDK? We have to reset Unit price/discount for free Item.
    If the user do not have a permission to change the "change row amounts", and cannot clear the Unit Price/Discount via GUI, DI API / Addon using single sign on the client will not change the unit price/discount, because it is running with the same rights as GUI.
    I am suggesting the following steps:
    1.  Grant the correct rights to the user to change the unit price/discount
    2.  Create a Formatted Search on the Discount field which clears the discount when an item is "free" item
    3. Block the changes of discount/Unit Price for  non free items via SP Transaction_Notification
    in point (2), (3) you the "free" items should be marked somehow (item property, UDF in Item master data, etc).
    Regards,
    J.

  • Document approval through SDK

    Hello Experts!
      Do you know if there is a way of performing the approval of a document through SDK?
      There are some DI API objects for Approval stages and approval templates, but that's all i can find.
      The reason i ask is,  that one of our partner finds the way of approving inconvenient. The approval report cannot be customized exactly to their needs. So i offered them to develop a custom form with all the info they need in one screen, but all i can do is to place a button on the screen, and clicking this button would open the native Document approving form, where they could confirm or reject the document. It is still not enough for them, they want to approve the document inline, without opening another form.
      Is there a way to do this?
    Thank you, Gergő

    Hi,
    To Edward: I think your comment is out of topic
    To János: A big thank you. Your answer (before you edited it) force me to try it in code, because I was searching the same information as Gergely did and I was sure, it is not possible to handle Approval Procedures (not Approval Stages and Approval Templates ) by DI API. The reason is: No Google finds, no DI API Help info, no sdn.sap forum finds.
    To all: Although there is no info in DI API help (and nowhere else) it is possible to approve/reject document via DI API through ApprovalRequestsService.
    How to do it:
    SAPbobsCOM.ApprovalRequestsService oApprovalRequestsService = null;
    SAPbobsCOM.ApprovalRequestParams oApprovalRequestParams = null;
    SAPbobsCOM.ApprovalRequest oApprovalRequest = null;
    SAPbobsCOM.ApprovalRequestDecision oApprovalRequestDecision = null;
    oApprovalRequestsService =
      (SAPbobsCOM.ApprovalRequestsService)MyCompanyService.GetBusinessService(
          SAPbobsCOM.ServiceTypes.ApprovalRequestsService);
    oApprovalRequestParams =
      (SAPbobsCOM.ApprovalRequestParams)oApprovalRequestsService.GetDataInterface(
          SAPbobsCOM.ApprovalRequestsServiceDataInterfaces.arsApprovalRequestParams);
    int wddCode = 1;
    oApprovalRequestParams.Code = wddCode;
    oApprovalRequest = oApprovalRequestsService.GetApprovalRequest(oApprovalRequestParams);
    oApprovalRequestDecision = oApprovalRequest.ApprovalRequestDecisions.Add();
    oApprovalRequestDecision.Status = SAPbobsCOM.BoApprovalRequestDecisionEnum.ardApproved;
    oApprovalRequestDecision.ApproverUserName = SAPB1UserName;
    oApprovalRequestDecision.ApproverPassword = SAPB1Password;
    oApprovalRequestsService.UpdateRequest(oApprovalRequest);
    Hope it helps
    D.

Maybe you are looking for

  • My ipod touch isn't being recognized by iTunes or my computer. It's in "ipod recovery mode"?

    My ipod touch 5th generation is not being recognized by my computer under devices or in itunes; however, when I click on devices and printers it comes up under "unspecified" and is labeled as "Apple mobile device usb driver." I right clicked the icon

  • Firefox crashes while starting up

    After having used Firefox for years on my iMac, today it won't even start but immediately crashes. I have tried starting from the safe modus and I have installed the latest software updates. Also I use the lates Mac OS X version. My safety program re

  • XML file to oracle via Java

    We have written a command line program that receives orders in a number of different formats by email and parses them to a common xml structure. We want to pass this xml document to a PL/SQL procedure that breaks it apart and inserts the elements int

  • Selcting records with most recent date

    Hello Friends I am new to this group. I am having a set of records as follows in a table col1,col2, col3(dd/mm/yyyy) 1 abc 1/1/2007 1 def 2/1/2007 2 ghi 1/1/2007 2 --- 3/1/2007 (No value in col2) 3 jkl 1/1/2007 3 mno 4/1/2007 I would like the output

  • Why can't I click on the movie clips when they are moving fast?

    I am making a game where insects in an array fall down from above the screen. The user clicks on these insects to increase his/her score. When the score reaches specific points, the speed increases. When the speed increases, it gets harder to click o