Can anyone please explain this code to me?

I am a new (junior)programmer?Can anyone please explain this code to me in lame terms? I am working at a client location and found this code in a project.
_file name is AtccJndiTemplate.java_
Why do we use the Context class?
Why do we use the properties class?
package org.atcc.common.utils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.springframework.jndi.JndiTemplate;
public class AtccJndiTemplate extends JndiTemplate
  private static Logger logger = Logger.getLogger(AtccJndiTemplate.class.getName());
  private String jndiProperties;
  protected Context createInitialContext()
    throws NamingException
    Context context = null;
    InputStream in = null;
    Properties env = new Properties();
    logger.info("Load JNDI properties from classpath file " + this.jndiProperties);
    try
      in = AtccJndiTemplate.class.getResourceAsStream(this.jndiProperties);
      env.load(in);
      in.close();
    catch (NullPointerException e) {
      logger.warning("Did not read JNDI properties file, using existing properties");
      env = System.getProperties();
    } catch (IOException e) {
      logger.warning("Caught IOException for file [" + this.jndiProperties + "]");
      throw new NamingException(e.getMessage());
    logger.config("ENV: java.naming.factory.initial = " + env.getProperty
("java.naming.factory.initial"));
    logger.config("ENV: java.naming.factory.url.pkgs = " + env.getProperty
("java.naming.factory.url.pkgs"));
    logger.info("ENV: java.naming.provider.url = " + env.getProperty
("java.naming.provider.url") + " timeout=" + env.getProperty("jnp.timeout"));
    context = new InitialContext(env);
    return context;
  public String getJndiProperties()
    return this.jndiProperties;
  public void setJndiProperties(String jndiProperties)
    this.jndiProperties = jndiProperties;
}

Hi,
JNDI needs some property such as the
java.naming.factory.initial
java.naming.provider.url
which are needed by the
InitialContext(env);
where env is a properties object
Now if you can not find the physical property file on the class path
by AtccJndiTemplate.class.getResourceAsStream(this.jndiProperties);
where the String "jndiProperties" get injected by certain IOC ( inverse of control container ) such as Spring framework
if not found then it will take the property from the system which will come from the evniromental variables which are set during the application start up i.e through the command line
java -Djava.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory -Danother=value etc..
I hope this could help
Regards,
Alan Mehio
London,UK

Similar Messages

  • Can anyone please explain this double problem?

    public class DoTest {
         static int i;
         public static void main(String[] args){
              double a = 3.0;
              double b = 0.3;
              double c = 0.3;
              double d = 0.3;
              System.out.println(c+a+b);
              System.out.println(d+c);
    }Result:
    3.5999999999999996
    0.6
    Why does the first println statement return 3.5999999999999996?
    Cheers

    import java.text.DecimalFormat;
    public class DoTest {
         static int i;
         public static void main(String[] args){
              double a = 3.0;
              double b = 0.3;
              double c = 0.3;
              double d = 0.3;
              double f=c+a+b;
              DecimalFormat df=new DecimalFormat("#.##");
              System.out.println(df.format(f));
              System.out.println(d+c);
    this is enougn for u man..
    do sme experiment wit it

  • Can anyone please explain this message

    Mac OS X Version 10.4.11 (Build 8S2167)
    2007-12-17 07:27:53 -0500
    2007-12-17 07:27:54.749 HPEventHandler[234]: DebugAssert: Third Party Client: (NULL != m_lock && 0 == errno) Can't create semaphore lock[/Volumes/Development/HP/Mac-Sirani/mac-software/components/HPEventHandler/ Sources/Core/HPTMNotificationManager.cpp:62]
    2007-12-17 07:28:12.455 Translator[275] Invoked to sync conduit com.apple.Safari for entityNames: com.apple.bookmarks.Folder,com.apple.bookmarks.Bookmark
    Waiting for MirrorAgent to launch and respond to CFMessagePortCreateRemote().

    Try reimporting all your media: file>>import>>reimport>>continue

  • Within Music Library can anyone please explain why when I select the option to sort 'Album by Artist' a number of tracks are being treated as separate albums?  How can I correct this?  I have tried to 'drag and drop' but that doesn't work.

    Within music Library can anyone please explain why after I select the option to sort 'Album by Artist' a number of tracks are being treated as separate albums?  How can I fix this?  I have tried to manually correct by 'drag and drop' individual tracks but that doesn't work.  My music library includes a number of repeat album artwork images simply because not all tracks are being listed under the one album making my library more difficult to use than it should.  Any advise would be appreciated.

    See Grouping tracks into albums.
    tt2

  • Please explain this code,this is regarding to ODS activation.

    Hi,
        Please I am unable to understand this code,this exists initial activation of ODS,please can anyone please explain me this
    ob started
    Step 001 started (program RSPROCESS, variant &0000000055152, user ID ALEREMOTE)
    Activation is running: Data target ZYL_O82, from 1.165.349 to 1.165.349
    Data to be activated successfully checked against archiving objects
    SQL: 20.06.2007 05:34:26 ALEREMOTE
    ANALYZE TABLE "/BIC/AZYT_O6240" DELETE STATISTICS
    SQL-END: 20.06.2007 05:34:26 00:00:00
    SQL: 20.06.2007 05:34:26 ALEREMOTE
    BEGIN DBMS_STATS.GATHER_TABLE_STATS ( OWNNAME =>
    'SAPR3', TABNAME => '"/BIC/AZYT_O6240"',
    ESTIMATE_PERCENT => 1 , METHOD_OPT => 'FOR ALL
    INDEXED COLUMNS SIZE 75', DEGREE => 1 ,
    GRANULARITY => 'ALL', CASCADE => TRUE ); END;
    Thanks & Regards,
    Mano

    Hi,
        Please I am unable to understand this code,this exists initial activation of ODS,please can anyone please explain me this
    ob started
    Step 001 started (program RSPROCESS, variant &0000000055152, user ID ALEREMOTE)
    Activation is running: Data target ZYL_O82, from 1.165.349 to 1.165.349
    Data to be activated successfully checked against archiving objects
    SQL: 20.06.2007 05:34:26 ALEREMOTE
    ANALYZE TABLE "/BIC/AZYT_O6240" DELETE STATISTICS
    SQL-END: 20.06.2007 05:34:26 00:00:00
    SQL: 20.06.2007 05:34:26 ALEREMOTE
    BEGIN DBMS_STATS.GATHER_TABLE_STATS ( OWNNAME =>
    'SAPR3', TABNAME => '"/BIC/AZYT_O6240"',
    ESTIMATE_PERCENT => 1 , METHOD_OPT => 'FOR ALL
    INDEXED COLUMNS SIZE 75', DEGREE => 1 ,
    GRANULARITY => 'ALL', CASCADE => TRUE ); END;
    Thanks & Regards,
    Mano

  • I am using elements 10 and only getting audio not video.  Can anyone please explain why? I am a total newbie to video.

    I am using elements 10 and only getting audio not video.  Can anyone please explain why? I am a total newbie to video.

    greenfrogstone
    Just saw your thread, and it looked like a candidate for the Premiere Elements 10 NVIDIA GeForce Roll Back the Driver issue. If your computer uses a NVIDIA GeForce video card/graphics card, then the following applies to you. You do not want to update the driver. Rather you want to roll back the driver version, probably to about May 2013. For your convenience I have done a copy/paste of the forum announcement which gives all the details and fix of the matter.
    Premiere Elements 10 NVIDIA Video Card Driver Roll Back
    If you are a Premiere Elements 10 user whose Windows computer uses a NVIDIA GeForce video card and you are experiencing Premiere Elements 10 display and/or unexplained program behavior, then your first line of troubleshooting needs to be rolling back the video card driver version instead of assuring that it is up to date.
    Since October 2013 to the present, there have been a growing number of reports about display and unexplained workflow glitches specific to the Premiere Elements 10 user whose Windows computer has a NVIDIA GeForce video card. If this applies to you, then the “user to user” remedy is to roll back the NVIDIA GeForce video card driver as far as is necessary to get rid of the problems. The typical driver roll back has gone back as far as March – July 2013 in order to get a working Premiere Elements 10. Neither NVIDIA nor Adobe has taken any corrective action in this regard to date, and none is expected moving forward.
    Since October 2013, the following thread has tried to keep up with the Premiere Elements 10 NVIDIA reports
    http://forums.adobe.com/thread/1317675
    Older NVIDIA GeForce drivers can be found
    http://www.nvidia.com/Download/Find.aspx?lang=en-us
    A February 2014 overview of the situation as well as how to use the older NVIDIA GeForce drivers for the driver roll back can be found
    http://atr935.blogspot.com/2014/02/pe10-nvidia-video-card-roll-back.html
    This matter has been very specific to the Premiere Elements 10 NVIDIA GeForce card user. So, if your computer is using other than a NVIDIA GeForce card, it is likely that the message does not apply to you, and we can then explore other troubleshooting possibities.
    Looking forward to your follow up. Do not hesitate to ask for clarification on anything written here.
    Thanks.
    ATR

  • I still cannot stream YouTube/Netflix/iPlayer etc. on my iPhone 4 via WiFi since updating to iOS 6.0.1....can anyone please solve this for me??

    I posted a couple of days ago about a problem my iPhone 4 was having trying to stream video via WiFi
    Basically, since I upgraded to iOS 6.0.1 I cannot stream YouTube videos via the app or via Safari, Netflix will not work nor will services such as BBC iPlayer.
    I've also discovered this evening I cannot stream any radio apps either.
    All of them will play for 10-30 seconds then stop buffering making them impossible to play.
    I was given several pieces of advice including restoring the phone to factory settings, restoring it as a new phone, hard resetting twice in a row, deleting all the cache/data in Safari but nothing that has been suggessted has solved the problem.
    I know it is not a problem with my internet/WiFi as I have a laptop and a PC both using it and streaming YouTube/raddio stations etc. with no problem. Also, my girlfriend has a 3GS with the old YouTube player and that works with no problems at all.
    Can anyone please help me out as it's getting a bit frustrating not being able to use the streaming function on my iPhone.
    One thing that is odd, I have no problem surfing the web on the phone via WiFi or streaming over 3G. It is only a problem when trying to stream video/audio over WiFi.
    Thanks.

    This is a link to the Apple support page on this issue. Have you tried all of these steps?
    http://support.apple.com/kb/TS1559?viewlocale=en_US&locale=en_US
    Not sure what you mean that you have no signal but are on 3. What are you trying to say?

  • Can anyone help with this code

    i am trying to create a html5 video gallery for my website  I was wondering if anyone can help me with this code :  Am i missing something got this from the adobe widget browser i can get the button fuctions but i can not seem to get the video to play or work.. 

    This is the full page i am still working on it but the video code which i posted earlier is not working...    
    123456789101112131415
    Home
    Biography
    To Be Lead
    Gallery
    Videos
    Memorial Page
    Wallpaper
    Blog
    Forum
    Contact
    Randy Savage Bio
    Randy's Facts 101
    His Early Career
    Randy's Career in the WWF
    Randy's Career in WCW
    The Mega Powers  
    Mega powers Bio Mega Powers Facts 101 
    PM to fans and Elizabeth
    Randy's Radio interview
    His Death
    Elizabeth Hulette 
    Elizabeth Bio Elizabeth Facts 101 Her Career in the WWF Her Career in WCW Later Life Farewell to a Princess Elizabeth's Radio Interview Elizabeth Death 
    Sherri Martel
    Gorgeous George
    Team Madness
    Early Years
    ICW Gallery
    WWF Gallery
    WCW Gallery
    NWO Gallery
    Memorial Page for Randy
    Memorial Page for Elizabeth
                          Video of the Month    
    Site Disclaimer
    Macho-madness is in no way in contact with World Wrestling Entertainment. All photos are copyright to World Wrestling Entertainment or their respective owners and is being used under the fair copyright of Law 107.
    ©macho-madness.net All right's Reserved.  
            Affiliates
    Want to be an affiliate, elite, or partner site? Email: [email protected] with the list of things below.
    Place in the subject of email: “Randy Savage Online Affiliation”.
    Name: 
    Email: 
    Site Name: 
    Site URL: 
    When Will The Site Be Added?:
                        To see A List Click Here...
    ©macho-madness.net All right's Reserved.  
    Offical Links

  • Can anyone see in this code why my insert and check username function is not working?

    Hi guys.
    I have an error that has me stumped.
    I have a form that inserts text from a text field into a
    mysql database and I have added a check user name function to check
    if this number already exists.
    Here's the page
    http://www.thechallenge.net.au/redemption2.php
    The error I get when using the page on the web is this
    Duplicate entry '' for key 1
    Can anyone help with this?

    ducati1 wrote:
    > Ok we are now getting somewhere.
    > I have reset the mysql database as recommended and
    everything works Except the
    > pay pal receipt number is being entered into the
    database as only numbers and
    > no letters. For example when I entered 123456f it went
    to the database as
    > 123456 with no "f".
    > What should I set the database and text field properties
    to so it records all
    > that might be in a pay pal receipt number?
    I noticed previously you changed it to int, that means
    integer, which is
    a numeric datatype.
    You want mixed characters and numbers? Is it always the same
    length? If
    it is, use a CHAR datatype and set it to the length you need,
    CHAR(12)
    for instance will let you use 12 characters. Even if the
    number entered
    isn't 12 characters, it will be stored as 12 characters, but
    with spaces
    where there are no characters. I personally never use this
    unless I am
    100% certain that its going to be exactly the same length,
    otherwise
    doing comparisons is problematic, as you need to TRIM the
    white space.
    If the length is going to vary, then use VARCHAR(12), this
    let you use
    up to 12 characters. It won't put extra spaces in. This is my
    preference.
    Now, if you are also storing double byte characters, like
    foreign
    characters, you might want to consider using NVARCHAR or
    NCHAR.
    Oh, these examples are based on MS SQL datatypes, so MySQL
    might be
    slightly different, so it may be worth checking the manual
    first.
    Dooza

  • Can anyone please explain these error messages to me?

    Hi,can anyone of you be so kind to explain these warnings during an upgrade to me?
    Thanks.
    WARNING 2005-06-17 16:58:12
    Execution of the command "change 'user' '/install'" finished with return code 1. Output: Install mode does not apply to a Terminal server configured for remote administration.
    WARNING 2005-06-17 16:58:13
    Error 32 (The process cannot access the file because it is being used by another process.
    ) in execution of a 'CopyFile' function, line (359), with parameter (C:\Documents and Settings\ITSadm\Local Settings\Temp\sapinst_exe.5260.1119019920\SYSTEM\librfc32.dll, C:\WINDOWS\system32\librfc32.dll, FALSE).
    WARNING 2005-06-17 16:58:14
    Error 32 (The process cannot access the file because it is being used by another process.
    ) in execution of a 'CopyFile' function, line (359), with parameter (C:\Documents and Settings\ITSadm\Local Settings\Temp\sapinst_exe.5260.1119019920\SYSTEM\librfc32u.dll, C:\WINDOWS\system32\librfc32u.dll, FALSE).
    ERROR 2005-06-17 17:00:50
    FCO-00060  The script block  includes the script block <#1> , but there is no common script block element with that in your control file. Please inform the support team.
    WARNING 2005-06-17 17:06:22
    While copying files to 'D:\usr\sap\PD3\SCS01\exe': source file 'D:\usr\sap\PD3\SYS\exe\run/icudt26.dll' not found.
    WARNING 2005-06-17 17:06:23
    While copying files to 'D:\usr\sap\PD3\JC00\exe': source file 'D:\usr\sap\PD3\SYS\exe\run/icudt26.dll' not found.
    WARNING 2005-06-17 17:06:54
    Error 32 (The process cannot access the file because it is being used by another process.
    ) in execution of a 'CopyFile' function, line (359), with parameter (C:\Program Files\sapinst_instdir\PATCH\ORA\sapmmc.dll, C:\WINDOWS\system32\sapmmc.dll, FALSE).
    WARNING 2005-06-17 17:07:23
    Execution of the command "D:\usr\sap/PD3/JC00/igs/bin/igswd.exe '-version'" finished with return code 1. Output: Version of D:\usr\sap/PD3/JC00/igs/bin/igswd.exe = 6402.0.5.0
    WARNING 2005-06-17 17:07:24
    Execution of the command "C:\Program Files\sapinst_instdir\PATCH\ORA/igstmp/igswd.exe '-version'" finished with return code 1. Output: Version of C:\Program Files\sapinst_instdir\PATCH\ORA/igstmp/igswd.exe = 6403.0.8.0
    WARNING 2005-06-17 17:09:13
    Execution of the command "D:\usr\sap/PD3/JC00/igs/bin/igswd.exe 'D:\usr\sap\PD3\JC00\igs' '-c' '-tracelevel=1' '-recontime=60' '-mux=sgisbruap17,40000' '-listenerhttp=40080' '-portwatcher=40001' '-portwatcher=40002'" finished with return code 1. Output:
    WARNING 2005-06-17 17:29:10
    Execution of the command "D:\usr\sap\PD3\JC00\exe/startsap.exe 'name=PD3' 'nr=00' 'SAPDIAHOST=sgisbruap17'" finished with return code -1. Output: STARTSAP failedDetails are written to C:\Program Files\sapinst_instdir\PATCH\ORA\startPD3.log
    WARNING 2005-06-17 17:30:22
    Execution of the command "C:\j2sdk1.4.2_07/bin/java.exe '-Xmx256M' '-Djava.ext.dirs=D:\usr\sap/PD3/JC00/SDM/program/lib;C:\j2sdk1.4.2_07/jre/lib/ext' '-jar' 'D:\usr\sap/PD3/JC00/SDM/program/bin/SDM.jar' 'undeploy' 'compname=sapjra' 'compvendor=com.sap.mw.jco.jra' 'sdmhome=D:\usr\sap/PD3/JC00/SDM/program' 'logfile=C:\Program Files\sapinst_instdir\PATCH\ORA/callSdmViaSapinst.log'" finished with return code 104. Output: Starting SDM - Software Deployment Manager...tc/SL/SDM/SDM/sap.com/SAP AG/6.4011.00.0000.20050207154237.0000Initializing Network Manager (50017)Checking if another SDM is running on port 50018Processing error. Return code: 104

    This seems to be a common issue on this forum.
    Please take a look at this if you're trying to install via
    Terminal Services:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;320185

  • HT1222 My iPhone 5 keeps saying I don't have enough storage to update software even though I just purchased 15GB of storage. Can anybody please explain this to me? I'm really not tech savvy AT ALL so I don't have a clue what to do :(

    My iPhone keeps telling me I don't have enough space to update my software. But I just bought 15GB of storage, of which 11.7GB is free! So I don't understand. Can anybody please help me? I'm really bad with technology so I don't have a clue.

    Hi Caroline,
    The storage issue you are having is not related to iCloud. The error is telling you that you do not have enough room on your device itself. You need to go to Settings>General>Usage, and under the Storage section at the top, it lists all of your apps and other things taking up room on your device.
    You will have to delete or reduce the size of items on this list in order to free up some room for your update.
    Also, you may want to try the update by hooking up your device to iTunes on the computer you sync with. It does not require as much free memory to update via iTunes as it does OTA.
    Cheers,
    GB

  • Can someone please proof this code writing to my db...

    i have this code that was working and i moved it around a
    little and now i'm getting errors when it tries to write to the db.
    if the user enters a valid credit card number (basic check that
    i've tested and i know this part works fine but still wanted to
    show all the code) it is supposed to write all the info from the
    previous page's form into the db. i'm sure it's something small and
    stupid, but i need to get this up and running immediately.
    thanks in advance for any help...

    A side note, you're storing unencrypted credit card
    information in your database and this is a violation of the credit
    card regulations (
    PCI).
    Because of the liability factor, I suggest that you do not store
    credit card information at all and instead use some form of
    Tokenization
    (different providers call it different names). At the very minimum,
    if you don't use tokenization or something similar, you MUST
    encrypt the data with a 128bit encryption method of better (3DES,
    Blowfish, AES, etc.).

  • Please explain this code to me (in English)!  Thanks.

    Hello everyone,
    I am working with some AS3 code that someone else has written.  The code creates datatables and populates them by pulling from a .NET webservice using SOAP and DataTables.
    I have copied and pasted the code below.  Most of it makes sense and I understand it, however, there are some things I've never seen before and have not been able to find on the internet.  Most of the things I have a problem with, I've created comments in ALL CAPS with my questions.
    If someone could take a look at it and tell me what is going on I would appreciate it.
    Thanks.
                  //Load result data into XMLList structure
                  var xmlData:XML = XML(myService.GetViewResults.lastResult);
                  //gets the DataTables data, length of tableXML is the number of Tables you got
                  var tableXML:XMLList = xmlData.GetViewResultsResult.DataTables.children();
                  //gets the number of tables returned in the result
                  var numTables:int = tableXML.children().length();
                  //seperates out the data for each table
                  var tempXMLArray:Array = new Array();
                  var tempXML:XML;
                  for (var i:int=0; i<numTables; i++)
                      tempXML = tableXML[i];
                      tempXMLArray.push(tempXML);
                  //create a datagrid for each table
                  var datagrid1:DataGrid, datagrid2:DataGrid, datagrid3:DataGrid;
                  //create array collections to feed datagrids
                  var ac1:ArrayCollection, ac2:ArrayCollection, ac3:ArrayCollection;
                  var currentTableXML:XML;
                  var columns:Array = new Array();
                  var dgc:DataGridColumn;
                  var obj:Object;  // WHY IS THIS OBJECT NEEDED?
                  //CREATING TABLE 1
                  currentTableXML = tempXMLArray[0];
                  datagrid1 = new DataGrid();
                  datagrid1.width = 1000;
                  datagrid1.height = 200;
                  datagrid1.y = 0;
                  columns = new Array();
                  for (i=0; i<currentTableXML.Columns.children().length(); i++)
                      dgc = new DataGridColumn(currentTableXML.Columns.NHRCViewResultColumn.ColumnName[i].toString());
                      dgc.dataField = currentTableXML.Columns.NHRCViewResultColumn.ColumnName[i];
                      columns.push(dgc);
                  datagrid1.columns = columns;
                  ac1 = new ArrayCollection;
                   // looping through each piece of data in the row
                   for (i=0; i<currentTableXML.Rows.children().length(); i++)
                      trace("table 1:creating row " + i);
                   // I HAVE NO IDEA WHATS GOING ON HERE... WHAT IS THIS OBJECT DOING EXACTLY?
                      obj = {
                             // I DON'T UNDERSTAND THIS SYNTAX - WHAT ARE THE COLONS FOR???  AND WHY STORE IN AN OBJECT???
                          ((datagrid1.columns[0] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[0]),
                          ((datagrid1.columns[1] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[1]),
                          ((datagrid1.columns[2] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[2]),
                          ((datagrid1.columns[3] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[3]),
                          ((datagrid1.columns[4] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[4]),
                          ((datagrid1.columns[5] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.Values[i].string[5])
                      ac1.addItem(obj);
                  datagrid1.dataProvider = ac1;
                  this.addChild(datagrid1);  //Adding populated datagrid to the screeen

    The following code creates a variable obj of type Object. You need to declare the variable, and you don't want to do that inside the loop where the object is constructed, because then it will be scoped within the loop block, so it is first declared outside the loop.
    var obj:Object;  // WHY IS THIS OBJECT NEEDED?
    Now you are constructing the object. Here is the logic of what is going on.
    Objects of this type in Flex are constructed as follows:
    objName = {
      fieldName1: fieldVal1,
      fieldName2: fieldVal2,
      fieldName3: fieldVal3
    In this code, the field names are:
    (datagrid1.columns[0] as DataGridColumn).dataField.toString()
    and you need to cast as DataGridColumn first.
    The field values are:
    (currentTableXML.Rows.NHRCViewResultRow.Values[i].string[0])
    So here it seems you are taking the first item in the string element of the ith element of Values, which is obtained by parsing into the currentTableXML, Rows element, NHRCViewResultRow element.
    // I HAVE NO IDEA WHATS GOING ON HERE... WHAT IS THIS OBJECT DOING EXACTLY?
                      obj = {
                             // I DON'T UNDERSTAND THIS SYNTAX - WHAT ARE THE COLONS FOR???  AND WHY STORE IN AN OBJECT???
                          ((datagrid1.columns[0] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[0]),
                          ((datagrid1.columns[1] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[1]),
                          ((datagrid1.columns[2] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[2]),
                          ((datagrid1.columns[3] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[3]),
                          ((datagrid1.columns[4] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[4]),
                          ((datagrid1.columns[5] as DataGridColumn).dataField.toString()):(currentTableXML.Rows.NHRCViewResultRow.V alues[i].string[5])

  • Can anyone please activate this UDID ?? :

    PLEASE PLEASE PLEASE PLEASE PLEASE
    ANYONE CAN ACTIVATE THIS UDID FOR ME ??
    I'LL BE THANKFUL ALL MY LIFE
    I SWEAR I DIDNT KNOW IT REQUEIRES A PURCHASE
    <Edited by Host>

    Join the paid developer program.
    Same to xhevdeti and anybody else who asks.

  • Reporting Level - Can someone please explain this attribute?

    All - I am a relative newbie to Siebel on Demand but creating reports with other tools for years. I recently came across some reports that I have inherited that are constantly giving us trouble. They are basic reports that look at the count of calls, meetings, etc. for a given user. What we are finding is that we have used this reporting level attribute to filter but depending on the level of manager logging in it is causing problems. Some people can't see the data and some get a massive amount of duplicated data.
    When it is all said and done we are looking for a simple manager-to-rep list of the counts of these activities. After looking at the reporitng level value it would look like an indicator of relative position from the lowest level in the reports-to heirarchy. We will generally filter for a level = 0 (or maybe 1) in most reports but what I want is a way to control that based on the user. My requirement is to have the level they can see and the detail at one level lower but I dont' fully understand how that gets created or how I can use system variables to find the user's level to control it.
    Anyone that has any background info on this or how I can control a basic anaylytic report in a more maintainable fashion to show my stuff and subtotals at one level lower that would be greatly appreciated.

    Not sure if I can help with the specific report, but I will try to shed some more light on Reporting Level.
    In any report where the Owned By User dimension is exposed, you can find the Reporting Level field. Each user is part of a reporting hierarchy, derived from the "Reports To" value in their user profile.
    The best way to see this is to create a simple report with the User Email, Reporting Level, and Manager Email. This will show you the manager at each level. You can use this to expose and filter on the full management hierarchy.
    Level 0 = the user. All users have a value of themselves as Manager at Level 0.
    Level 1 = Reports To - who the user directly reports to.
    Level 2+ = Up the chain...
    You may want to take a look at some of the pre-built reports to see how this can be used to achieve Team based reports, such as "Team Pipeline Analysis", "Team Sales Effectiveness Analysis", and "Team Activity Analysis". You can open any of the pre-buiilt reports to use as starting points as well.

Maybe you are looking for