API from Quickbooks On Line Edition to Oracle

Has anyone out there created or know of any APIs that links the Quickbooks On Line Edition into Oracle. Currently, we are looking to create a Financials Asset Management Application using APEX but we first need to interface into user's QuickBooks On Line Edition Web based application to validate the client's financial capabilities.
Any help would be greatly appreciated.
Thanks.

You will not need to perform any data migration to upgrade to EE. The diffetence between standard en enerprise editions are the features offered. When you upgrade you can use the same set of files you used to install standard edition and just add the enterprise edition features you want to use in the 'Custom' section of the Universal Installer.

Similar Messages

  • Running Oracle seeded API from Custom Schema

    Hi All
    I have a custom schema and I need to call a Oracle standard API from this schema. When I try to initialize the session using fnd_global.apps_initialize I get the following error:
    ORA-00942: table or view does not exist
    ORA-06512: at "APPS.FND_CORE_LOG", line 25
    ORA-06512: at "APPS.FND_GLOBAL", line 104
    ORA-06512: at "APPS.FND_GLOBAL", line 1620
    ORA-06512: at "APPS.FND_GLOBAL", line 2170
    ORA-06512: at "APPS.FND_GLOBAL", line 2312
    ORA-06512: at "APPS.FND_GLOBAL", line 2250
    ORA-06512: at line 2
    I understand that this is an issue with GRANTS. However I have granted the EXECUTE ANY PROCEDURE and SELECT on all the underlying tables of this oracle package.
    Has anybody faced a similar situation. Any help would be greatly appreciated.
    Thank You.
    Jyoti
    Edited by: user646763 on Oct 3, 2010 11:49 PM
    Edited by: user646763 on Oct 3, 2010 11:51 PM

    Hi,
    I understand that this is an issue with GRANTS. However I have granted the EXECUTE ANY PROCEDURE and SELECT on all the underlying tables of this oracle package.The error "ORA-00942: table or view does not exist" indicates that the custom schema owner cannot select from the underlying tables. Please review the packages code again and make sure that your custom user has select privileges (or check if any public synonym needs to be created).
    See eTRM website for details about those packages and the relevant tables -- http://etrm.oracle.com
    Thanks,
    Hussein

  • CSD_RULE_MATCH_FAILED-calling service request api from oracle apps adapter

    We are doing integration between Siebel and Oracle Apps. When a service request is created on Siebel we are passing that in Oracle Apps using Oracle Apps adapter which is calling a custom API which is doing all the validations and in turn is calling a public api for service request creation. There are two types of service requests - Field Service and Depot Repair. For Field Service we are able to successfully insert the data on Oracle Apps, but for Depot Repair we are getting an error 'CSD CSD_RULE_MATCH_FAILED' from the standard API.
    We have checked the setup and found it is proper. We invoked the pl/sql API from sql developer and we are able to insert the data. So we are facing this issue only when calling the api from oracle apps adapter.
    In the invoke call we have set these properties -
    jca.apps.RespApplication
    jca.apps.Responsibility
    jca.apps.Username
    Based on our analysis till now it is looking like a security context setup issue, but we are not really sure what properties to set.
    Any help in getting this through will be greatly appreciated.
    Thanks,
    Shantanu

    Hi Vijay,
    We have created the apps adapter with default settings as 'apps' user and set the properties Responsibility, RespApplication, Username of <invoke>. Other than that no other settings has been changed.
    Are we missing anything?
    This adapter is able to hit the database in case of 'Field Service' but it is failing for 'Depot Repair'.
    Edited by: 927382 on Apr 13, 2012 2:19 AM

  • Oracle API from SQR

    Hi
    I am trying to call an Oracle API from an SQR report running in PeopleSoft 8.1.
    The code I am using is shown below:
    begin-sql
    declare
          LN_PERSON_ID NUMBER;;
          LN_ASSIGNMENT_ID  NUMBER;;
          LN_PER_OBJECT_VERSION_NUMBER NUMBER(9);;
          LN_ASG_OBJECT_VERSION_NUMBER NUMBER(9);;
          LD_PER_EFFECTIVE_START_DATE  DATE;;
          LD_PER_EFFECTIVE_END_DATE DATE;;
          LV_FULL_NAME VARCHAR(80);;
          LN_PER_COMMENT_ID NUMBER;;
          LN_ASSIGNMENT_SEQUENCE NUMBER;;
          LV_ASSIGNMENT_NUMBER VARCHAR(30);;
          LB_NAME_COMBINATION_WARNING BOOLEAN;;
          LB_ASSIGN_PAYROLL_WARNING BOOLEAN;;
          LB_ORIG_HIRE_WARNING BOOLEAN;;
          LN_EMPLID VARCHAR(6);;
             lv_err_code VARCHAR(1000);;
              lv_err_msg VARCHAR(1000);;
    begin
                 LN_EMPLID := $Emplid;;
                HR_EMPLOYEE_API.CREATE_EMPLOYEE@OPAYR(
                p_validate => FALSE           
                ,p_hire_date                    => to_date($Effdt, 'dd-mon-yyyy')
                ,p_business_group_id            => 83
                ,p_last_name                    => $Last-Name
                ,p_sex                          => $Sex
                ,P_FIRST_NAME                   => $First_Name
                ,P_MARITAL_STATUS               => $Mar-Status
                ,P_MIDDLE_NAMES                 => $Middle-Name
                ,P_NATIONAL_IDENTIFIER          => $National-Id 
                ,P_TITLE                        => $Prefix  
                ,P_PER_INFORMATION1             => $Tax_Reference-No 
                ,P_PER_INFORMATION2             => $Passport-Number
                ,P_PER_INFORMATION4             => $Ethnic-Group
                ,P_ORIGINAL_DATE_OF_HIRE        => to_date($Effdt, 'dd-mon-yyyy')
                ,p_date_of_birth                => to_date($Birthdate, 'dd-mon-yyyy')
                ,p_attribute1                   => $Nc-Legacy-Company
                ,p_person_type_id               => 1145
    !---OUTPUTS           
                ,p_employee_number              =>   LN_EMPLID
                ,p_person_id                    => LN_PERSON_ID
                ,p_assignment_id                => LN_ASSIGNMENT_ID
                ,p_per_object_version_number    => LN_PER_OBJECT_VERSION_NUMBER
                ,p_asg_object_version_number    => LN_ASG_OBJECT_VERSION_NUMBER
                ,p_per_effective_start_date     => LD_PER_EFFECTIVE_START_DATE
                ,p_per_effective_end_date       => LD_PER_EFFECTIVE_END_DATE
                ,p_full_name                    => LV_FULL_NAME 
                ,p_per_comment_id               => LN_PER_COMMENT_ID
                ,p_assignment_sequence          => LN_ASSIGNMENT_SEQUENCE
                ,p_assignment_number            => LV_ASSIGNMENT_NUMBER
                ,p_name_combination_warning     => LB_NAME_COMBINATION_WARNING
                ,p_assign_payroll_warning       => LB_ASSIGN_PAYROLL_WARNING
    exception
        when others then
       lv_err_code := sqlcode;;
       lv_err_msg := sqlerrm;;   
      raise_application_error(-20000,'API ERROR '||lv_err_code||' on '||lv_err_msg);;
    end;;
    end-sql
    End-Procedure I cannot ge this to work correctly. It seems as if the PL/SQL embedded in the Begin-sql is not parsing the variables. The error recevied is:
    Start of Program Oracle Payslip Interface
    (SQR 5528) ORACLE OCIStmtExecute error 20000 in cursor 23:
    ORA-20000: API ERROR -20001 on ORA-20001: HR_ZA_MAND_SEG_RACE:
    ORA-06512: at "APPS.HR_EMPLOYEE_API", line 1019
    ORA-06512: at "APPS.HR_EMPLOYEE_API", line 1186
    ORA-06512: at line 1
    This error refers to the value assigned to P_PER_INFORMATION4. I have confrimed that there is a valid value in the $Ethnic-Group variable but this value does not seem to be parsing to the PL/SQL. Any assistance would be greatly appreciated.
    Regards
    Muhammad

    The NLS language parameter needs tobe set for this session.
    The following line fo code was used:
    dbms_session.set_nls('NLS_LANGUAGE', '''AMERICAN''');;

  • Forwarding to Budget Line details in Oracle Project from Custom Page

    Hi,
    Actually we have a custom page which lists all the projects, our idea is to navigate the user from project line to the Oracle Project's Budget Line Details Page to show project header information and budget line details. I cannot directly forward to the page because its different application, so do we need to extend the custom application to oracle projects. Can anyone suggest me best way to follow so that we an set required session variable and initialise view object which required for Budget line details page.
    The Url which we trying to forward is OA.jsp?page=/oracle/apps/pa/finplan/webui/FpEditPlanPG
    Thanks

    AJ,
    Thanks for your super fast response.
    I don't want to dynamically display the attribute.
    As we can see there are existing attributes in the shuttle list , so we can shuttle whichever attribute we want to display.
    I need to add my attribute to this list and I am not getting idea as to how and which VO i need to substitute to get the attirbute in this list, once I can get this attribute I hope it'll be displayed in the search page once we shuttle this attribute to the display list. Let me know if i am wrong.
    Also, I tried to find the VO behind both the pages, for CustomJRADViewUpdatePG.xml there are no VOs to check for and only in MyProjectsPG , I found out ProjectListGenVO, so is this the one i need to substitute with?
    Thanks,
    Affy

  • Upgrading from Oracle 10G standard edition to Oracle 10G enterprise edition

    Hi
    I want to upgrade from Oracle 10G standard edition to Oracle 10G enterprise edition. Is there any script provided by oracle which I can run on existing Oracle 10G standard edition to upgrade to enterprise edition after completing the licensing formalities or do I need to install Oracle 10g Enterprise edition from scratch and then migrate my data.
    Ramanbir S

    You will not need to perform any data migration to upgrade to EE. The diffetence between standard en enerprise editions are the features offered. When you upgrade you can use the same set of files you used to install standard edition and just add the enterprise edition features you want to use in the 'Custom' section of the Universal Installer.

  • When I print to Acrobat from Quickbooks, Acrobat adds heavy lines.  Solutions??

    When printing to file from Quickbooks to Acrobat, Acrobat has begun to add three heaviy lines.  Always in the same location; like three sides of a box.  Initially the application worked fine.  But since this problem started it has been consistant.  I have Windows 7.  Thank you.

    This forum is for printing from Acrobat, not to Acrobat which actually uses Acrobat Distiller. I will move your post to the appropriate forum.
    The problem may be due to Acrobat/Distiller or it may be the output that Quickbooks is generating.

  • Calling Oracle API from controller

    Hi,
    I need to call a Public API from controller.
    API procedure is having 85 parameters,but only few are manadatory. can someone tell me whether i need to pass all the parameters with default values or null or is there anyway i can pass only required parameters.

    Hi,
    import oracle.jdbc.OracleCallableStatement;
    import oracle.jdbc.OracleTypes;
    You create a callable statement like,
    OracleCallableStatement callableStatement = null;
    String callStr = " BEGIN mypackage_pkg.add_ite, "+
    "(p_organization_id => :1, " +
    " p_batch_id => :2, " +
    " p_reason_code => :3, " +
    " x_msg_count => :4); "+
    " END; ";
    callableStatement = (OracleCallableStatement)getOADBTransaction().createCallableStatement(addWriteOffItem,1);
    //Set in and out variables like,
    callableStatement.setNUMBER(1, organizationId);
    callableStatement.setNUMBER(2, batchId);
    callableStatement.setString(3, reasonCode);
    callableStatement.registerOutParameter(4,OracleTypes.VARCHAR,255);
    //Then execute the stmt
    callableStatement.execute();
    resultMessage = (String)callableStatement.getString(4);
    The code should be inside the try catch block.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • Calling OLE API from Oracle Stored Procedure

    An application that I need to intergate with exposes only the OLE API. How can I invoke these OLE APIs from Oracle stored procedure? Do I need any special/ additional Oracle components? Can you please help. Any links to examples would be very helpful. Thanks.

    If what you mean by Oracle stored procedures is pl/sql then yes.
    You can create a "wrapper" this way:
    CREATE OR REPLACE FUNCTION xmlXform
    in_mapUrl IN VARCHAR2,
    in_inputUrl IN VARCHAR2
    RETURN VARCHAR2
    AS
    LANGUAGE JAVA NAME
    'com.yourcompany.xml2any.xform(java.lang.String,java.lang.String)
    RETURN java.lang.String';
    Then load the java as:
    loadjava -user youruser/youruserpasswd -resolve -verbose lib/xmlparserv2.jar classes/com/yourcompany/xform.class classes/com/yourcompany/xml2any.class
    The java, given the correct permissions, can do anything java can do including communicate with outside applications.
    Is this the "best" way... depends on what you are trying to accomplish.

  • Java.lang.SecurityException when trying to execute Workflow-Java-API from Servlet

    I'm trying to call some of the Oracle Workflow-Java-API Classes/Methods from a servlet running on OC4J.
    The following Code-Sample is exactly copied from the WFTest Example shipped with Oracle-Workflow:
    wfDB = new WFDB(user, ident, "jdbc:oracle:thin:@", "host:1521:tnsstring");
    String charset = System.getProperty("CHARSET");
    if (charset == null) {
    charset = "UTF8";
    ctx = new WFContext(wfDB, charset);
    if (ctx.getDB().getConnection() == null) {
    throw new Exception ("Keine Verbindung zum Workflow");
    On OC4J integrated in JDeveloper everything works fine when i run my test-servlet with this code.
    On 9ias with OC4J running on a SuSE-Linux Server i get the following Error:
    java.lang.SecurityException: class "oracle.apps.fnd.wf.WFContext"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:554)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:482)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    at oracle.apps.fnd.wf.engine.JdbcEngineAPI._sqlQueryText(JdbcEngineAPI.java)
    at oracle.apps.fnd.wf.engine.EngineAPI.getItemTypes(EngineAPI.java)
    at WorkflowData.doGet(WorkflowData.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:508)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:177)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    As you can see, the first Workflow-API-Object (WFDB) gets correctly instantiated. But the second one crashes.
    The java.policy and java.security files are exactly identical on both machines, my PC and the Linux-Server.
    Where might be the problem ?
    How can we fix this ?
    thanks in advance for any help
    Ralf

    okay, okay,
    my/our own fault.
    To prevent anyone else of makeing the same mistake, a short decription:
    We stored the wf????.jar files inside the $JAVA_HOME/jre/lib/ext directory.
    The correct way is to let them inside $ORACLE_HOME/jlib dir of the oracle db and extend the classpath, respectively add the following lines to 'orion-application.xml' of the app.
         <library path="$ORACLE_HOME/jlib/wfapi.jar" />
         <library path="$ORACLE_HOME/jlib/wfjava.jar" />

  • How can I inserting file's line into a oracle table in physycal order

    How can I insert the file's line into a oracle table in the same physycal order that they exists in the file ?
    I am using "SQL to FILE" km to performing file load into Oracle table, but the order which the records are insered into the oracle table doesn't match with the order of file's lines
    How can I guarantee the same file's physycal order in the oracle table( target ) and file( source ) ?
    Is it possible throught ODI ?
    Thanks,
    Luciana

    Hi,
    although I understand why use "File to Oracle( SQLLDR )" KM, I haven't the guarantee that in the agent's machine the Oracle Client installed and because when I openned the others projects I saw that anyone in my company use this KM( "File to Oracle( SQLLDR )" )
    Tha's why I ask for anyone lead me whith the modification of the previous post in the "uLKM File to SQL", specifing the km step e where put the RECNUM pseudo column
    This is fundamental for my ODI project
    When I try to alter the "Create Work Table" and "Load Data" step of my "uLKM File to SQL" km, the execution returned me the error below:
    =====================> Create Work Table Step
    create table <@= vWorkTable @>
         C1_LINHA_ARQ     VARCHAR2(500) NULL, RECNUM NUMBER(10)
    =====================> Load Data Step
    select     LINHA_ARQ     C1_LINHA_ARQ
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=ARQ_INSS2SNP$CRLOAD_FILE=/arquivos_odi/ccrs/in/#CCRS_CAD_INSS.vpNOME_ARQUIVOSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=09SNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=LINHA_ARQSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=500SNP$CRPRECISION=500SNP$CR$$SNPS_END_KEY*/
    insert into ODI_RUN_CONV.C$_0TMP_ODI_INSS_DADOS_ARQ
         C1_LINHA_ARQ, RECNUM
    values
         :C1_LINHA_ARQ, RECNUM
    =====================
    984 : 42000 : java.sql.BatchUpdateException: ORA-00984: column not allowed here
    984 : 42000 : java.sql.SQLSyntaxErrorException: ORA-00984: column not allowed here
    java.sql.BatchUpdateException: ORA-00984: column not allowed here
         at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:629)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9409)
         at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:211)
         at com.sunopsis.sql.SnpsQuery.executeBatch(Unknown Source)
    ...Thanks again gyus,
    Luciana
    Edited by: 933810 on 31/05/2012 06:04
    Edited by: 933810 on 31/05/2012 06:07
    Edited by: 933810 on 31/05/2012 06:14

  • How To Determine from what modifier line a pricing attribute is called

    Hello,
    We would like to know from what modifier line a pricing attribute is called.
    When creating the attribute mapping you have the global record structure to your disposal,
    however do you also have the opportunity to determine the modifier line id.
    We would like to create some modifiers with some pricing attributes (using attribute mapping)
    and those pricing attributes should return different results based on the modifier they are attached to.
    Many thanks!
    rgds
    Leen
    Edited by: user798765 on Apr 13, 2010 6:25 AM

    The only one I know is using java version 1.4:
    http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html#getStackTrace()

  • Questions about free personal or home edition of Oracle

    I am considereing downloading the personal edition of Oracle for home use (mostly just learning Oracle) but I have some questions and concerns. Maybe someone could answer some of them.
    1) Will it take up a lot of resources and bog down my computer? I have XP Pro with 512M Memory and plenty of disk space with a 1.8 Ghz AMD processor.
    2) Is it just one download?
    3) What do you actually get with that download? Do you just get the database? Or do you get SQL*Plus? Do you get Oracle Forms?
    4) Is it fairly easy to set up and configure?
    5) Does it have all the features of the enterprise version except on a smaller basis - Packages, Stored Procedures, Triggers, Functions, Synonyms, etc?
    6) Is there any other concerns or comments that I should be aware of?

    OK, let's see:
    1) Will it take up a lot of resources and bog down my
    computer? I have XP Pro with 512M Memory and plenty
    of disk space with a 1.8 Ghz AMD processor.The main concern is memory, 512 is fairly good to run OracleXE.
    2) Is it just one download?Yes, it is just one download for the database, if you want to have the client, then there is another download, this can be obtained from the same site where you got the database. There are other minor downloads, but those are silent install files, used only when you want to batch the installation process.
    3) What do you actually get with that download? Do
    you just get the database? Or do you get SQL*Plus? Do
    you get Oracle Forms?You get the RDBSM 10gR2XE, and sqlplus as the SQL CLI (Command Line Interface), plus the OracleXE manager (a web based administrator, this cannot be compared with the regular EM DB Console, but it's nice, compact and provides pretty good manageability). You don't get development tools, but it is advisable that you download the SQLDeveloper, and IDE (free too) to develop PLSQL in a Toad like way.
    4) Is it fairly easy to set up and configure?Yes, but just like any other rdbms, like MySQL or postgress, you should have an introductory document to tell you the basics to startup. Managing this from its web console gives you a first productive administrative session. Meanwhile, you should be getting involved with more advanced concepts, and you can get the XE documents from the tahiti site (http://tahiti.oracle.com).
    5) Does it have all the features of the enterprise
    version except on a smaller basis - Packages, Stored
    Procedures, Triggers, Functions, Synonyms, etc?There are several limitation, it is a very good point to start, but don't expect this to be used for a massive deployment on high availability and mission critical environments, it can be used for production, but you should be aware of the features and capabilities of the version, there are a couple of very good references where you can get an insight on what you can and cannot expect from XE:
    http://www.oracle.com/technology/products/database/oracle10g/pdf/twp_general_10gdb_product_family.pdf
    and http://www.oracle.com/technology/pub/articles/cunningham-database-xe.html
    6) Is there any other concerns or comments that I
    should be aware of?Just read the above references and get your own conclusions, if you have any further concerns, please don't hesitate to come back to the forum. By the way there is an specific OracleXE forum, if you are interested, if you want to access this forum you must register to it.
    ~ Madrid

  • How to calculate the total of absences? How to collect data from a specific line of a table?

    Hi,
    Again, I made a nice coloured picture from a screen capture which summarise the improvements that I would like to make in my form,
    Situation:
    For an educational purpose, I made this form   to simplify the way of recording the data and also to develope the independence of the students.
    ( I am doing this on a voluntary basis, working extra hours on my free time but I don't really mind because I am learning a lot of things in the same time)
    After being tested by the teacher, the student has to record the short date, the lines memorised, his grade, number of mistakes, and his attendance.
    I created everything in Word, then converted the file in PDF, then I created all the different fields with Adobe acrobat.
    There is in total 4 sheets, there are all similar except the first one in which there is a box with: date started, date finished, total time spent, absences.
    Below this box there is a table with 16 lines from (A to P) and 7 columns (Days, Date, From.. to.. , Grade, No. lines memorised, No. Errors, Attendance) ( so this table is present on all the sheets)
    Due to the fact that some students need more time than others, and also beacause some text need more time, I estimated a need of 4 sheets at the very most.
    I would like to make the following amelioration and automate the inputting of some of the data because I know that some of the students will certainly forget, so to avoid this scenario I am trying to make this form the easiest possible.
    screen capture of the form:
    screen capture of the form editing, you can see the names of the different fields:
    here is the form (only the first page) : http://cjoint.com/12fe/BBotMMgfYIy_memorisation_sheet_sample.pdf
    In  yellow 00000:
    At present, the students has to input the total of absences manually, is there a way ( script) to automate this by initialising the field next to "Absences" at  " 0 day"   and then everytime that Absent is selected from the COMBO BOX, it add 1 and it is displayed like this:  " 1 day" then " 2 days"  then " 3 days" etc … (so from what I read I have to initialise a counter a the beginning and then for (i...   ) count= count++; something like this...
    Furthermore, I need a solution to overcome the possibility that a second sheet may be needed for the same student; therefore I would need the data from the "attendance column" from the second sheet ( and perhaps the 3rd and 4th aswell) to be added on the "absences field" in the first sheet
    My idea: everytime that the short date is inputted in the first line (next to A) in the "Date" column of one of the 4 sheets then we check the 16 Combo box of the attendance column in this sheet instead to check 16*4=64 fields fot the 4 sheets in one go?
    but I don't know at all how to write it in Javascript. Or perhaps there is a way more easier than that?
    Shall I allocate a value for Absent on the “ export value”?
    In purple
    At present I wrote a simple script which matches the number of lines to the poem selected (Eg.  if I select the poem V.Hugo,  the number "36" will appear next to Number of lines).
    Again I would like the make the life of the students very easy so I would like a script which detects this number “36” on the "From .. to …" column,  as soon it is detected (on the first sheet or 2nd or 3rd or 4th)  check from the same line if "A / Pass" or "B / Pass" have been selected in the "Grade" column ,if yes the short date inputted on this line will be written on the field next to "Date finished" .
    this is a simple example with 36 lines only but somethimes, the students may have to memorise 80 lines and more, this is the reason for having 4 sheets in total.
    So basically I would like to automate the field next to" Date finished:" with a script that collect the short date from the day in which the student has finished his memorisation with "A / Pass" or "B / Pass"
    As for the "Total time spent" George Johnson helped me with a script that calculate the difference betwen date started and date finished (thank you)
    I am sollicting your help, because after trying for hours I was really confused with the different if/else needed. And in top of that, it’s my first experience with Javascript.
    I anticipate your assistance, thanking you in advance.

    I found this for counting the absences, its give you the total that's perfect, but is there a better methode which avoid me to write all the fields name, more simple????
    ( I found the idea here : Re: Total number added automatically  )
    // custom calculation script for field "Total #"
    function CountFields(aFields) {
    var nFields = 0;
    for(i = 0; i < aFields.length; i++) {
    try {
    // count null values, export value of Absence is 0;
    if(this.getField(aFields[i]).value == "0") nFields++;
    } catch(e) {
    if(e['message'] == "this.getField(aFields[i]) has no properties") app.alert("unknown field name: " + aFields[i]);
    else app.alert(e.toString());
    } // end catch
    } // end for aFields
    return nFields;
    // create array of field names to count
    var aNames = new Array("Sheet1AttendanceA","Sheet1AttendanceB","Sheet1AttendanceC","Sheet1AttendanceD","Sh eet1AttendanceE","Sheet1AttendanceF",
    "Sheet1AttendanceG","Sheet1AttendanceH","Sheet1AttendanceI","Sheet1AttendanceJ","Sheet1Att endanceK","Sheet1AttendanceL",
    "Sheet1AttendanceM","Sheet1AttendanceN","Sheet1AttendanceO","Sheet1AttendanceP" );
    // count the non-null fields;
    event.value = CountFields(aNames);
    As for the 2nd question, I've tried to do something similar to the previous script, but of course it doesn't work, but I am quite sure that the idea is similar:
    I don't know also how to add the other condition: the student should get A / Pass or B / Pass in order to consider he has finished??? and also how to check these condition from page 2, 3 and 4 and collect the date
    function Datefinished(bFields) {
    d2.value = nFields[i].value;
    for(i = 0; i < aFields.length; i++) {
    try {
    if(this.getField(aFields[i]).value == this.getField("NumberLines").value) d2.value = nFields[i].value;
    } catch(e) {
    if(e['message'] == "this.getField(aFields[i]) has no properties") app.alert("unknown field name: " + aFields[i]);
    else app.alert(e.toString());
    } // end catch
    } // end for aFields
    return nFields;
    // create array of field names to check
    var aNames = new Array("Texte00","Texte54","Texte56","Texte58","Texte60","Texte62","Texte64","Texte66","Te xte68","Texte70","Texte72","Texte74","Texte76","Texte78","Texte80","Texte82");
    var bNames = new Array("d1","d3","d4","d5","d6","d7","d8","d9","d10","d11","d12","d13","d14 ","d15","d16","d17");   // d1 is included because in some cases a student can finish in 1 day (short text);

  • How to call a Web Api from from a Visual webpart code behind?

    Hi,
    I am trying to create a visual web part in sharepoint 2013 with data received from another Web API.
    I followed the below steps.
    1. Created a Visual Web part.
    2. In the code behind(.cs) file I wrote the following code.
     async private void GetResult()
                using (var client = new HttpClient())
                    client.BaseAddress = new Uri("http://localhost:8080/");
                    client.DefaultRequestHeaders.Accept.Clear();
                    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                    var response = await client.GetAsync("api/Tfs/OpenEnquiriesCount");
                    var content = response.Content;
    3. When I run the application, I get security exception in the line await
    client.GetAsync()
    What is the way to achieve this? How to call a web api from share point visual web part?
    Thank you in advance.

    Hi,
    Thanks for your sharing.
    Cheers,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • Getting an error when running Preflight to embed fonts in Acrobat Pro version 9

    I am running Acrobat Pro version 9.4.5 and when I am running a pre-flight for embedding fonts in my document I am getting an error message as follow: " An unexpected error has occurred during the Fixup process ". This is occuring at the font processi

  • Document control across devices

    is it (or can/will it be) possible to enable (via an application preference setting?)  control/synchronization of pages, numbers or keynote documents with options such as: 1 -  auto-save, update all "occurrences" on all devices via automatic synchron

  • How to generate web services for OAS with wsdl extension

    Hi, I wanted to know how to generate web services from Oracle Application Server especially with .wsdl extension and with document/literal style. I know that earlier there was a tool called SmartConnect from BEA WebLogic. But that will work only with

  • No Thuumbnails of JPG files

    I just got OSX on my new MacBook Pro. In Finder, the thumbnails for JPGs do not show the actual picture, just the word "JPG". TIFFs are fine. On my PowerBook, all JPG files have thumbnails. I just can't remember how I made this happen. Thanks in adva

  • How to upgrade iphone 3gs ios3.1 to ios4.1/4.3

    I have been trying to upgrade my iphone 3gs recently.. Unfortunately Itune keeps popping up the message box and stated that "There was a problem downloading the software for the iphone. The network connection timed out", It also required me to make s