Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Custome code is not working in Archer 6.4 SP1 P3

JaganChandrava3
Contributor III

Hi,

 

I am trying to fetch the value of a field in the custom object. But I did not get any value using the below codes.

1. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').innerHTML;

2. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').value;

3. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').innerText;

4. document.getElementById('master_DefaultContent_rts_ts2023_s1273_f20054c').conentText;

 

Thanks, Jagan

1 ACCEPTED SOLUTION

Accepted Solutions

Okay, use: 

a = getRecordId();

View solution in original post

7 REPLIES 7

Ilya_Khen
Champion III

Jagan Chandravadhanam,

 

1. What exactly field type you are trying to get and in what mode: View/Edit?

2. You can try something like this in Edit mode by supplying your FieldID:

$CM.getFieldValue(fieldId);

I am trying in both the Edit and View modes. I am trying to get the tracking id.

The provided one is throwing null value

If you need in both View/Edit modes, you have to use plain JQuery.

Actually I am trying to parse the tracking ID into a link which changes in each record.

 

 function myFunction() {
        var a = need tracking ID
            document.getElementById("myAnchor").href = "https://egrc/default.aspx?requestUrl=..%2fGenericContent%2fRecord.aspx%3fid%3d" + a + "%26moduleId%3d998";
        }
        $(document).ready(function () {
            myFunction();
        });

Okay, use: 

a = getRecordId();

Perfect. It works. 

 

Thanks a ton IIya Khen!

 

Regards, Jagan