Customizing code formatting

1) I converted a tables layout to AP Elements and the code is awful. Meaning that everything is tight up against each other with no spaces and it's difficult to find anything.  I'd like to set the div's so that there is an extra space after the </div> close. There is a post on the Adobe site (http://www.adobe.com/support/dreamweaver/how/beginner/conduct/971208_beginner4.html) telling you how to do that by going into Dreamweaver > Configuration > SourceFormat.profile.  But in CS4, that profile is gone. Or at least I can't find it.
Is there any way I can make the change?  I sure don't want to have to go into all the code and put a return after each </div>. You can't make that specific change in the Tag Library.  It has only limited change abilities.
2) Also, in the Tag Library, I changed the div parameters to: Line Breaks - Before, Inside, After  and Contents - Formatted and Indented.  That change didn't carry over into my AP Elements code. It's still as messed up as it was.  How do I get those changes to apply to the code?

Turloch,
Thank you for the reply. I figured this may be a bug, so it is nice to have it confirmed. I can live with it not being correct as long as a fix will show up eventually.
The problem with using tabs or large settings for space is that it causes other parts of PLSQL to look to spread out. One thing that happens is that the right justification of the keywords gets messed up. But I can make soem SQL look OK with it, but that is at the expense of getting other ones to not look good. For example if I get the columns to line up with a leading comma, the concatenation is not correct and vice versa. I also get SQL to look better, but then indentation in PLSQL is too agressive and looks very bad.
I would like to be able to set and/or to be set to be handled as keywords so they too can be right justified. Columns (whether or not concatenated or separated with a comma) should be possible to align with the column in which the first column starts.
While I'm at it, there seems to be an issue with the formatting of keywords such as inner join. I think inner too should be considered keywords so it can be right justified with other keywords. Same thing with subselects, they end up the the left of the right column of the keywords.
I think the formatting features are really good now. There is still room for improvement to be able to control it enough to make it look exactly like I want, but it is getting close and flexible enough to allow many different ideas of how the template should be to be configured.
Thanks,
Mathias

Similar Messages

  • How do I do use the custom code and format for a percentage with 2 decimals in Report Builder 3.0?

    In Report Builder 3.0, I have the following custom code entered:
      Public Function SafeDivide(Numerator as String, Denominator as String) as String
    Try
    If Numerator = “” or Denominator = “” then
    Return “-“
    End if
    If Numerator = “-“ or Denominator = “-“ then
    Return “-“
    End If
    If CDbl(Numerator) =0 or CDbl(Denominator) = 0 then
    Return “-“
    End if
    If IsNothing(Numerator) or IsNothing(Denominator) then
    Return "-"
    End if
    Return Val( ( (CDbl(Numerator) / CDbl(Denominator) )*100 ) )
    Catch
    Return "-"
    End Try
    End Function
    I call the custom code in the cell with the following equation:
      =Code.SafeDivide(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value),sum(Fields!LY_UNITS.Value))
    I have the format for the cell set to 0.00%, but it’s not being followed.
    I want the result to be formatted as a Percentage, but instead I get values like: 
    -78.9473684210
    80
    300
    -100
    I have the format for the cell set to 0.00%, but it’s not being followed.
    How do I do use the custom code and format for a percentage with 2 decimals?

    Hi AngP,
    After testing the issue in my local environment, I can reproduce it. Based on my research, I find this issue is caused by the type of Units_VAR_Percentage cell is string, while the type of CDbl(Parameters!Var_Threshold.Value) is double, so they cannot be
    compared.
    To fix this issue, we can add a hidden column (Textbox91) next to the Units_VAR_Percentage column, and type =(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value)) /sum(Fields!LY_UNITS.Value) as the expression. Then use the expression below to control the
    BackgroundColor:
    =iif(iif(reportitems!Units_VAR_Percentage.Value=CStr(format(reportitems!Textbox91.Value,"0.00%")),reportitems!Textbox91.Value,0)>CDbl(Parameters!Var_Threshold.Value),"Yellow","PaleTurquoise")
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Custom Date format in InfoPath DatePicker without code

    Hello,
    I am trying to customize the date format in my date picker on my InfoPath form. I went to the date picker properties and was able to change it so that it displays the format in "14-Mar-01" but I want to really customize and have it formatted to look
    like the following "MMM-YY" format. Is there a way to go about setting this format without custom code? I am unable to use any server side code for my forms.
    Thank you!

    Hi,
    According to your post, my understanding is that you want to customize the date format like “MMM-YY” without custom code.
    The date format which is set in InfoPath Form is different from the date column’s default format in SharePoint.
    In SharePoint, the default format of the date column is depended on the selection of the “Time Zone”, “Region”, “Calendar” options in the “Regional Settings” of Site Settings.
    However, the date format which is set in InfoPath Form only works on the items’ NewForm, EditForm, DispForm in the lists.
    I recommend that you can create a calculated column based on the date column with this formula: =TEXT(Date,"MMM-YY").
    Then, you can modify view to display the calculated column and hide the date column in the list.
    The result is shown as below:
    Thanks,
    Yumi Fu
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • Hi..getting error while previewing the report..hi i have the custom code

    hi my custom code is as follows:
    Public Shared Function SetColor(ByVal OrderYear As datetime,ByVal LineTotal As numeric(38,6)) As String
    SetColor= "Transparent"
    If Productid >= 20 Then
    SetColor= "Green"
    End IF
    End Function
    i'm getting error as 
    "there is an error on line 0 of custom code:[BC30002] Type numeric is not defined:
    i have same datatype for LineTotal in my database.
    Please help.Thanks in advance..
    lucky

    Hi Lucky,
    Just as the error message said, there is no such data type named numeric in Visual Basic. The data type is actually exist in
    SQL Server, but it doesn’t means that it should also exist in
    Visual Basic. And based on my research, I couldn’t find a strictly equivalent data type in Visual Basic.
    Besides, it seems that there are something wrong in your code. For more details, please see:
    There is no such variable named Productid in the code, we should define it in the SetColor function in advance. Because you it used in the condition of if statement.
    We should remove the unused variable in the function. Such as OrderYear and LineTotal. If the function needs LineTotal variable, we can use double data type to define the data type of LineTotal after format it.
    The following custom code is for your reference:
    Public Shared Function SetColor(Productid As integer, ByVal LineTotal As Double) As String
    SetColor= "Transparent"
    If Productid >= 20 Then
    SetColor= "Green"
    End IF
    End Function
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Custom mail format

    Dear All,
    We are creating custom mail format to receive alert in case job got
    cancelled.
    We have designed job chain with 2 steps. First step has job name and second one has custom mail send job definition.
    1) I am able to get the job name for the step 2, job 2 not for the
    previous job i.e. step1, job 1 from below code.
    3) How to get mail subject as below
    "job name" has been failed.
    Any help is appreciated.
    Thanks in advance.
    Regrds,
    Jiggi

    Dear All,
    Problem is resolved by changing job definition for Step1.
    changed JOBNAME parameter as INOUT and used in STEP2 as reference.
    Regards,
    Jiggi

  • Custom code in SSRS gives error when uploaded to report in CRM online

    Hi All;
    Below is my custom code 
    Function SumLookup(ByVal items As Object()) As Decimal
    If items Is Nothing Then
    Return Nothing
    End If
    Dim suma As Decimal = New Decimal()
    Dim ct as Integer = New Integer()
    suma = 0
    ct = 0
    For Each item As Object In items
    suma += Convert.ToDecimal(item)
    ct += 1
    Next
    If (ct = 0) Then return 0 else return suma
    End Function
    and this code is used in 
    =Code.SumLookup(LookupSet(Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_fte.Value, "JobOutcome"))
    when this code is uploaded in CRM online report it gives an error 
    below is the error from the log file 
    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred while trying to add the report to Microsoft Dynamics CRM. Try adding the report again. If this problem persists, contact your system administrator.Detail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
    <ErrorCode>-2147188072</ErrorCode>
    <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>An error occurred while trying to add the report to Microsoft Dynamics CRM. Try adding the report again. If this problem persists, contact your system administrator.</Message>
    <Timestamp>2014-10-07T14:21:25.5823821Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
    </OrganizationServiceFault>
    but when i remove the custom code and upload the lookup as below i dont get any error
    =(LookupSet(Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_mainprogrammeid.Value & "," &
    Fields!new_subprogrammeid.Value & "," &
    Fields!new_outputs.Value & "," &
    Fields!new_claimmonthid.Value,
    Fields!new_fte.Value, "JobOutcome"))
    I need to calculate the sum of fte hence needed the custom code
    Any help on this much appreciated
    Thanks
    Pradnya07

    Hi Simran08,
    According to your description, you fail to add your report to CRM due to the custom code. Right?
    In this scenario, based on my knowledge, I find two issues in your custom code.
    You pass the array Items as argument to the function. This array is from the LookupSet() function. However, it returns an concatenated string with commas. When you convert it into decimal, it will throw error.
    In your For Each loop part, we should follow the format below:
    For Each element In group
    [statements]
    [Exit For]
    [statements]
    Next [element]
    It seems you miss Item after Next.
    If you still have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Pages custom date format

    I'm looking for a way to create a custom date format outside a Pages formatted cell. In other words, in text paragraphs, I need to be able to update the year only in a paragraph. Any ideas?

    If you are looking for the capability within Pages to insert a custom date field-code like the following, outside of a table, then I am not aware of how it can be done. I used LibreOffice 4.0 to produce the following image.
    When this was exported as a .docx file into Pages v4.3 on Mountain Lion, the YYYY format was replaced by a Pages date field. A right-button selection of this date in Pages offers an Edit Date & Time... menu item that produces the following panel:
    There is no YYYY format customization on this panel within Pages.
    It is possible to write an AppleScript service that runs from your Pages > Services menu and scans your Pages document for a date to convert to a YYYY replacement format. You may not want that either.
    Did this answer your question?

  • Import customs code list I0136 - how to get .xml file

    The code list I0136 from ATLAS is in format .tsv.
    It's possible to import the code list in transaction /SAPSLL/CUSCS_VMAINT, but you have to have a .xml file.
    Does anyone know where to get the customs code list I0136 in .xml or to convert .tsv into .xml without a special program?

    Hi Renate,
    where do you get this file in .tsv format from?
    I guess from a data provider?
    First thing I would do is to ask the data provider to send the file in another GTS compatible format.
    If you have no influence on the file format which is beeing delivered to you I would just convert those files.
    Easiest tool to convert those files with might be Excel since almost everyone is using it.
    You can import the .tsv into excel and save it as a .xml file afterwards.
    If you have trouble importing the file just check google (open .tsv Excel).
    You might have to tune several options during the import process but once you know the steps it should be easy for you to handle.
    Best Regards
    Gregor

  • Custom code does not work

    Hi all,
    I'm a newbie of SMP and SCN. I sincerely respect SMP leaders who posted nice blog.
    I’d like to know how can I process the request (the number of customers) from client application to SOAP request.
    My requirement is to connect SOAP WebService to client with Integration Gateway in SMP3 SP06.
    SOAP service is provided by RFC. I checked the following blog and created function module.
    http://scn.sap.com/docs/DOC-28582
    This function module can input customer code (optional) and the number of entities to output customer information such as customer code, name, address, country, postal code and city.
    I have configured SOAP WebServices with Integration Gateway in SMP3 SP06.
    http://scn.sap.com/people/marvin.hoffmann/blog/2014/03/15/how-to-connect-soap-webservices-with-integration-gateway-in-smp3
    OData looks like this:
    Operation is Query and Response Mapping is defined as below:
    At that time, I couldn’t see the Service Document of my OData service. So I added custom script to pass the Basic Authorization and input parameter.
    http://scn.sap.com/docs/DOC-58551
    Basic Authorization is working but the request
    parentMap.put(“IM_COUNT”, “5”) [the number of customer from FM]
    does not work. I thought I could see 5 customers information in the service document but I could see all the customers information.
    In addition, When I click on ”Define Request Mapping”,  eclipse says "Request mapping is not available for SOAP Query.”
    How do I implement my request successfully?
    Thanks,
    Hanae

    Hi Midhun,
    thank you for your quick response!
    I have already used SOAPUI to test my query.
    >it's creating an xml file in a specific format where you need to pass values to get the output.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:ZGetcustomerWebservice>
             <!--Optional:-->
             <ImCount>5</ImCount>
             <!--Optional:-->
             <ImKunnr>
                <!--Zero or more repetitions:-->
             </ImKunnr>
          </urn:ZGetcustomerWebservice>
       </soapenv:Body>
    </soapenv:Envelope>
    Is this the xml file you mentioned?
    I checked the following blog and tried debugging, but I couldn't see any variables value...
    Debugging Custom Script in Integration Gateway
    Here is my custom code:
    function processRequestData(message) {
       message.setHeader("Authorization", "Basic XXXXXXXX=");
       importPackage(com.sap.gateway.ip.core.customdev.logging);
       importPackage(com.sap.gateway.ip.core.customdev.util);
       importPackage(org.apache.olingo.odata2.api.uri);
       importPackage(java.util);
       importPackage(com.sap.gateway.core.ip.component.commons);
       importPackage(com.sap.gateway.ip.core.customdev.api);
       parentMap = new LinkedHashMap();
       parentMap.put("IM_COUNT", "5");
       //Set the message body back
       message.setBody(parentMap);
       //Logger
       importPackage (com.sap.gateway.ip.core.customdev.logging);
       log.logErrors(LogMessage.TechnicalError, "This is first log"+message.getBody().toString());
      return message;
    Authorization is perfectly working but others are not.
    It would be great if you could have suggestions.
    BR,
    Hanae

  • Custom Numeric Format - Treat Number as Custom

    Hi,
    I want to be able to format the number results in thousands or even in millions. In excel, the "in thousand" format will be like this:-
    _(* #,##0,;_(* (#,##0,);_(* "-"_);_(@_)
    How do we do it in Answers' column properties > data format?
    Any advise will be appreciated.
    Is there a list of the codes to use in the custom Numeric format?

    Hi,
    fx of Answer's column divide with 1000000 and select number of decimals in column properties -> data format
    for example table_name.amount/1000000
    UPDATED POST
    I think this is the only way...
    If answered assign points and close thread. it would be helpful for the users in the future......
    cheers,
    Aravind
    Edited by: Aravind Addala on May 18, 2011 9:07 PM

  • SAP Custom Code Maintainability Service - SAP AG only

    As an Enterprise support customer I have a quick question on Custom Code Maintainability Service
    We have previously requested this service from SAP and they have generated and gave us the report.
    My question:
    Is this service ONLY being done by SAP, or are we (as customers) also allowed to run this service ourselves?.
    When I look in the services available I cannot find the service to create and run myself. I am currently putting in some serious time to set-up the custom code life cycle management (CCLM). As part of this I would also like to run the service and generate the report myself, as I have done with some other service like TEA (Transport execution analysis)
    I have no problems with using CDMC (Custom development management cockpit) and to generate reports there, but it would be nice to actually run the service and generate the report ourselves.
    Much apreciated your feedback.

    Hi Midhun,
    thank you for your quick response!
    I have already used SOAPUI to test my query.
    >it's creating an xml file in a specific format where you need to pass values to get the output.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:ZGetcustomerWebservice>
             <!--Optional:-->
             <ImCount>5</ImCount>
             <!--Optional:-->
             <ImKunnr>
                <!--Zero or more repetitions:-->
             </ImKunnr>
          </urn:ZGetcustomerWebservice>
       </soapenv:Body>
    </soapenv:Envelope>
    Is this the xml file you mentioned?
    I checked the following blog and tried debugging, but I couldn't see any variables value...
    Debugging Custom Script in Integration Gateway
    Here is my custom code:
    function processRequestData(message) {
       message.setHeader("Authorization", "Basic XXXXXXXX=");
       importPackage(com.sap.gateway.ip.core.customdev.logging);
       importPackage(com.sap.gateway.ip.core.customdev.util);
       importPackage(org.apache.olingo.odata2.api.uri);
       importPackage(java.util);
       importPackage(com.sap.gateway.core.ip.component.commons);
       importPackage(com.sap.gateway.ip.core.customdev.api);
       parentMap = new LinkedHashMap();
       parentMap.put("IM_COUNT", "5");
       //Set the message body back
       message.setBody(parentMap);
       //Logger
       importPackage (com.sap.gateway.ip.core.customdev.logging);
       log.logErrors(LogMessage.TechnicalError, "This is first log"+message.getBody().toString());
      return message;
    Authorization is perfectly working but others are not.
    It would be great if you could have suggestions.
    BR,
    Hanae

  • SSRS custom code for count in Report Footer

    Hi All,
    Please help me with the custom code used for below requirement
    Debtor Name     current    30+days   60+days    90+days
    aaa                       7000        0.00          0.00          10.00
    bbb                       5000        0.00         20.99         3.00
    ccc                        1000       0.00          0.00           0.00
    Expected result in report footer :                  
                                              0                1            
       2
    if  the value of  30+ , 60+ and 90+ columns  >=1 then i have to display the count in Report footer,for that i have tried using a custom code like below :
    Shared Dim OD As Integer=0
    Public Shared Function Test(ByVal OP As Decimal) As Integer
            If OP >= 1 Then
                OD = OD + 1
            Else
                OD = OD
            End If
            Return OD
       End Function
    and using below code to display
    Code.Test(Overdue)  
    but when i use this code in report footer is not displaying correct value.Please guide me where i am going wrong.
    Please let me know if you need any other details.
    Thanks in advance,
    Samhith.

    Hi Samhith,
    Per my understanding you what to count the rows which values >=1 and display them at the bottom of the table, you are trying to use the custom code to do this but failed, right?
    I have tested in my local environment and find the custom code is not correctly, and I have an alternative method which is more easy and can work in both table  and matrix.
    As Vaibhav Chaudhari also mentioned that we can use the CountDistinct function, but more correctly, we can use the count() function and the RunningValue() function, because CountDistict will not count the duplicated values if they >=1.
    Please find the expression as below:
    =Count(IIf(Fields!Yourfield.Value>=1 , Fields!Yourfield.Value, Nothing))
    OR:
    =RunningValue(IIf(Fields!Yourfield.Value>=1 , 1, Nothing),Sum,"DataSetName")
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • How to execute custom code only when a specific node is selected in infoset

    Hi,
    We have written a piece of custom code under a node (P1045). Not all users will have access to this Infotype as it is related to Appraisals. So, when users (w/no access to 1045) try to run a Query for other info types data, they are getting error message 'Can not access 1045'. Custom code is getting generated whenever user runs a query. Tried to control custom code with simple IF condition by giving user name. Still generating 1045 code.
    All users use same infoset, where a group of users has access to 1045 and another group does not have access to 1045.
    Appreciate your inputs to get this resolved.
    Thanks,
    Swapna.

    Why don't you try another aproach, instead of adding the infotype to the infoset, create a new table as an alias (with the fields you want to show in regards to infotype 1045) and fill it in the node depending on the authorization check for that infotype in the code ?
    I think that adding the infotype as a node will always get the data from the infotype regardless, that is why it's showing the error.

  • Can I use Partial class to enhance a typed dataset without losing the custom code?

    Hi All,
    I wanted to see if I could use a Partial class for one of the datatable classes to add custom code so that when the dataset is regenerated I don't lose my code.
    Partial public
    Class
    WA_MMTP_TrackerDataSet1
     'Code for dataset
     Partial Public Class PATIENTSTableAdapter
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
             Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
            Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
                 Dim dd As System.Data.SqlClient.SqlCommand
                dd = new System.Data.SqlClient.SqlCommand
                dd.CommandText = Sql
                dd.Connection = OpenConnection() '  UsersTableAdapter1.Connection
                Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
                If (Me.ClearBeforeFill = true) Then
                    dataTable.Clear
                End If
                Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
                Return returnValue
            End Function
    'Other code for datatable
    end class
    end class
    I'd like to take the function FillbyClinicianId and put it in a separate partial class like so and remove the function by the same name from the original file (dataset file):
    Partial Public Class PATIENTSTableAdapter
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
             Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
            Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
                 Dim dd As System.Data.SqlClient.SqlCommand
                dd = new System.Data.SqlClient.SqlCommand
                dd.CommandText = Sql
                dd.Connection = OpenConnection() '  UsersTableAdapter1.Connection
                Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
                If (Me.ClearBeforeFill = true) Then
                    dataTable.Clear
                End If
                Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
                Return returnValue
            End Function
    end class
    But when I try this, the compiler gives the following errors:
    Error 91 'Adapter' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'. 
    Error 92 'ClearBeforeFill' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'. 
    I guess I'm a little confused. once code is moved into the custom partial class it seems to lose any knowledge of the main class file and any references in the class. Am I doing it wrong? or is it a restriction of the .Net since it is in another
    file. If its because its in another file, my next question would it be better to take the partial class I created to contain my custom code, should I just move my partial class to the bottom of the dataset.designer.vb file? But if I do this, wont it still
    erase my custom code. Any suggestions?
    Thanks
    Michael

    Thanks for the reply.
    They are compile time errors, but the error shows up even before compiling, so I guess it would be designer time exception also.
    What I did the other day was to create a new class file (didn't add a namespace statement to class) then added the code in prev message. This morning I added a new module and added the prev code in it incased in the namespace
    namespace ADO.NET.DataSet1TableAdapters statement. But I still have the same errors messages. I tried
    to set the Custom tool.namespace property of the dataset to WA_MMTPDataset and then did the following in a module:
    namespace WA_MMTPDataset
    Module Module4
    Partial Public Class PATIENTSTableAdapter
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
    Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
    Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
    Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
    Dim dd As System.Data.SqlClient.SqlCommand
    dd = new System.Data.SqlClient.SqlCommand
    dd.CommandText = Sql
    dd.Connection = OpenConnection() ' UsersTableAdapter1.Connection
    Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
    If (Me.ClearBeforeFill = true) Then
    dataTable.Clear
    End If
    Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
    Return returnValue
    End Function
    End Class
    Partial Public Class UsersTableAdapter
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
    Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
    Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
    Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.UsersDataTable, ClinicianId As Integer, sql As string) As Integer
    Dim dd3 As System.Data.SqlClient.SqlCommand
    dd3 = new System.Data.SqlClient.SqlCommand
    dd3.CommandText = Sql
    dd3.Connection = OpenConnection()
    Me.Adapter.SelectCommand = dd3 'Me.CommandCollection(0)
    If (Me.ClearBeforeFill = true) Then
    dataTable.Clear
    End If
    Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
    Return returnValue
    End Function
    End Class
    End Module
    End Namespace
    But I'm still getting the same errors.

  • How to control or manipulate a report parameter through SSRS Custom Code

    Hi,
    In reporting services 2005 or 2008, is it possible to control the parameters inside the custom code of a report?
    for example:
    Let's say I have a parameter that displays the following value:
    Red
    Green
    Blue
    In typical scenario I can select one of the values or I can select all of the values then click the View Report button in reporting services.
    I know that this approach is much easier to do if I have an external application like ASP.Net and from there I'll just add report viewer and control the parameters to be passed and then generate the report.
    In the report I added text box that will serve as a hyperlink to refresh report:
    In the Text Box Properties\Action tab. Is it possible to control the selection of values through a custom code(SSRS Custom Code) then the report will be automatically refreshed?
    thanks,
    Joefer

    Not sure about doing a multiple selection. But you can pop up an input box to get the input on the fly.
    Add the below custom code and expression for the above parameter
    Public function Getparamvalue() AS STRING
    Dim x as STRING
    x = InputBox("Enter Red / Blue / Green")
    Return(x)
    End function
    =Code.Getparamvalue()

Maybe you are looking for

  • Issue in sending the file as attachment

    I am using functional module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the email with attachment. If the file type is 'RAW', the records are getting displayed as that of the source file. For the other file types, all the records are getting displayed i

  • Commenting in Reader Not Working

    I am using Pro 9 and have enabled commenting for Reader users.  My collaboration is file based (stored on local server with full access rights).  I have two problems. 1) Comments made by others are not visible in pure Reader users.  I can see the com

  • Cant Publish fla file in 2 different versions of Flash

    This is a strange one.... someone please help... I have tried this fla file on a couple of pcs and a couple of versions of flash now, version 8 and 9.... Creating new fla and publishing them to swfs on both pcs and in both versions is fine, and even

  • Facing an error oxE8000065, unable to sync my iphone 5c to the itunes(desktop)

    I am using an iphone 5c. I have been trying to connect it to my computer to sync it. But i have been getting an error OxE8000065. I tried looking for solutions online. I tried connecting the usb cord to different usb ports but didn't work. I reinstal

  • Album cover image missing in Itunes

    Itunes added most of the album covers I have in my music library but some are still missing I have gone to google.com and clicked on images then searched for album cover images, chose a cover and saved to my desktop, but the image will not paste. Wha