Tuesday 7 May 2019

Remove Idle Buddy Service

Open CMD as Admin
Type below command
bcdedit /set bootmenupolicy legacy

Restart your system
while starting press F8

Select Safe Mode with Command
Enter user ID and Password
Now u will see CMD
type below command
sc delete IdlingBuddyService
Service name should be get from services.msc
Now reboot system
Press F8
Select Safe Mode with Networking
Go to this path
C:\Program Files (x86)
Select Idle Buddy folder, delete it
If not able to delete, use IObit uninstaller
then exit from Safe Mode

Thursday 28 February 2019

updates were rejected because the tip of your current branch is behind

Error:
updates were rejected because the tip of your current branch is behind

git push -f origin users/myname/branchName

Wednesday 28 November 2018

Wednesday 17 October 2018

Get new GUIDs using Aras AML Studio

Requirement: Get  3 new GUIDs, which are not used in Aras Innovator.
Solution:
Open NASH
Ex: http://localhost/innovator/Client/scripts/nash.aspx
Login using admin or root
Under Action select: GenerateNewGUIDEx (Instead of ApplyAML())
Under XML: type below. quantity="3" mean it will return, 3 new GUIDs
<Item quantity="3" />

Thursday 11 October 2018

Aras Innovator disable a control after save

How to disable a control after save?
Prerequisites: Control property should be required field.
Solution:

Create new Item Type ex: TestItem

Add new properties
Ex: test1, test2 as string data type

Add new JS method: Ex: MyTest

For textbox control:

var myTestField = getFieldByName("test1");

//var myTestFieldValue = myTestField.querySelector("input[name='test1']").value;//Another way to get value
if (myTestField.value)
{
    setTimeout(function(){
        myTestField.getElementsByTagName("input")[0].disabled = true;
    }, 1);
}

For DDL (List Data Type):
var varMyddl = getFieldByName("mydll");

if (varMyddl)
{
    If(varMyddl.value){
        setTimeout(function(){      
            varMyddl.getElementsByTagName("input")[0].disabled = true;   
            varMyddl.getElementsByTagName("button")[0].disabled = true;

        }, 1);
    }

}

Open Item Type: TestItem
Under View, open TestItem form
Lock TestItem form
Click on  "Form Event"
Add method by click on +
Search for "MyTest"
Under Event, select "onFormPopulated"

Testing:
Create new item
Enter value for test1
Hit on Save
Now test1 control will be disable

Tuesday 9 October 2018

SQL NOT LIKE will not applicable for NULL values

Example:
select * from emp WHERE Name NOT LIKE '%ABC%' --will return only where Name not like %ABC%, but will not return where Name is NULL

select * from emp WHERE (Name NOT LIKE '%ABC%' OR Name IS NULL) --will return only where Name not like %ABC% and will return where Name is NULL

Monday 20 August 2018

Set-ExecutionPolicy Unrestricted RemoteSigned

Get-ExecutionPolicy
RemoteSigned

if you want to change to Unrestricted, try below script

Set-ExecutionPolicy Unrestricted -Scope CurrentUser

if you want to change to RemoteSigned, try below script

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser