Item substitution in static *.js file?  (APEX 2.2)

Hi, all,
How can I have a *.js file (or any text file, I suppose) be run through exact substitution (i.e., &MY_ITEM.) before being loaded? I have the js file uploaded as a static file.
The idea is that I can have "constants" that are reused in both JavaScript and APEX. Such as
function CoolAjaxThing()
var req = new htmldb_Get(null, &APP_ID., /*...*/);
I know this works in the HTML headers.
Thanks!

Thanks for your replies!
Well, it seems that pFlowId is an HTML element that is present everywhere and contains the application ID.
However, I have a second (non-APEX) parameter that I need to contain another global constant. What is the best way to add a hidden HTML input element to every page? In my .js file, I can then put :
var oldOnload = window.onload;
window.onload = function()
if(oldOnload) oldOnload();
myApplicationID = document.getElementById("pFlowId").value;
myCoolAppData = document.getElementById("myCoolAppDataInEveryAPEXPage").value;
Thanks,
Don

Similar Messages

  • Variable Substitution settings for Receiver File Adapter

    Hi All,
    I wanna use variables for File Name Sheme in the File Access Parameters.I had used by enclosing the variable names within %. When i wanna substitute values for those variables, it is given in the documentation(help.sap.com) that v need to set the Enable indicator. only after setting the indiactor, v can use the variables and can then enter the values for those variables in a table. but i can't see either the indicator or the table in my editor. how can i provide the values for the variables used in file name scheme/Target Directory. and for ur information,i'm using sp12.
    any help wud b appreciated.
    thnx
    Anil

    Hi Anil,
    Please check out the following link ...
    Re: Variable substitution - Pseudo Path Variable - file adapter
    Re: Variable substitution problem
    Regards,
    Raj

  • Is there a way to merge Static PDF files and PDF Forms

    Hi All,
    The issue I am facing is this: 1200+ PDF forms that employees
    will need to sign. The docs are being created in MS Word, and all
    have a standard signature block. We have prototyped using LiveCycle
    Designer 8 to add fields to static PDF files (print Word files into
    Acrobat, import into LiveCycle and paste in fields) but this is
    pretty labor-intensive to use with a minimum of 1200 forms per
    quarter.
    The employee forms go into a CF8/Oracle library app (stored
    as BLOBs) and served up for 7,000 or so employees to sign. Posted
    data goes back into database.
    Here is the issue:
    Does anyone know any way to use some combination of cfpdf /
    cfpdfform / cfdocument that will allow us to create ONE generic
    signature block form, 1200 static PDF files, and merge them on the
    fly?
    <cfdocument> apparently does not allow PDF data to be
    included with a <cfpdfform>, as I have tried outputting PDF
    variables, toBinary(PDF variable), PDF served by <cfcontent>
    and various other combinations.
    (If the non-form data were HTML, we could easily output in a
    <cfdocumentsection> of the cfdocument, and add the
    <cfpdfform source="#genericForm#" action="populate"> and be
    done with it. But, we can't.)
    <cfpdf action="merge"> with a combination of a static
    PDF file and a populated form results in a flattend PDF file with
    no form data.
    I am acutely aware that LiveCycle 8 uses the XFA schema, and
    regular PDF documents use a different schema. And, this may
    prohibit what we want to do.
    If anyone has experience with CF8 PDFs and PDF forms, or has
    any helpful thoughts, I would be appreciatively gross. Needless to
    say, this is a six month project that must be live at the end
    November.
    Thanks!
    Jim Bates
    Verizon Business

    As I mentioned on the other thread, the forms need to be
    flattened. CFPDF cannot flatten LiveCycle forms, only Acrobat
    Forms. The suggested solution was to use LiveCycle ES
    http://www.adobeforums.com/webx/.3c052176

  • The filtering process could not be initialized when trying to process this item. Verify that the file extension is a known type and the item is not corrupt

    I am getting below error message while search crawl in sharepoint foundation 2010 search for only .VSD files and not for any other docs type.
    The filtering process could not be initialized when trying to process this item. Verify that the file extension is a known type and the item is not corrupt. 
    I have installed the Microsoft Filter Pack 2.0 in search server but still i am getting the same error.
    <//span>
    Any one's help will be appreciated.
    Regards,
    Rashmi
    Rashmi Singhal

    Hi Rashmi,
    1. Checked the file extension is added or not to the search file types.
    2. Checked file name has any invalid characters.
    3. Resetting the crawl index and run a full crawl .
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • The content item must have a primary file.

    I am trying to check in a new file use the service "CHECKIN_NEW" in UCM 11.1.1.6.
    I checkin the *"CHECIN_NEW_TEST.hcst"* into the content server. And run it by submit the page to test the service.
    The error cause like this: Content item '001026' was not successfully checked in. The content item must have a primary file.
    And the log is :
    !csUserEventMessage,wladmin,192.168.6.250:16200!$!csUnableToCheckIn,001024!csCheckinPrimaryFileRequired
    intradoc.common.ServiceException: !csUnableToCheckIn,001024!csCheckinPrimaryFileRequired
    *ScriptStack CHECKIN_NEW_SUB
    3:doScriptableAction,**no captured values**3:doSubService,**no captured values**CHECKIN_NEW_SUB,**no captured values**3:validateStandard,dDocName=001024
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2326)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
    at intradoc.server.Service.createServiceException(Service.java:2315)
    at intradoc.server.DocServiceHandler.validateStandard(DocServiceHandler.java:1339)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:603)
    at intradoc.server.Service.doCode(Service.java:575)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
    at intradoc.server.Service.doAction(Service.java:547)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
    at intradoc.server.Service.doActions(Service.java:542)
    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1322)
    at intradoc.server.Service.executeSubServiceCode(Service.java:4023)
    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
    at intradoc.server.Service.executeServiceEx(Service.java:4018)
    at intradoc.server.Service.executeService(Service.java:4002)
    at intradoc.server.Service.doSubService(Service.java:3912)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
    at intradoc.server.Service.doCodeEx(Service.java:620)
    at intradoc.server.Service.doCode(Service.java:575)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
    at intradoc.server.Service.doAction(Service.java:547)
    at intradoc.server.Service.doScriptableAction(Service.java:3964)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
    at intradoc.server.Service.doCodeEx(Service.java:620)
    at intradoc.server.Service.doCode(Service.java:575)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
    at intradoc.server.Service.doAction(Service.java:547)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
    at intradoc.server.Service.doActions(Service.java:542)
    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
    at intradoc.server.Service.executeActions(Service.java:528)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
    at intradoc.server.Service.doRequest(Service.java:1956)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1354)
    at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1731)
    at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
    at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
    at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
    at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
    at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1704)
    at idcservlet.IdcFilter.doFilter(IdcFilter.java:457)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    The CHECIN_NEW_TEST.hcst  as follows:
    <html>
    <head>
    <$include std_html_head_declarations$>
    </head>
    <$include body_def$>
    <$include std_page_begin$>
    <form name="cuxCheckinNewPG" method="get" action="<$HttpCgiPath$>">
    <input type="hidden" name="IdcService" value="CHECKIN_NEW" >
    <input type="hidden" name="dDocAuthor" value=<$UserName$>
    <$include idc_token_form_field$>
    <table width="53%" height="100" border="1">
    <tr>
    <td width="306" height="26">dSecurityGroup</td>
    <td width="325">
    <input type="text" name="dSecurityGroup" value="Public" /> </td>
    </tr>
    <tr>
    <td width="306" height="26">dDocTitle</td>
    <td width="325">
    <input type="text" name="dDocTitle" /> </td>
    </tr>
    <tr>
    <td>primaryFile</td>
    <td colspan="3"><INPUT NAME="primaryFile" TYPE="file"> </td>
    </tr>
    <tr>
    <td colspan="2" align="middle">
    <input type="submit" value="SubmitBtn" name="checkinSubmit"></td>
    </tr>
    </table>
    </form>
    <$include std_page_end$>
    </body>
    </html>
    Thanks
    Mandy
    Edited by: user8898100 on Jul 2, 2012 6:16 PM
    Edited by: user8898100 on Jul 2, 2012 6:17 PM

    It's really more of an HTML issue with the form itself than a Content Server issue.
    <form name="cuxCheckinNewPG" method="get" action="<$HttpCgiPath$>">You can't submit files using a GET method. This attribute must be "POST".
    <form name="cuxCheckinNewPG" method="POST" enctype="multipart/form-data" action="<$HttpCgiPath$>">

  • End Item Substitution & Substitute Components

    Dear Experts,
    Need your expert advise on Item Substitution Set & Substitute Component
    We have defined Item Relationship for an End Item and defined Planning Details mentioning partial fulfillment and applicable to all customers.
    We have also defined a substitute component.
    Data Collection – Complete Refresh
    Plan Type – Constraint (EDD)
    Profile Option - MSO: Enable Decision Rules is set to ‘Yes’
    Decision Tab is enabled and ‘Substitute Component’ is activated.
    MRP: Include Substitute Components is set to ‘Yes’
    MSC: Choice of item for which to create supplies in substitute relationship is set to ‘Demanded Item’
    MSO: Choice of supply for substitution is set to ‘All supplies’
    Issue 1 –
    Even though item relationship is defined in source Instance and Substitute set is defined in Planning Details. But, while setting up plan options.. we don’t see any value to select for “End Item Substitution Set” hence End Item substitute can’t be enabled. Am I missing any additional setup which would allow to get the End Item Substitution Set in plan options.
    Issue 2 –
    There is sufficient OHQ available for substitute component which is pegged to excess, still there is planned order suggested to cover primary item demand.
    Also, while doing an ATP we don’t see the substitute component.. but it appears currectly when doing the ATP with ‘Enable Diagnostic ATP’. Please suggest, if I am missing any steps..
    Appreciate your inputs.
    Regards
    Sanjay

    1) Make sure you collect master org too (admin > instances > organizations)
    2) A constrained plan looks at substitute item only if the primary component cannot be obtained to meet the demand. So if you demand date is later than the lead time for the primary item, then Oracle will create a PO for the primary item instead of using the excess onhand of the substitute.
    Hope this answers your question,
    Sandeep Gandhi

  • Query on static text files upload ? Please reply

    Hi all,
    We have some doubts in uploading static text files in RAR 5.3 version. Can anybody please clarify at the earliest?
    1) Can we prepare the SoD rule set in the static text files (as provided by SAP during installation)
    till Action (t- code) level conflicts and upload the same. After that cam we add/change the
    authorization objects manually as per the business requirement? Whether this is possible?
    Does a small SPACE in the text file will impact the rule set uploading?
    2) If we are configuring the rule set manually i.e when we are assigning t-codes to the functions,
    we believe the authorization objects will gets picked up automatically from the back end system for that particular t-code and the object values can be edited as per the SoDs of the business requirement? Is our understanding correct?
    If this is true, refer to question 1 whether we will get the authorization objects in case of
    uploading the text files (Business process, Funcitons, rule set,action level) only at action
    level?
    3) Once if we have used the text files for uploading the rule set can we edit them manually i..e disabling the t-codes from function, deleting the risk ids etc.,. ORELSE even the changes has to be made in the text files and upload again replacing the existing rule set whenever there are changes in the SoD rule set?
    Thanks and Best Regards,
    Srihari.K

    Dear Srihari,
    1) Can we prepare the SoD rule set in the static text files (as provided by SAP during installation)
    till Action (t- code) level conflicts and upload the same. After that cam we add/change the
    authorization objects manually as per the business requirement? Whether this is possible?
    Ans - Theoratically we can prepare our own text files in the same format as provided by SAP. Till action level it is not so difficult. Difficulty rises when we create permission files. This is near to impossible to create exact copy of SPA authorization objects and values due to human error. So it is advisable to upload SAP standard for sap specific analysis and at the same time we can keep org levle ruleset and risks. We do it by doing it in GRC manually( Create business process, function id, risks and generate rul sets) - that is better practice.
    Does a small SPACE in the text file will impact the rule set uploading?
    2) If we are configuring the rule set manually i.e when we are assigning t-codes to the functions,
    we believe the authorization objects will gets picked up automatically from the back end system for that particular t-code and the object values can be edited as per the SoDs of the business requirement? Is our understanding correct?
    If this is true, refer to question 1 whether we will get the authorization objects in case of
    uploading the text files (Business process, Funcitons, rule set,action level) only at action
    level?
    Ans - As far I know the text file should be in exact format if we want to create custom files.
    3) Once if we have used the text files for uploading the rule set can we edit them manually i..e disabling the t-codes from function, deleting the risk ids etc.,. ORELSE even the changes has to be made in the text files and upload again replacing the existing rule set whenever there are changes in the SoD rule set?
    We have to change it in GRC manually.
    From your question what I could get is that you want to do it according to your business scenario. Better if you collect data(as you will even do in case of text files) and configure it manually.
    Regards,
    Sabita Das

  • Including static html file (WebServer)  with JSP (App server)?

    Hi,
    I want to know how can a static html file that runs on a Web Server (iPlanet) in a JSP that runs on an App Server (WebLogic 6.1).
    What would be the tag used and how the html file is referenced? Is there any other extra settings involved while integrating iPlanet with WebLogic 6.1?
    Responses are highly appreciated.
    Thanks and Regards,
    Madanlal.

    Web servers usually work with the MIME Types. In the mime type settings will determine how a request for a particular mime type is served. Usually HTML, JPG,GIF... are served by the web server itself. A JSP request will be forwarded to the APP Server for peocessing.
    The HTML and the image files need to be in a directory visible to the web server from the document root.
    See the files
    config\mime.types
    config\obj.conf
    under the web server installation directory.
    Refer to the web server's admin guide for more info.

  • Automated Item Substitution in Workbooks?

    Hello,
    When the column names in view based folders change, workbooks using those folders will prompt the user for an item substitution. This can be a tedious task if there are many workbooks using the modified folder.
    For example, originally, Folder1 had Item1 which is used in Workbook1. Later, the underlying view for Folder1 changed a column name, which upon refresh in Disco Admin, replaced Item1 with Item1A. When Workbook1 is opened, it prompts the user to enter a substitute for Item1...which is Item1A.
    Is there any programatic mechaninism to essentially perform an item "search and replace" in one or more workbooks?
    Or can someone provide a list of the Disco tables used to store workbook metadata?
    Thanks for your help,
    Cam

    Potentially a lot of work to manually do it and I suppose you could alter the EUL tables directly - carefully of course - but I just have to ask.
    One great reason for using database views - and pointing to those views from a folder - is that you control whether the view columns names change. And 9 times out of 10, you don't change the view columns names no matter what for this reason - or any tool accessing it.
    For example, NoetixViews - and probably Oracle BIS tables - to not change the column names even if spelling incorrectly, going away (replace with NULL values), etc. so you never have this problem.
    If they have to, they'll add another column but leave the original one there as well.
    So, is this not something you can do?
    Alternatively if someone in IT wants to change a view's column name - and is high enough up in the company to insist - they maybe you should consider a set of reporting views that just call thier views except keep aliases to the original column name and hence - though kinda' dumb - will make sure all query tools accessing that reporting view will not have a problem.
    Just my 3 cents ...
    Russ

  • Item Substitution Report

    Hi All,
             I want to develop a report on Item Substitution, i.e., substitute items available for a particular item..
    Which tables to fetch the data from.............?
    Plz advice.

    Moderator message - Please ask a specific question - post locked
    Rob

  • Static html file

    How do I access an uploaded static html file thru a url? What directory is this file uploaded to?

    You'll need to explain what you're trying to achieve.
    You can incorporate static HTML in various ways, for example copy and paste (minus header and body tags etc.) into an HTML region, or retrieve from the database (stored as a VARCHAR or CLOB) and htp.p to the browser.
    Or there is a very good 'upload/download' how-to if you want to find out about this aspect also.
    John.

  • EC-CS transaction CXCL "item substitution/calculation of retained earnings"

    in EC-CS transaction CXCL "item substitution/calculation of retained earnings" is not updating group currency on a consolidation unit that was changed from flexible upload to rollup. It does update transaction and local currencies but not group. Does anyone have any ideas as to what could cause this.

    We changed the unit from flexible upload to EC-CS to upload to FI. At this time we changed the unit masted data from flixible upload to rollup and added it to the rollup sets for GL25. We entered year to date numbers in FI for year to date november manually then did the first upload to FI and rollup to EC-CS for month of december which picks up current month. Prior to doing this when we uploaded to EC-CS and the ran CXCL "item substitution/calculation of retained earnings" it would update the two accounts "Retained Earnings Current Year" and "Net Income Current Year" which are set up for this purpose with both local and group currency. After the changes it began updating only the local currency.
    If I do the rollup then run CXCL and run CX34 the CX34 will show a balance in the two accounts for local currency equal to the current month earnings in local currency but the group currency is zero 00.00

  • How to cache a content item like a Static HTML Page from UCM to Coherence/C

    Hi All,
    How to cache a content item like a Static HTML Page from UCM to Coherence/Coherence Web?
    Thanks

    Hi,
    Could you explain your use case in more detail?
    It does not look like proper use of coherence to cache static content - it more suited for dynamic content like user session etc.
    Adam

  • How to add static resource file into the NetBean project

    I have several static data files(such as icons, images and etc.) need to be loaded by the program. How to add them into the NetBean project?
    Thanks

    Try a NetBeans forum. This is the Java Compiler forum.

  • CVI can not link VS2010 static lib files

    A completely new static lib file created in VS2010 Express hat the following content:
    StaticLib.h:
    void __stdcall call( void );
    StaticLib.c
    void __stdcall call( void ){ }
    VS2010 compiles this as a c file. This is already ensured by the ending ".c", but to be safe I use the compiler option /TC .
    All other options are at their default value. I compile using "Release | Win32".
    The created lib file is copied to an new CVI folder, along with the header.
    Both files are added to the project.
    In addition a main.c is created with the following content:
    void main ( void ){ call(); }
    The compile attempt is aborted with the following error message:
     Bad header encountered while reading external module: 'Release\StaticLib.obj'.
     Aborted load of member "Release\StaticLib.obj" from library "c:\C90\LibImportTest\Release\LibImportTest.lib".
    Is there a way to reuse static lib files compiled in VS2010 with CVI?
    If so please show me a minimal example.
    ( please do not post any suggestions involving dlls )
    Solved!
    Go to Solution.
    Attachments:
    UPLOAD.zip ‏2 KB

    I tried this with CVI 2012. I think its the VC 2010 Project Setting: Configuration Properties >> General >> Whole Program Optimization = Use Link Time Code Generation that causes the problem with CVI. Change this setting to "No Whole Program Optimization" and CVI 2012 is able to link the VC 2010 lib file for me. Hope this is the same issue for you. If not, try changing other VC optimization or language settings in the Project Properties dialog..

Maybe you are looking for

  • Is there a way to gift an app with the billing method as store credit

    I want to gift 4 apps to my friend but i dont have a credit/debit card becuase im a kid. Is there a way to gift the apps when the billing method is store credit like a itunes giftcard?

  • Moving hard drive to another computer?

    I currently have an older G5 tower. It appears the power supply has finally given out after years of extensive use. I'm thinking this may be a good time for me to upgrade and purchase a Mac Pro. However, I'm not quite sure how to move the data from m

  • Regarding content conversion

    HI,    I have a fixed length text file with data as 5000.00         399   060622       0010000110000000Job 50 2000.00         383   06062257688  0010000110060622Job 11 3000.00         383   0606227876   0010000110060622Job 30 I want to convert into x

  • I'm just wondering : when a Component Tree is contitute for the first time

    When I'm looking at the JSF life cycle figure I can see the "Reconstitute Componente Tree" but I don't see something like "Constitute Componente Tree". When is it supposed to happen ? Thanks for your answer.

  • Want the best quality imovie/idvd project

    Hi all Just imported a video from my Sony digital8 cam using imovie. I'm having a little troubele deciding from idvd or imovie, which is the right direction? Can someone share a good home video back up system? I'm trying to import my home videos from