Javascript Alerts in Content Viewer

Hi there,
I am trying to bugtest an Edge Animate html file so have added an alert to it to listen for tap events. It works great in the browser. But when previewed in Content Viewer I get a big fat zero. Can anyone tell me if alerts are supported in the CV? Or if not what I can do?
Thanks
R

Hi Bharat
refer to this for the Log file
Physical path of log files in EP server
Portal Runtime Error - Where is the log file?
For javscript problem refer  to
Javascript error when loading Portal Content
Portal Content Permissions
Getting javascript error while logging in EP
Thanx
Pankaj

Similar Messages

  • What are the reasons for following Javascript error in Report Viewer

    Post Author: dhuka
    CA Forum: Crystal Reports
    Hello Everybody!
    I am using Crystal Reports 10 in my web application. But unfortunately I am surrounded with strange problem related to it because of which I have been unable to deploy is on client-side. In my application the error given below is displayed as javascript error in Report Viewer and report is not displayed. But more frustrating part is that I am getting the same error due to different problem with reporting and I am stuck with it as I am unable to figure out what's causing the error now. Earlier this error appeared due to problem with parameter passing to stored procedure which I resolved it and error vanished but once again it has shown up. Moreover this error now appears less frequently and randomly therefore it is even difficult to trace the cause.
    Problem with this Web page might prevent it from being displayed properly or functioning properly. In the future, you can display this message by double-clicking the warning icon displayed in the status bar.
    Line: 40Char: 12Error: Expected ')'Code: 0URL: http://myServer/myApp/myForms/myReports/ReportViewer.aspx
    So can anybody tell me what factors might be causing this errors as the error text is very vague in nature and gives no idea about the actual error.
    Guys, I hope for your kind co-operation.
    Regards,

    Post Author: dhuka
    CA Forum: Crystal Reports
    Thanks for you reply Krishna.
    But this syntax error is the one that is creating problem for me as I cannot trace it. The form ReportViewer.aspx contains only a report viewer object which remains un-binded to any ReportDocument even at runtime.
    At code behind ReportViewer.aspx I have code below that associates SQL Stored Procedure Parameter and Report Filter along with report name. Once all above is associated with ReportDocument, I export ReportDocument to PDF file format and display the report. Here I dont' even bind ReportDocument with my ReportViewer. Moreover, as I mentioned previously this error is encountered randomly (with no reasonable explanation so far) on client PC (while browsing through application).
    I hope below code give you good idea of the way I am implementing my reporting.
    Looking forward to you solution. Please note that I am only passing the ReportFileName and Parameter and Filter Criteria to this form while dataTable by itself using the connection information.
    <<<<<<<<<<<<<<<<<CODE BEHIND of REPORTVIEWER.ASPX>>>>>>>>>>>
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim strKeys() As String
    Dim strReportFilter As String
    Dim strReportName As String
    Dim strError As structError
    Try
    ReDim strKeys(0)
    If strReportName = "" Then
    strReportName = Context.Session("ReportName").ToString()
    If Not Session("ReportParameters") = Nothing Then
    Dim char_Delimiter() As Char = ";".ToCharArray()
    strKeys = Session("ReportParameters").ToString().Split(char_Delimiter)
    End If
    If Not Session("ReportFilter") = Nothing Then
    strReportFilter = Session("ReportFilter").ToString()
    End If
    Else
    Session("DataTable") = Nothing
    End If
    If Not ViewParameterReport(strReportName, strKeys, strReportFilter, strError) Then
    ASPNET_DisplayErrorMessageBox(strError.strMsg, Me)
    Exit Sub
    End If
    Catch ex As Exception
    strError.strMsg = Err.Description
    ASPNET_DisplayErrorMessageBox(strError.strMsg, Me)
    Finally
    End Try
    End Sub
    Private Function ViewParameterReport(ByVal str_ReportName As String, ByVal str_ReportParameters() As String, ByVal strReportFilter As String, ByRef strError As structError) As Boolean
    Dim str_ReportPath As String = CStr(ConfigurationSettings.AppSettings.Get("ReportPath"))
    Dim crLogInfo As TableLogOnInfo
    Dim crConnectionInfo As ConnectionInfo
    Try
    str_ReportPath = CStr(ConfigurationSettings.AppSettings.Get("ReportPath"))
    o_Rpt = New CrystalDecisions.CrystalReports.Engine.ReportDocument
    o_Rpt.Load(str_ReportPath & "\rpts\" & str_ReportName)
    If Context.Session("DataTable") = "" Then
    crLogInfo = New TableLogOnInfo()
    crConnectionInfo = New ConnectionInfo()
    crLogInfo = o_Rpt.Database.Tables(0).LogOnInfo
    crConnectionInfo = o_Rpt.Database.Tables(0).LogOnInfo.ConnectionInfo
    clsDbCnn.SetDBProperties()
    crConnectionInfo.ServerName = clsDbCnn.Server
    crConnectionInfo.DatabaseName = clsDbCnn.Database
    crConnectionInfo.UserID = clsDbCnn.UserID
    crConnectionInfo.Password = clsDbCnn.Password
    crLogInfo.ConnectionInfo = crConnectionInfo
    o_Rpt.Database.Tables(0).ApplyLogOnInfo(crLogInfo)
    Else
    ds_MISReports = New DataSet()
    ds_MISReports = CType(Session("DataTable"), DataSet)
    o_Rpt.SetDataSource(ds_MISReports)
    End If
    If Not IsPostBack Then
    Dim param_Fields As CrystalDecisions.Shared.ParameterFields = New ParameterFields()
    Dim iCount As Integer
    If str_ReportParameters.GetUpperBound(0) <> 0 Then
    For iCount = 0 To str_ReportParameters.Length - 1 Step 2
    o_Rpt.SetParameterValue(CStr(str_ReportParameters(iCount).ToString()), CStr(str_ReportParameters(iCount + 1).ToString()))
    Next
    o_Rpt.RecordSelectionFormula = strReportFilter
    End If
    End If
    'crViewer.DisplayGroupTree = False
    'crViewer.ReportSource = o_Rpt
    SetDBLogonForReport(crConnectionInfo, o_Rpt)
    Dim TargetFileName As String
    Dim fs As System.IO.FileStream
    Dim FileSize As Long
    Dim GenDS As DataSet
    'Dim oRD As New ReportDocument()
    Dim crReportObject As CrystalDecisions.CrystalReports.Engine.ReportObject()
    Dim oExO As ExportOptions
    Dim oExDo As New DiskFileDestinationOptions()
    'Build Target Filename
    TargetFileName = str_ReportPath & "\Pdfs\" & Session.SessionID & ".pdf"
    'Export to PDF
    oExDo.DiskFileName = TargetFileName
    oExO = o_Rpt.ExportOptions
    oExO.ExportDestinationType = ExportDestinationType.DiskFile
    oExO.ExportFormatType = ExportFormatType.PortableDocFormat
    oExO.DestinationOptions = oExDo
    o_Rpt.Export()
    o_Rpt.Close()
    'Send the file to the user that made the request
    Response.Clear()
    Response.Buffer = True
    Response.AddHeader("Content-Type", "application/pdf")
    Response.AddHeader("Content-Disposition", "attachment;filename=MyReport.pdf;")
    fs = New System.IO.FileStream(TargetFileName, IO.FileMode.Open)
    FileSize = fs.Length
    Dim bBuffer(CInt(FileSize)) As Byte
    fs.Read(bBuffer, 0, CInt(FileSize))
    fs.Close()
    Response.BinaryWrite(bBuffer)
    Response.Flush()
    Response.Close()
    o_Rpt = Nothing
    Return True
    Catch ex As Exception
    strError.strMsg = Err.Description
    Return False
    Finally
    crConnectionInfo = Nothing
    crLogInfo = Nothing
    End Try
    End Function
    Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, _
    ByVal myReportDocument As ReportDocument)
    Dim myTables As Tables = myReportDocument.Database.Tables
    Dim count As Integer
    For count = 0 To myTables.Count - 1
    Dim myTableLogonInfo As TableLogOnInfo = myTables(count).LogOnInfo
    myTableLogonInfo.ConnectionInfo = myConnectionInfo
    myTables(count).ApplyLogOnInfo(myTableLogonInfo)
    myTables(count).Location = myConnectionInfo.DatabaseName & ".dbo." & myTables(count).Location.Substring(myTables(count).Location.LastIndexOf(".") + 1)
    myTables(count).LogOnInfo.ConnectionInfo.ServerName = myConnectionInfo.ServerName()
    Next
    End Sub

  • Content Viewer and interactive charts

    Hello
    I have created an interactive chart using HTML5 and Javascript and imported in InDesign using the Overay--> Webcontent.
    The animation and the interaction is working well on the iPad2, but when I click on the screen to interact with the chart the menu of the Content Viewer is appearing and disappearing. I find this very disturbing.
    Do you know how it is possible to avoid this? It would be nice if the menu would only appear when I click somewhere on the page but not on the interactive chart/web overlay.
    Unfortunately on Android (Galaxy 10') the animation and interaction are visible but very very slow....
    Thanks!!

    Try trashing the prefs. See Replace Your Preferences

  • Content Viewer: only iPad shows html5 content

    Hello! I embedded an html5 audio player into InDesign Cs6. It works great on the Content Viewer on iPad, but not on the Desktop Content viewer. Is it always like that?

    Thank you so much, Neil!
    I'm trying to build an app with scores and music in InDesign Cs6. I want to publish my app for iPad and Samsung Galaxy,
    so for IOS and Android. Because I want the control buttons to look the same in both mobile operating systems, I tried to build the controls on my own in native html5 audio, but I suppose, I'm not capable of doing that.
    I am trying to find controls (native html5 audio) for stopAudio (=reset without playing), a loop button (means: not only looping true/false) and the possibility to change the value of the progress bar. Is that possible at all in native html5?
    Best regards, Peter
    (please excuse if my english is misleading!)
    I tried this until now (and it works), but there is neither a stopButton, a loopButton nor a progressBar (with the possibility the change the value)in the code:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>HTML5 Audio</title>
    <script type="text/javascript">
                        function playAudio()
                                  document.getElementById ("player").play();
                                  document.getElementById ("pausebutton").style.display = "";
                                  document.getElementById ("playbutton").style.display = "none";
                        function pauseAudio()
                                  document.getElementById ("player").pause();
                                  document.getElementById ("playbutton").style.display = "";
                                  document.getElementById ("pausebutton").style.display = "none";
                        function progressBar ()
                                  timeCurrent = document.getElementById("player").currentTime;
                                  timeTotal = document.getElementById("player").duration;
                                  percent = timeCurrent / timeTotal;
                                  progressBarWidth = percent * 128;
                                  document.getElementById("bar").style.width =  progressBarWidth + "px";
    </script>
    </head>
    <body>
    <audio id="player" onTimeUpdate="progressBar()">
              <source src="audio01.mp3" type="audio/mp3"></source>
    </audio>
    <img src="play.png" onClick="playAudio()" id="playbutton"/>
    <img src="pause.png" onClick="pauseAudio()" id="pausebutton" style="display: none"/>
    <div style="width: 128px; height: 7px; background-color: blue;" id="bar"></div>
    </body>
    </html>

  • Adobe Content Viewer issue

    I'm using a web overlay linked to an html resource with javascript actions, but I can't figure out why the javascript does not display properly using Adobe Content Viewer version 2.9 or 3.0 on a 4th generation iPad? The very same code and file displays perfectly when viewed on a 1st gen iPad with same version of Adobe Content Viewer so it doesn't appear the code is the issue. It appears to be an issue with the Adobe Content viewer on the iPad 4 with retina display. I need to test on this device, but have hit a wall. If need be, are there other ways to test a DPS app on iPad 4 without using Adobe Content Viewer? Thanks for your help.

    Sorry, but I don't have an iPhone to test. I tried using Safari Web Inspector on my Mac, but I'm not able to select mobile safari in the user agent to simulate. The html page is not published on a server in order to run it through a browser outside of my Mac. The code is validated and tests fine on my Mac and on Adobe Content Viewer on iPad first generation. How can I resolve? Thanks.

  • Weboverlay Windows Content Viewer

    Hi all,
    We're using a weboverlay with quite complex HTML and Javascript in our folio. On iPad and Android it works perfectly, on the Windows tablet browser IE11 it also works completely. But in the Windows Content Viewer, it's messed up.
    So my question is: which browser is used in the Windows content viewer for weboverlays?
    Thanks in advance!!
    Nick

    It's a fully-supported, production ready, viewer. Definitely not beta
    Can you post a screenshot of the problem you're seeing?
    Neil

  • Adobe content viewer in ios7 hangup

    Hi.
    I got an strange situation, where Adobe content viewer on ios7 hangs up on certain page of my publication. The same folio works correctly on ios6 and ios5. Latest viewer versions accordingly.
    Folio is in pdf format, no interactive objects in that page.
    Is something wrong with latest ios and acv compatibility?

    Cross reference to Roche: this is why we need alerts, info boxes and
    warning signs. people are stuck and have no idea why, but the software does
    and tells nobody about it.
    —Johannes
    (mobil gesendet)

  • Private app distribution: dev version / testflight / adobe content viewer / b2b distribution

    Hi Adobe Community!
    I am finalizing an app for my company that is supposed to be distributed only among our distributors. Apple rejected my Enterprise inquiry since our distributors are not our employees. I wanted to sum up my distribution options now and ask you for feedback. I do not plan to use App Store.
    1. B2B distribution through apple
    I can distribute custom b2b app through Apple, but it is available only in few european countries and this does not cover our needs since we cannot supply to all distributors. Also the process looks very complicated and I'd like to not use it.
    2. Adobe Content Viewer distribution
    If I tell my customers to download Adobe Content Viewer and sign in with my Adobe ID, the newest version of folios will be automatically downloaded to their devices?
    Also on Adobe website it is stated that my folios should be automatically uploaded to Adobe servers - but they are not. From what I read on the forums I understood that it is only available to Creative Cloud subscribers, is it right? If I subscribe will I be able to use this way for as many users I want?
    3. Developer version
    Finally I know that I can distribute dev version. I will have to register devices UDIDs but they will expire (after what time?) and how many UDIDs can I register (I read in different places that I can have 50 or 100 testers).
    4. TestFlight
    What I undestood so far is that facilitates developeloper version distribution, but wouldn't I be able to use this tool to go around UDIDs expiration?
    Thank a lot!

    With DPS enterprise and Apple enterprise account, you can built and deploy enterprised signed app internally within your organisation. Create the app, deploy and host it internally, so anyone who has access to the link can download the app. Not sure if Apple terms allows your distributors from outside your organisation to access and download the app hosted internally within your organisation, check that with Apple.
    If Apple terms does not allow, then you can use DPS restricted distribution method to deploy the app on the Appstore, but allow someone access to the content only if they are authenticated via the app, called direct entitlement or restricted distribution. Go here for details: Using restricted distribution with Digital Publishing Suite
    Signing in to ACV does not automatically download the latest folio. Your folios are always uploaded on Adobe servers, you cannot host it somewhre else. Anyone can create, upload folios and see the folio in the Adobe Content Viewer. But publishing the folio to be available in an app requires DPS subscription.
    You can register upto 100 UDID's on Apple dev portal. I don't think the UDID's expires so long as your Apple Dev account is active but the certificates expires exactly one year from the day it was generated.

  • Adobe Content Viewer not installed on V28

    Today I updated both my CC and CS6 versions of InDesign, so I now have V28 of DPS tools, however there is no Content Viewer app available for my Mac (Running )SX 10.8.5).
    When I try to preview on Desktop via the Folio Builder panel, an error stating that the Adobe Content Viewer couldn't be found comes up.
    All the Adobe Support documents go through the process of finding the AdobeContentViewer.air file in the /Library/Application Support/Adobe/Installers/AdobeDigitalPublishingCS6/ContentViewer folder, but I only have three files in that folder:
    Adobe AIR Installer.app
    Install Adobe Content Viewer.app
    Install DPS App Builder.app
    So I can't double-click it to reinstall it.
    My Air is up to date, my Updates are all up to date, and I can't find how to unistall InDesign (I am a Creative Cloud subsriber).
    I used my Time Machine backup to go and get it from a back up, but it wouldn't install when I double-clicked the old version (I was getting desperate!)
    However I can preview the same Folio on my connected iPad running the latest version of the Adobe Content Viewer app
    After a live chat, then over two hours on hold for some UK technical support on my land line, and just over an hour on my mobile, plus a Skype call to the US 800 number to be informed of over an hour's wait there, and to discover UK support is only during office hours, and after nearly two hours it has passed 5.30pm, I had to give up on Adobe's official technical support, and resort to more searching on Adobe forums, but have found nothing for CC or CS6 that I haven't already tried, except unistalling and reinstalling InDesign. But I can't find how do that via Creative Cloud. At one point I had to tell one of the nice indian "technical support" staff not to put me back in the same loop as I'd been in twice before as I was close to tears. He sympathised but told me it wasn't his area of expertise - surprise surprise... Not a good day.
    Pleeeese, is anyone else having this problem, or has anyone else solved this problem?
    Thanks in anticipation

    Thanks Neil, that worked once I'd installed it directly into the Applications folder, not within a subfolder.
    So if anyone else has this issue, install the Desktop Viewer app for CC and it works for both CS6 and CC.
    NOTE, that you need to double-click the Install Adobe Content Viewer.app file, don't look for a file called Install Adobe Content Viewer.air as per the instructions, as they are out of date.
    Phew, I have finally got all my DPS functionality back, and have created a V27 app using V28.

  • Help! Slideshow Autoplay does not work on ipad content viewer.

    I created a dps app using Adobe Creative Cloud on a PC running Windows 8.  It has a multi-state object of text to fade in and out. It works properly on a windows tablet but not on my ipad.  I'm aware this question has been asked before and I tried all of the suggested fixes and none have worked for me. Are there anymore bug fixes.

    Darn, I was hoping you could read my mind, lol. The problem is I created an article in DPS that has 4 multi-state objects on one page. 3 of the multi-state objects (button-like icons that change color when you tap/swipe them) are set to tap to play, the 4th multi-state object, a slideshow with 7 states each containing text that's supposed fade in and out 1 by 1 on a loop, is set to Autoplay upon article opening. This all works great on the desktop preview and once its downloaded to Adobe Content Viewer on my Windows Tablet.  However, when I download it to the Adobe Content View on my iPad and try to run the same app the 3 tap to play icon buttons work fine but the multi-state text Slideshow will not autoplay. It will only show the first state (which is a text box). I'm using Adobe Creative Cloud Indesign to create the article on a pc running Windows 8. I recently ran updates on my adobe software. Any insight???

  • Problem with buttons in Content Viewer iPad app

    Hi,
    I'm having a problem with my navigation once my app is viewed on the iPad. All pages in all of my articles are using the same master page for a menu button, and they all work when I view the app through the Content Viewer on my desktop. Once I log in to the Content Viewer on my iPad, however, the menu button on the first page of every article doesn't work. I did a test of swapping the first page with the second page in one of the articles, and the original page's menu button then worked while the second page's (now located at the beginning) wasn't being read. Other buttons on the first page work (which are also from the master page), it's just the menu button that makes my table of contents box appear. I have eleven articles in my folio and it's happening on the first page of every single one. Not too sure what's going on here, any help is appreciated.
    Thanks.

    I also figured out after playing around with it a bit more that this only happens when "Horizontal swipe only" is checked in the properties.

  • I am trying to open a website that is using Microsoft content viewer, and the page does not show. Any ideas on how to view this site using firefox. It works on IE.

    I am participating in an online class whose website uses Microsoft Content Viewer to view the class content. The browser opens a new page, but nothing is there. At the top of the tab it says Microsoft Content Viewer, and nothing else. Can anyone tell me how to view my course using Firefox? I would prefer not to use IE, but it works there.

    When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
    For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
    You can read about PDF/A files in the Help.

  • How many iPads can use one content viewer login?

    Hi all,
    We have a client who is wanting an app built in the next few months but needs a smaller version up and running in the next few weeks to get them out of a tight spot.
    I've suggested that we give them an Adobe ID seperate to ours and load the interim app up there for reps use while we keep building the final one seperately.
    My question is, how many iPad's can use that login and download the app to the content viewer and use it like that. They will need to use it on about 40 iPads...
    (I hope my question makes sense)
    Cheers
    G.

    Unfortunately the only time an Adobe ID belongs to the company instead of the individual is when the company signs on as a DPS customer and creates the ID under their master admin account in the DPS admin portal. All other uses of Adobe ID belong to an individual and not a company. In short, Adobe tech support isn't going to be able to help a company "reclaim" an Adobe ID if it is used this way.
    Just fair warning for those that are sharing Adobe ID credentials and using this method to share content.

  • Single Edition - How long for approval from Apple to App Store? Is Content Viewer an Option?

    Hello -
    I am in somewhat of a predicament. We have a client who has just told us that they would like to make an app we created for them available for attendees of a conference, somewhere from 100-300 people. The app we created for them was just done and put into Content Viewer, as it was just for that one client, and on that one iPad.
    Now, we'd like to make it public for 100-300 people, so we are going to purchase the single edition. But, we need this up and available for purchase in the app store in 10 days. I realize it varies from case to case, but does anyone think there's a chance the Apple App store could approve in enough time, say if we uploaded on a Monday and needed it to be available on a Friday?
    If not - anyone have ideas for contigency plans? Some questions I have: how many Adobe IDs can an app be shared with? Like, would it be possible to share the folio with one Adobe ID, and then give that login to people at the conference who want to see the app, and then they log in to Adobe Content Viewer, log in, and download if they want. Seems shaky at best, but is it worthy as a backup plan?
    Thanks much,
    B

    You can check some websites that give a average idea of the current wait times for an app to be reviewed.
    I generally use the below to give myself an idea of the wait time. I do not use these type of sites when talking to clients however.
    http://reviewtimes.shinydevelopment.com/
    Thanks,
    DS.

  • OBIEE 11g: Dashboard not invoking simple javascript alert

    Hi Experts,
    I'm trying to invoke one simple ALERT command with javascript in obiee 11g dashboard. The purpose is when it loads, it should print one ALERT message and also when we change something in the prompt and clicking Apply button.
    Here is code written in a text item (Checked html markup option) after prompts;
    <script language="Javascript">
    alert ("Hello");
    </script>
    The Javascript alert message is showing when the dashboard page loads, but its not coming when we click the Apply button after changing the prompts.
    Can anyone give helpful hint, how to check it and why its not showing up when we press Apply button?
    Any hint or some useful links will b highly appreciated.
    Thanks in advance.

    You just used code and I would say the default event is onload of the page, thats the reason you are able to see alert.
    Since you didnt ask or written code onClick event to show alert, its not showing.
    You need to tell to browser when to prompt alert message instead of onload.
    Hope you are more confuse about 'how to do'
    if yes, mark :)
    give some more info about your actual req. that helps any other gurus to help.
    Edited by: Srini VEERAVALLI on Mar 27, 2013 8:42 AM

Maybe you are looking for

  • Persistence-rebalance is not working after adding new cotexts

    Hi, I had the following problem. The customer has two ACE20 modules. These modules are configured with some contexts. These contexts are configured and working. Last week I created and configured new three contexts without modifying current contexts.

  • Why are my gifs saving so slow?

    I'm using Photoshop CS6 I use the timeline to make my frames and adjust the delay number at the bottom of each thumbnail, ive tried (No Delay, 0.01, 0.1, 02) but once I save they slow down. When I press play from the timeline it plays fast and smooth

  • Alternatives to query strings

    Hello I'm interested in using paths to convey parameters instead of query strings. For example: http://domain.com/paramA1/paramB2/paramC3 instead of http://domain.com?paramA=1&paramB=2&paramC=3 The reason I'm interested is because crawlers like googl

  • Excessive battery drain during talk time?

    I know that the iPhone 4s and its battery drain has been discussed here infinitum...I myself have been reading all the threads for the past week and trying various fixes before doing a full restore and setting my phone up as new.  However, I am still

  • Sys_context and Order by clause

    Hi All, Im using Oracle 11g R2. Is it somehow possible to use Context variable (to store column name) in ORDER BY clause? My ultimate aim is to construct Order by at runtime without using concatenation. e.g. i created context as my_ctx for some pkg a