All data is fine still facing invalid name error

sforce.console.openSubtab( resultInner2.id, 'www.salesforce.com', true, 'Close Case', subTabId,openSuccess, 'mysubtab');

openSubTab: Invalid Name: mysubtab

I have tried all the option like changing name, without this argument, empty string but still issue is same

  • What is the API you are using? – highfive Sep 19 '14 at 4:06
  • Beside below libraries I am using simple javascript which will be called when user will press special key(Defined in shortcut). <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <apex:includeScript value="/support/console/26.0/integration.js"/> <script src="/soap/ajax/26.0/connection.js" type="text/javascript"></script> </head> – gangparia Sep 19 '14 at 6:08
  • Can you try without the last two arguments? – highfive Sep 19 '14 at 6:42
  • I already tried but it shows same error message : 'openSubTab: Invalid Name: undefined'. If I remove subtabId it shows "duplicate tabs are not allowed" – gangparia Sep 19 '14 at 8:27
  • I have solved this issue.. Thanks for the support. Actullay I have added sforce.console.addEventListener('CloseTab2', closeTabHandler2); on component and inline visualforce page, So same tab was opening twice. – gangparia Sep 19 '14 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.