• pandu ranga 16
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies

Hello everyone,

I have a Custom Object that has an in-line Visualforce Page which is basically an iframe. The iframe's source is coming from the Custom Object's "selected source" field.

 

<apex:page standardController="Custom_Obj__c"  >
    <iframe src="{!Custom_Obj__c.Selected_source__c}"  />
</apex:page>

This is all in one "App".  This app also has an apex component that enables me to update the "Selected Source" field.  Although the record is updating correctly, the changes doesn't seem to reflect until I refresh the page.  This means the iframe doesn't update unless the page is refreshed.  I do not want the page to refresh and so the ideal solution is if I can have the apex component update the Visual Force page's iframe source directly rather than updating the Selected Source field first then refreshing the page.

I cannot seem to find a way to do this because the standardController on the Visualforce page has to point to the Custom Object otherwise I cannot use the iframe on my Custom Object.

Is there a way for my apex component to update the iframe's source directly? Or, is there a way to include an iFrame into a custom object without the use of Visualforce page?

Any help would be much appreciated.

 

Any suggestions how I can create a table to prompt the user to add additional rows?   Currently I have a toggle button and on toggle True it saves the value and brings the user back to the screen to enter a new enter.

I've attached an image of the User Interface Table I'm looking to create

I need to be able to dynamically get how many hours in a day of BusinessHours record. I need to be able to do it dynamically. How do I do it?
This is sample code of what I am doing:
 

Map<String,BusinessHours>bhMap = new Map<String,BusinessHours>();
...
decimal result = BusinessHours.diff(bhMap.get(key).Id,DateTime1,DateTime2);
decimal numOfDay = result / (1000*60*60* x);
//where x should be the num of hours per business day based on Businesshours
Is it possible?
I didn't understand the concept of callouts in apex . 
1. In batch - Callouts
2.In trigger  - Callouts 
3. In API - Callouts 

 
Hey Guys
Order is a cool feacture salesforce provided.But I want add OrderItems to my Order.Using Eclipse I am able see OrderItem object.I am trying to create some other field on Otheritem object,Where is it How can I see.

It seems it disappred.Is it a bug.

thanks
  • April 25, 2014
  • Like
  • 1