Programmaticaly Stop Workflows In Dynamics 2011?
May 17, 2012
I need to stop all running workflows associated to an incident (and those with a name that begins with "Auto_").
However, I can't seems to find any documentation on how to stop workflow programmatically and I can't find how they are stored in the DB.
View 1 Replies
ADVERTISEMENT
Feb 7, 2011
For some reason vb keeps changing my dates format and removes the 0s at first this wasnt a problem but it really messes up my sorting in my gridview.
Dim aftersubtraction As Date
aftersubtraction = departuredate.AddDays(-dates1.Text)
dates.Add(aftersubtraction.AddDays(-gracep.Text))
View 5 Replies
Mar 21, 2011
I have a datetime datatype field in mssql2005 database ...
which retrieves the date in gridview as .. 4/7/2011 12:00:00 AM
but i want it retrieve date as 7-Apr-2011
View 2 Replies
Mar 19, 2010
I'm trying to make a application that goes to a website, logs in using a username/password, then returns me the HTML of it. Any way to do this?
View 1 Replies
Oct 30, 2009
I have a report that I need to run multiple times and save as PDFs. I am currently generating the report as a PDF programatically but want to save the reports without the user having to choose the save option manually each time.
The code I use to render a single report as a PDF is:
Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing
Dim streamids As String() = Nothing
Dim mimeType As String = Nothing
[Code]....
I was figuring I could run it in a loop and save the PDF each time.
View 2 Replies
Jun 2, 2009
I have two seperate databases, one is production the other is test. Before LINQ, I could simply change the connection string to swtich db's. However, the string is read only, and I have no way to change the string.
How can I change the Connection String programmatically?
Edited for Clarity
Im using my.settings to store all of this inforomation
View 2 Replies
Nov 15, 2011
My requirement is to create dynamic text boxes during run time.it shld b like this: when i click a button a text box shld b created and upon entering a value it shld be saved in access database.
View 3 Replies
Apr 18, 2012
I'm working on a web portal for customers that will connect to Microsoft Dynamics. I don't want to make Dynamics CRM directly a internet facing deployment (IFD), so I'd like to use a separate database that the web interface interacts with and then use web services to move the data between the web portal database and Dynamics CRM. I'm just looking for thoughts on whether this is the best way to proceed and whether there are any good code examples, etc. that I can look at for implementing this? I saw Microsoft has a Customer Portal but it looks like it requires (at a cursory glance) an IFD deployment - which I don't want.
View 4 Replies
Aug 25, 2011
My main question is what fields are required for creating a PO using the web services. I keep getting an exception, so I feel like im leaving some info out. [code]
View 1 Replies
Feb 9, 2010
I am want to apply gradient color on textbox background in active report. For this I use graphics and use following code:
Dim a As New System.Drawing.Drawing2D.LinearGradientBrush(New RectangleF(0, 0, Me.Width, Me.Height), color1, color2, mode)
Dim g As Graphics = Me.CreateGraphics
g.FillRectangle(a, New RectangleF(0, 0, Me.Width, Me.Height))
g.Dispose()
It works well in forms but in report not able to get object of Graphics by Me.CreateGraphics.
View 1 Replies
Aug 30, 2011
I am trying to create a purchase order in Dynamics GP 2010 using the webservices. I get the following error VendorItemNumber not setup for ItemKey First off, I am not sure what that error actually means. Second off, I am not sure why I am getting it. My code is below.
Public Sub PO()
Dim context As Context
Dim purchaseOrderKey As PurchaseTransactionKey
Dim vendorKey As VendorKey
[code]....
View 1 Replies
Jun 12, 2011
i build my project and i made a copy of the windowsapplication1.exe and tried to open itwith txt editor.. i tried to search for "chris" (computer username) and i see that:[URL]
View 2 Replies
Jun 25, 2012
Our CRM 2011 database contains approx. 20000 contacts, and I need to loop through all of them using the SDK. Currently I'm finding the following linq query takes a very long time to execute:
[Code]...
View 2 Replies
Mar 19, 2012
I've tried applying several suggestions found on the web, but still experiencing cached results when querying CRM 2011 with linq. My web.config reads as follows, which is supposed to disable result caching:[code]I can live with that, but it would be nicer, instead of recreating the context, to have a way of ensuring no caching either in code or in web.config.
View 2 Replies
Jul 18, 2011
So I have a Powerpoint presentation. It contains numerous images on it, referred to by image X. (So it's the same image but on multiple pages) These same images on different pages/slides have different width/height attributes associated to them. So even though they're the same image, they may not be the same size.
So there exists a scenario where an image exists on a lot of the slides. I want the ability to replace all of them at the same time (quickly) without having to go through each slide and separately replacing X, one at a time with the new image.
Is this possible? (yes/no)How would this be accomplished? (abstract - high level explanation is only required)
View 2 Replies
Jan 19, 2012
Anyone using Crystal reports 2011 with VB.Net 2008 Pro? my work is willing to buy this but I just want to make sure it will work, the dynamic as opposed to static query values is what interests me about it.
View 1 Replies
Feb 26, 2009
Alright, so I'm still working on the slot machine. I have three timers all independently going for my three "wheels" of the slot machine.
My issue, is that I'm trying to make a Stop button to stop each timer one at a time, and I'm not understanding why this code isn't working. The logic completely makes sense, and the first "wheel" stops when I click the button, however, it doesnt appear to stop the other two timers.
CODE:
View 2 Replies
Oct 13, 2011
I have Customer search screen and Customer Detail Screen, On Search set up a ShowLink on Name ,so when ever a user click on Name the Detail Screen Opens with that Customer data.
Whenever i change something into Detail Screen and press save, it Updates the customer. Its Fine.
But i want provide a functionlity of AddNew Record for that customer, So i have put a Button "AddNew" on ScreenCommandBar that clears all the fields in the Detail Screen. But it still Updates the Customer..
How can i code for add new record in Detail Screen?
View 1 Replies
Feb 1, 2011
I have been struggling with this problem for several hours now and can't find the reason for the error message...I am reading a datetime string from a txt file, it returns this:"01/31/2011 6:13 AM" Now, I want to convert this string to datetime format. I don�t want to change the structure of the date... just want to convert in order to do some minutes and seconds calculations.I have tried all kind of options:
Timespan
Datediff
Parse
ParseExact with format.... culture... globalization
Nothing seems to work!
View 4 Replies
Apr 12, 2012
I've got a 2 part question: First question: I know that there is a query limit of 5,000 records when querying records, for performance reasons, but is there a limit when doing an aggregate query? If so, what is it? I need only to query the number of records and for one entity I can get a result of 39,000+ records, but for another entity I see an error message like:
[Code]...
View 1 Replies
Feb 17, 2012
I want to use crystal reports 2011 in visual studio 2010. How can i use it?
View 1 Replies
May 29, 2012
I am coding on Windows 8, with the Visual Studio 2011 developer version. I wanted to know how to change something when a "form" is loaded. Form is in quotes because the actual page isn't a form. It's in the shape of a tablet, which you've probably guessed by now that I'm coding a tablet app.I just wanted to know how to change something when the actual app loads. I tried the "Loaded" sub, but that was confusing. It DID change a text from a textbox (I just tested it out as "textbox1.text = "test") and it worked. But when I try to make buttons visible false, nothing happens.I'm not sure if this is the right code (and I doubt it is, because it doesn't hide it on buttons either), but I typed in, let's say...
btn0.Visibility = False
nd this is the sub it's in...
Private Sub pgeMathAssist_Loaded(sender As Object, e As RoutedEventArgs) Handles
[code].....
View 2 Replies
May 27, 2010
I'm converting my date 01/June/2011 to FileTimeUTC so I'm getting a value of
129514186100000000
How do I convert it back to the date?
View 2 Replies
May 10, 2012
Everything was working just fine...then one time running the debugger and I'm given a 401.2 error from IIS Express 7.5. I created a new project and tested - worked fine. I ensured the web.config and other project settings where identical - still getting the error in the original project!
[Code]...
View 2 Replies
May 4, 2012
I have one PC whereby the OS has been installed on E: and it has no C: drive. Onto this I have installed my .Net 4.0 WPF Application which runs fine.
However, when I try to access a crystal report it gives the exception below. This user is able to access the report from its network location in windows explorer so I assume the act of asking Crystal to copy it locally is causing a problem?
Therefore, can anyone advise where the local copy will be created and/or how I can control this.
[Code]....
View 1 Replies
Sep 14, 2010
I'm Stuck the following problem: How can I link a PDF Document to a Record in a Data Grid using Visual Studio LightSwitch 2011 and Visual Basic?
View 1 Replies
May 25, 2010
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Month_index, days, yearp As Integer
Month_index = DateTimePicker1.Value.Month
[code]....
i can get the Clc month and day perfectly for year 2011, but when i goes to year 2011 it just appears as 0.my dates in Months.txt is saved as so
2010|2|14|30|29|30|29|30|29|29|30|29|30|29|30
2011|2|3|30|29|30|30|29|30|29|29|30|29|30|29
2012|1|23|30|29|30|30|29|30|29|30|29|30|29
View 1 Replies
Dec 24, 2009
I have a simple application that use thread pool to read a file and input the data into a listbox. I want to be able to stop threadpool from running after clicking a stop button. How do I stop threadpool? Here is the code for my application below:
Imports System.Threading
Public Class Form1
Private Delegate Sub StringDelegate(ByVal text As String)
[Code]....
View 6 Replies
Dec 7, 2009
I created a form and have the variable inputs for 4 motor run statements. Then with a start button the script starts and it is surrounded by a for next statement to loop 10 times. It works fine but if i need to stop the execution of the script with a stop button. I put the stop in a new section but of course does not work to do a motor stop. It just causes the exe to not respond till the loop is complete. Just need to be able to stop the Run1_Click button section.
Edit:I do not mind if it finishes the 4 motor run commands and then stops execution of the loop. So need to figure out a way to trigger a stop from a button on the form to stop the cycle. For the future the loop will be a variable integer input so 10 will not be the standard.
Edit::Does a ' Do ' statement sound like the thing to use? If so how and where would I place that? Have a Stop button on the form and it would stop after the 4th motor run command.
#End Region
Declare Function InitStp Lib "stp.dll" () As Integer
Declare Function RunMotor1 Lib "stp.dll" (ByVal steps As Integer, ByVal interval As Integer, ByVal direction As Integer, ByVal outputs As Integer) As Boolean
[code]....
View 2 Replies
Oct 12, 2011
I have small lightswitch application having CreateNewUser Screen.Screen fields comes from Datatable added in DataSource, I have made all Validattion of fields at DataSource side.However i have added one Custom Control in the screen named : Re-TypePassword.Whenever user click on save button I want to match the Password and Re-TypePassword and want to prompt user a validation message if Password and Re-TypePassword are different.how can i display that validation massage ? ( I mean i want to add validation message to Summary of messages that appears at the top of screen)
View 1 Replies