Cook beans in plenty of water for about 60 minutes,or until tender. Drain and set aside. Peel and slice onion thinly. Pour over boiling water to cover for 10 minutes. Drain,then marinate in lime and orange juice for an hour.
Heat a barbecue hot plate to high and cook corn in the husk,turning to colour evenly,for 30 minutes. Remove and cool. Peel husks and slice kernels off the cob. Place kernels in a mixing bowl,discard cobs and husks. Fry eschalots until crispy. Drain on paper towel. Drain pickled onions,reserving a little juice.
Make a dressing with reserved juice,garlic and chilli. Whisk in as much olive oil as needed. Season with salt and pepper. Add beans,onions,eschalots,almonds,tomatoes,avocado and herbs to corn kernels with dressing,mix and serve.