We have a BMC Remedy form that contains classroom information along with jpg or gif attachments. To pull these images from the Remedy form into a .NET web application, use the following code:
byte[] content = null;
server.GetEntryBLOB("AssetRooms", id, 536880917, out content);
string base64String = Convert.ToBase64String(content, 0, content.Length);
if (base64String.Equals(""))
{
Label1.Text = "<br/><br/> Map not available.";
Image1.Visible = false;
}
else
{
Image1.ImageUrl = "data:image/png;base64," + base64String;
Image1.Visible = true;
}
Image1 is an Image control:
<asp:Image ID="Image1" runat="server" Height = "380"/>
Showing posts with label Remedy. Show all posts
Showing posts with label Remedy. Show all posts
Tuesday, November 27, 2012
Monday, November 5, 2012
RANK function to create primary key for a Remedy View Form
To create Remedy View Form, you will need a database table or view that contains
a numeric primary key. Since your table or view might not have a column that
fits this requirement, you may need to dynamicall y create one in the building
of the view.
Use the RANK function to create an incrementing value and then cast it as a an integer:
CAST(RANK() OVER(ORDER BY TERM,CAMPUS,BUILDING,ROOM,CRS_PREFIX,CRS_NUMBER,CRS_SUFFIX) AS int) AS Record
Use the RANK function to create an incrementing value and then cast it as a an integer:
CAST(RANK() OVER(ORDER BY TERM,CAMPUS,BUILDING,ROOM,CRS_PREFIX,CRS_NUMBER,CRS_SUFFIX) AS int) AS Record
Subscribe to:
Posts (Atom)