How to know when a topic does not exist

I have an app that is created with Visual Studio 6, which
does not have native support for HTML help (upgrading VS is
currently not an option). I have an HTML help that I would like to
call from my app. I need to call the html help with a context id
number. Since there is no html help calls in this version of VS, I
am calling hh.exe directly using ShellExecute ("hh.exe -mapid
<id> <chm file>"). I dont know of any other way. The
problem I am having is that there are times when my app and the
help may be out of sync. It is possible that my app will call the
help with an id that does not exist in the help. In WinHelp, the
user would get a message indicating that the topic did not exist.
Unfortunately, hh.exe does not return any messages. This makes the
users think something is wrong with the app.
Am I doing this the right way? Is there a way to find out if
a topic exists and notify the user if it does not?
Thanks in advance for you help.
LA

Hi LAYALA,
We also develop with Visual Studio 6. You can override the
WinHelp calls and redirect to HtmlHelp. Our app was originally
developed using WinHelp. We made the change to HTMLHelp several
years back and my developer claims it only took one line of code,
though he's never told me what that line is. If nobody enters into
this forum, I'll ask him tomorrow. I'm on Paciifc time so it will
be quite a few hours from now.
John

Similar Messages

  • How to know when I'm doing a createInsert?

    how to know when I'm doing a createInsert, this to hide a button when you run this action, I am using a task flow.
    my version of jdeveloper is 12c

    hi,
      So you are using the createInsert as a method call in task flow. That is your form/table will be come new rows and you want to disable some button.
    Your task flow might be as below
          CreateInsert---->Page.
    To do so
    1.) Take properties of your method call and bind the Method property to a method in a bean (bean registered in the task flow with scope view or any higher scope)
    2) Call the create insert operation programmatically in that method.
    3) And in that method after the createinsert ,set a boolean variable in pageFlowScope.
    4)Put this variable in the disable property or visible propery of the button you wabt to hide/diable.
    eg:
        public void doCreateInserOperation(){
            try {
               // Programatically invoke CreateInsert
                DCBindingContainer bindings = (DCBindingContainer)getBindingContainer();
                bindings.getOperationBinding("CreateInsert").execute();
            //Set a variable in page Flow Scope 
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("disableButton", true)
            } catch (Exception e) {
                e.printStackTrace();
        public BindingContainer getBindingContainer() {
            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext, "#{bindings}", Object.class);
            return (BindingContainer)valueExp.getValue(elContext);
    you can access this variable in EL expression as #{pageFlowScope.disableButton}. So when your page render it will be in CreateInsert mode and the button will be disabled/hidden.
    I hope this will help you.
    With regards,
    Gijith.

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Please help: Two-Sided One-to-One Mapping issues warning when owned instance does not exist

    Hello,
    Is it expected behavior? I have two classes A and B, B references A and its
    foreign key column is its PK
    A owns B (marked as inverse-owner in JDO metadata) when I access A.getB() if
    B does not exist I get a warning.
    Is it to be expected? Does two sided relation always require presence of
    both sides of the relation and does nto fit my need?
    Is there any way to have bi-directional association in my case with owned
    record being optional?
    Should I use two simple one sided one-to-one or may be simple one sided from
    child to owner and One-to-One with Inverse Columns from owner to child
    What are disadvantages of using two one sided (simple and inverse) vs.
    two-sided?
    Thank you
    Alex

    Here is what I had to do to solve this issue:
    Basically I had to add the MSSQL TCP/IP port as an end-point in Azure. After I did that, then I was able to create the data-source. However, I was only able to authenticate with a SQL account, as any domain account would return me an error saying that the
    domain isn't trusted.
    What puzzles me here is how come the Data Source Manager would inform me that an account username/password was invalid, but it would fail/timeout if I provided valid credentials (!?!?!!?)

  • Conflicts in DOE when the object does not exist in CDS.

    Hi all.
    SCENARIO:
    I have implemented a SWCV with only a DO ( backend triggered). It has a Node structure with only one child structure.
    My DO has three function:
    - GETLIST:  return a table with objects from R3  identified by WCRN.
    - GETDETAIL: For each register from getlist, return a list of child registers with state : IMP or SEÑ.
                        This state in R3 may be IMP, SEÑ o NORM (but in devices, only I want them in state IMP o SEÑ)
    - MODIFY: modify the state for a child register.
    EXAMPLE:
    For example, I create a parent object in R3 with 3 children registers with state IMP. This parent register with his three children registers are upload to CDS.  When I syncronize, I obtain them in my device.
    PROBLEM:
    The problem starts when I modify the state to NORM of any child register in R3.  Then, in DOE, this child register is deleted in CDS becouse as I have said before, the function GETDETAIL only returns registers in state IMPS o SEÑ. Automatically the queue
    of my device is update too. Before syncronize my device, I change the state to SEÑ of the tree children registers in PDA. Then when I syncronize, the process tries to update then in CDS but one of this child register does not exist in DOE so I obtain the error text below in DOE:
    Mesage: "Cannot update/delete object that does not exist in the CDS; node 'ZMOB_DESC_ETIQUETA' "
    Service Name:  KEYMAP_SERVICE_BV  And in my Device, the child which generated the conflict does not exist (this is oK) but I continue having the others two children registers with the same state that I modified before syncronizing (SEÑ) while in R3 those two states are IMP.
    I have tested to modify the 3 posibilities of conflict detection scheme of the DO but the problem continues.
    I would like to know if there is any posibility or configuration to obtain the next scenario:  when this conflict will occurs, GETDETAIL will run and depending on which source will have preference:
    1- DEVICE PREFERENCE - the state from children registers in R3 will be updated to SEÑ.
    2 - R3 PREFERENCE - the state from my children registers in the device will be the same as in R3 (IMP).
    but never never never  never will happens like now ( differente state in R3 and PDA after syncronizing)
    Best regards
    Edited by: Maria Elena Fernandez on Feb 10, 2010 12:52 PM

    Hi again Oliver.
    Are you sure that ROW-LEVEL Conflict handling should detect the row with conflict and download the others two child register trought GETDAIL?
    I've just checked it again but it continues without working. After the conflict, none child is downloaded to my device.
    According to your two opcions:
    1- Imposible to avoid that.  It's a customer's requirement that they can modify states by R3 and Devices.
    2- Imposible too becouse we've already implemented the swcv in a production scenario. The application is already running and to change the model suppose a long time.
    I explain you the scenario again with an graphical example:
    INIITIAL STATE:  ( Device)
    parent structure :  ID1(key), date,                                 
    child structure:        ID1, 1, IMP (status)                                 
                                            ID1, 2, IMP (status)                                
                                            ID1, 3, IMP (status)                                 
    INITIAL STATE ( R3).
    ID1(key), date, ....
      -  ID1, 1, IMP(status)
      -  ID1, 2, IMP(status)
      -  ID1, 3, IMP (status)
    After this, I modified in R3->   ID1, 1, IMP  to  ID1, 1, NOR
    Then, GETDETAIL starts and deletes that register in DOE.
    Now I change the 3 children register in Device
      ID1, 1, IMP     -->  ID1, 1, SEÑ                                       
      ID1, 2, IMP     -->  ID1, 2, SEÑ                                   
      ID1, 3, IMP     -->   ID1, 3, SEÑ          
    After I syncronice,  FINAL STATE ( Device)
    parent structure :  ID1(key), date, ....                             
         child strucuture:                                                                               
    - ID1, 2, SEÑ (status)                             
                                     - ID1, 3, SEÑ (status)            
    FINAL STATE ( R3)
       ID1(key), date, ....
            -  ID1, 1, NORM(status)
            -  ID1, 2, IMP(status)
            -  ID1, 3, IMP (status)
    And that is the problem, different states between R3 and device.   I should need that the state in device for the others two children will be also IMP if R3 has preference or the two children will be SEÑ in R3 if the device has preference. But Now neither children in R3 nor children in Device are updated . Only the first which generate the conflict is deleted from device ( normal because it was still in the queue from the device before syncronice.
    Best regards.
    Edited by: Maria Elena Fernandez on Feb 11, 2010 8:32 AM
    Edited by: Maria Elena Fernandez on Feb 11, 2010 8:43 AM

  • How to resolve ORA-06564 "Directory" does not exist

    Error when attempting to select from external table:
    SQL> select * from acore.owb_nielsen_dma_load;
    select * from acore.owb_nielsen_dma_load
    ERROR at line 1:
    ORA-06564: object XTRAND_ACORE_LOC_FF_MODULE_LOC does not exist
    Directory does exist:
    SQL> select * from dba_directories where DIRECTORY_NAME like 'XTRAND_ACORE_LOC_FF_M%';
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS XTRAND_ACORE_LOC_FF_MODULE_LOC
    /datafiles/aim/aimp/owb
    Output from Runtime: owbrtrepos.log.15
    12:17:35 [FB1F7] AuditId=298: Processing unit deployment request
    12:17:41 [3A8602] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    12:17:52 [3A8602] script_run_begin auditId=300 operation=9001
    12:17:58 [3A8602] script_run_end auditId=301 scriptRunStatus=15002
    12:18:05 [3A8602] deploy_unit_done auditId=298
    12:18:10 [FB1F7] AuditId=297: Request completed
    The log file named in the configure is not being created.
    Note: The Read/Write grants were issued by SYS.
    grant read on directory XTRAND_ACORE_LOC_FF_MODULE_LOC to ACORE;
    grant write on directory XTRAND_ACORE_LOC_FF_MODULE_LOC to ACORE;
    In advance thanks for you help.
    Carol-Ann

    check the information when you have registerd the location.
    After register the location, again you have to deploy the respective connector

  • Design Studio - Display a dummy image when searched photo does not exist

    hello,
    I would like to display an employee photo, which should be searched on the server folder with URL.
    Each photo name in my folder is : "employeeId.png".
    But some employees do not have a photo, and in this case I try to display a dummy photo, which I have in the same folder with employee id 00000000.
    My variables are :
    - URLlink variable is global variable type URL, which gives a path to my folder with employees photos
    - empnb variable is filled with employee id through getSelectedMember on cross table
    - filename variable to search a photo on the server
    - filename0 variable for those employees for which photo does not existe
    I tried to test the existence of an employee photo with getHeigh() method or getImage() method, to check if a photo filename set in Image1 is a real
    one. Cause if a photo does not exist, the Design studio put by default a small black cube inside Image.
    Unfortunatelly these tests are not working .
    My script:
    var filename =  URLlink + empnb + ".png";    // existing employee photo
    var filename0 = URLlink + "00000000" + ".png";  // dummy profile photo
    IMAGE_1.setImage(filename); //Try to put a photo found on the server 
    var height = IMAGE_1.getHeight(); 
    if (height == -1)
    { IMAGE_1.setImage(filename0);   }
    else   {IMAGE_1.setImage(filename);}
    Does anyone have other idea how to test if a photo exist or not in my folder.
    Many thanks!
    Bea

    I do not think it is possible today (at least not via checking of the image size). Such function would require
    * code extension in image component -> boolean IMAGE.exists()
    or
    * could be made by custom image implementation via design studio SDK. This custom image would send a request via Ajax and check response status. in case not existing some dummy images would be placed.
    for both options there are no plans as of today.
    the only option I see today is to generate in the folder "dummy" images for all employes who do not have any real image.

  • How to redirect a page that does not exist

    Hello everyone. Thanks for the feedback so far.
    I am editing an old site and there are going to be some pages that do not exist anymore.
    Is there a way to have an automatic redirect so that if any user types in ANY page that does not exist sitewide, they can be directed to another main redirection page which displays a message and then to the main page again?
    The current site is littered with empty pages with a redirect link on each at the moment which does not look good and it's awful to maintain as these non-meaningful filenames the original developer has used are no help at all.
    Thank you in advance for all feedback
    Terry

    What is the web address of the old site?
    If it's on a Linux server then you can use .htaccess rewrites to automate much of the redirection heavy lifting
    http://kb.mediatemple.net/questions/85/Using+.htaccess+rewrite+rules#gs
    https://my.bluehost.com/cgi/help/htaccess_redirect

  • How to handle missing data when a limit value does not exist

    Hi guys
    I am quite new to all this OLAP stuff and I don't know how to detect the following situation:
    What happens when CREDITT.MYSERIES2 does not exist? the query then returns V1 and V2 populated with the data from CREDIT.MYSERIES1 and CREDIT.MYSERIES3 respectively (and V3 being all NULLs). I have no way of knowing that the limit has not worked on Series2.
    Is there any way to detect this? (perhaps assigning V2 to be all NULLs?)
    Thanks in advance
    Adam
    SELECT
         TRUNC(IND-TO_DATE('01011900','ddmmyyyy')+2),V1,V2,V3
         FROM (                     
              SELECT *                     
              FROM TABLE(                          
                   OLAP_TABLE( 'OLAPFAME.MAG_CRD DURATION SESSION',
                                  'DIMENSION IND AS DATE FROM DAY
                                  MEASURE V1 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 1))
                                  MEASURE V2 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 2))
                                  MEASURE V3 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 3))
                                  ROW2CELL R2C1' ))                          
              MODEL                               
                   DIMENSION BY(IND)                               
                   MEASURES(V1,V2,V3,R2C1)                               
                   RULES UPDATE SEQUENTIAL ORDER())
         WHERE OLAP_CONDITION( R2C1,
                                  'LIMIT SERIES TO ''CREDIT.MYSERIES1'',
                                                 ''CREDITT.MYSERIES2'',
                                                 ''CREDIT.MYSERIES3'';
                                  LMT DAY TO ''21DEC2009'' TO ''31DEC2009'';
                                  LMT DAY REMOVE DAYOF(DAY) EQ 7 OR DAYOF(DAY) EQ 1',
                                  1 )=1

    I am not sure what your issue is entirely because what you posted is not your working code.
    WHERE OLAP_CONDITION( R2C1,
    'LIMIT SERIES TO ''CREDIT.MYSERIES1'',
    ''CREDITT.MYSERIES2'',    <-- this seems incorrect
    ''CREDIT.MYSERIES3'';    <-- semicolon indicates end of statement
    LMT DAY TO ''21DEC2009'' TO ''31DEC2009'';  <-- what is this?
    LMT DAY REMOVE DAYOF(DAY) EQ 7 OR DAYOF(DAY) EQ 1', <-- what is this?
    1 )=1Could you please repost the correct code?

  • Question about SAP note instruction(subroutine does not exist)

    Hello Experts,
    I was just given a task wherein I need to manually apply a SAP note but in the instruction it says that I need
    to edit a subroutine that when I checked does not exist in the function group. Now, do I need to create that subroutine
    or am I missing something?
    Hope you cna help me guys. Thank you and take care!

    Hi,
    You should not have created that subroutine on your own, it seems like its an Formula Routine created from tcode VOFM -> Formulas -> Condition Value. so create a routine with number 49(access key required) and add the code to it.
    But as this is a Enhancement implementation, i recommend you to implement this Notes by importing the support package for the component SAP_APPL. Details about support package level in which the note corrections are delivered are given in that notes. so better take help of your basis guy.
    Regards
    Karthik D

  • HT201401 i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    hello, the addons manager is exactly the right place to look for it. please try disabling the addons that are listed there one-by-one (a restart of the browser might be necessary after each step). maybe one of them is bundling this kind of adware.
    [[Disable or remove Add-ons]]

  • How to access my hard drive when the system does not work

    how to access my hard drive when the system does not work

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • HT4009 My 6 year old was playing on a app we have used for ages, then i received numerous emails sating about $600 of in app purchases had been made. i don't understand how this happened as my child does not know my apple i.d password.

    My 6 year old was playing on an app we have used for ages then last night i recieved numerous emails stating about $600 of in app purchases had been made! i dont know how this happened as my child does not know my apple i.d. password!

    You can try contacting iTunes support and see if they give you a refund or credit for some/all of it : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchaes, Billing & Redemption.
    To stop it happening again you can turn off in-app purchases on your iPad via Settings > General > Restrictions > In-App Purchases, and also in Restrictions change Require Password to 'Immediately' - the default is 15 minutes during which it doesn't need to be re-entered.

  • When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    first, you just asked me to use MS file Explorer to see what the properties were.,..and to ask what happened. Yes - that's on my hard drive. The problem I have is opening word files in a DB that is web enabled.....I've used Firefox browser for that, and everything else , for years...... When I look at the Tools, and options on FireFox., as your support page noted.....NOTHING is listed in the Applications tab....hence my note asking for help. The file I need to open is a Word file out on a web enabled DB. It's not on my hard drive - I have to problems opening docs there - but for that, I don't use Firefox

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

Maybe you are looking for

  • Asset Retirement

    Hi Gurus I am Getting A Problem While POsting Asset Retirement, As it Is giving the Error While GiVing The Fixed Asset Gl As Follwing Rules for posting key 50 and acct 3520500 set incorrectly for "XAABG" field Message no. F5272 Diagnosis One of the r

  • How can you copy information from Safari into Pages

    Is there a way to easily copy data, such as financial tables from Safari into Pages and maintain the integrity of the table and the data within it?  When I copy and paste it comes out all misaligned and into multiple pages.  The same thing happens if

  • Double installation of CS6 programs

    I recently installed the Design and Web Premium Suite (academic) on a computer running Windows 7 64 bit. I'm pretty sure I selected standard installation. I just noticed that I appear to have dual instances of Bridge, Illustrator, and Photoshop, one

  • Currency conversion -company code

    Dear experts, Can any one explain how currency conversion will be done for company code. i.e. Euro conversion for European countries. Regards babu.

  • Problem with Software update 1.4

    When I start iTunes with my iPod Mini plugged in, it says a software update is available. So I click OK to get it, download and install it - and reboot. All seems fine - i.e. no error messages - but when I start up iTunes again, it still says the upd